Difference between revisions of "Template:Extension"

From WPRDC Wiki
Jump to navigation Jump to search
>Shirayuki
>Pppery
(Template:Extension/TypeSwitch hasn't actually been used since 2014. The outdatedness of some pages on this wiki ...)
Line 841: Line 841:
To change/correct/add to the implementation type parameters:
To change/correct/add to the implementation type parameters:
* Check the [[<tvar|url>Template_talk:Extension</>|talk page]] - there have been some extensive discussions about this field.
* Check the [[<tvar|url>Template_talk:Extension</>|talk page]] - there have been some extensive discussions about this field.
* '''<tvar|typeswitch>{{ll|Template:Extension/TypeSwitch|Template:Extension/TypeSwitch}}</>:''' Stores the possible values for the type field. Multiple values are implemented by calling this template with <tvar|foreach>[[Template:Foreach]]</>.
* The valid types and what they link to are defined at [[Module:Extension]]
* '''<tvar|typeswitchnocats>{{ll|Template:Extension/TypeSwitchNoCats|Template:Extension/TypeSwitchNoCats}}</>:''' Does not need to be modified when adding a new type. Used instead of <tvar|typeswitch>{{ll|Template:Extension/TypeSwitch|Template:Extension/TypeSwitch}}</> when this template is used in <tvar|nocats><code>templatemode=nocats</code></>. Templates used with <tvar|foreach>[[Template:Foreach]]</> can only take one parameter so we need to wrap the call to <tvar|typeswitch>{{ll|Template:Extension/TypeSwitch|Template:Extension/TypeSwitch}}</> with another template that sets the mode.


<!--T:187-->
<!--T:187-->

Revision as of 00:31, 16 April 2020

<languages/> Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.[[Category:Template documentation pages{{#translation:}}]] Maintenance: vulnerabilities, archived

[[Category:Info templates{{#translation:}}|Extension]] [[Category:Extension creation{{#translation:}}]] [[Category:Categorizing templates{{#translation:}}|Extension]] [[Category:Extension templates{{#translation:}}]]