Template:Sourcecode

From BITPlan Wiki
Revision as of 15:26, 1 February 2021 by Wf (talk | contribs) (pushed from test by wikipush)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the template Sourcecode. It belongs to the concept/topic Concept:Sourcecode
You may find examples for the use of this template via the List of Sourcecodes.

Usage

storemode subobject

{{Sourcecode
|id=
|lang=
|author=
|since=
|text=
|url=
|storemode=subobject
}}

storemode property

{{Sourcecode
|id=
|lang=
|author=
|since=
|text=
|url=
|storemode=property
}}

storemode none

{{Sourcecode
|id=
|lang=
|author=
|since=
|text=
|url=
|storemode=none
}}


viewmode tableheader

{{Sourcecode
|id=
|lang=
|author=
|since=
|text=
|url=
|viewmode=tableheader
}}

viewmode tablerow

{{Sourcecode
|id=
|lang=
|author=
|since=
|text=
|url=
|viewmode=tablerow
}}

viewmode tablefooter

{{Sourcecode
|id=
|lang=
|author=
|since=
|text=
|url=
|viewmode=tablefooter
}}

viewmode labelfield

{{Sourcecode
|id=
|lang=
|author=
|since=
|text=
|url=
|viewmode=labelfield
}}

Source (pretty printed)

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Sourcecode<br>|}}
{{#if:{{{?id|}}}|"{{{?id}}}" is id of it <br>|}}
{{#if:{{{?lang|}}}|"{{{?lang}}}" is lang of it <br>|}}
{{#if:{{{?author|}}}|"{{{?author}}}" is author of it <br>|}}
{{#if:{{{?since|}}}|"{{{?since}}}" is since of it <br>|}}
{{#if:{{{?text|}}}|"{{{?text}}}" is text of it <br>|}}
{{#if:{{{?url|}}}|"{{{?url}}}" is url of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Sourcecode
|Sourcecode id={{{id|}}}
|Sourcecode lang={{{lang|}}}
|Sourcecode author={{{author|}}}
|Sourcecode since={{{since|}}}
|Sourcecode text={{{text|}}}
|Sourcecode url={{{url|}}}
}}
|#default={{#set:
|isA=Sourcecode
|Sourcecode id={{{id|}}}
|Sourcecode lang={{{lang|}}}
|Sourcecode author={{{author|}}}
|Sourcecode since={{{since|}}}
|Sourcecode text={{{text|}}}
|Sourcecode url={{{url|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
|tableheader={{{!}} class='wikitable'
!id!!lang!!author!!since!!text!!url
{{!}}-
|tablerow=
{{!}}{{{id|}}}{{!}}{{!}}{{{lang|}}}{{!}}{{!}}{{{author|}}}{{!}}{{!}}{{{since|}}}{{!}}{{!}}{{{text|}}}{{!}}{{!}}{{{url|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
id={{#if:{{{id|}}}|{{{id|}}}|}}<br>lang={{#if:{{{lang|}}}|{{{lang|}}}|}}<br>author={{#if:{{{author|}}}|{{{author|}}}|}}<br>since={{#if:{{{since|}}}|{{{since|}}}|}}<br>text={{#if:{{{text|}}}|{{{text|}}}|}}<br>url={{#if:{{{url|}}}|{{{url|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Sourcecode
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Sourcecode/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!id
{{!}}&nbsp;{{#if:{{{id|}}}|{{{id|}}}|}}
{{!}}-
!lang
{{!}}&nbsp;{{#if:{{{lang|}}}|{{{lang|}}}|}}
{{!}}-
!author
{{!}}&nbsp;{{#if:{{{author|}}}|{{{author|}}}|}}
{{!}}-
!since
{{!}}&nbsp;{{#if:{{{since|}}}|{{{since|}}}|}}
{{!}}-
!test
{{!}}&nbsp;{{#if:{{{text|}}}|{{{text|}}}|}}
{{!}}-
!url
{{!}}&nbsp;{{#if:{{{url|}}}|{{{url|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Sourcecode]]{{#default_form:Sourcecode}}

Source

Click on "Edit" to edit the noinclude-part Source of this Template.