Template:Extension

From Openresearch
Jump to: navigation, search

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

Usage

storemode subobject

{{Extension
|name=
|url=
|purpose=
|since=
|wiki=
|storemode=subobject
}}

storemode property

{{Extension
|name=
|url=
|purpose=
|since=
|wiki=
|storemode=property
}}

storemode none

{{Extension
|name=
|url=
|purpose=
|since=
|wiki=
|storemode=none
}}


viewmode tableheader

{{Extension
|name=
|url=
|purpose=
|since=
|wiki=
|viewmode=tableheader
}}

viewmode tablerow

{{Extension
|name=
|url=
|purpose=
|since=
|wiki=
|viewmode=tablerow
}}

viewmode tablefooter

{{Extension
|name=
|url=
|purpose=
|since=
|wiki=
|viewmode=tablefooter
}}

viewmode labelfield

{{Extension
|name=
|url=
|purpose=
|since=
|wiki=
|viewmode=labelfield
}}

Source (pretty printed)

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

Source

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