Difference between revisions of "Template:Extension"

Jump to navigation Jump to search
764 bytes removed ,  00:31, 16 April 2020
Template:Extension/TypeSwitch hasn't actually been used since 2014. The outdatedness of some pages on this wiki ...
>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-->
Anonymous user

Navigation menu