Difference between revisions 2970727 and 3771238 on mediawikiwiki<noinclude> <languages/> </noinclude><includeonly>{{#switch: | = {{#switch: {{lc: {{{1}}}}} |ajax=[[w:AJAX|Ajax]][[Category:Ajax extensions{{#translation:}}]] |api={{ll|API:Main page|API}} [[Category:API extensions{{#translation:}}]] |beta feature={{ll|Beta Features|Beta Feature}} [[Category:Beta Feature extensions{{#translation:}}]] (contracted; show full) |_demomode_={{#if:{{{2|}}}|{{ucfirst:{{{2}}}}}|''unknown''}} |#default={{{1|''unknown''}}} {{ll|Template:Extension#type|('''''invalid type''''')}}[[Category:Extensions with invalid or missing type{{#translation:}}]] }} | #default= {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Tool/TypeSwitch|noshift=1}} }}</includeonly><noinclude> {{documentation |content= == Purpose == This template is a helper template for {{ll|Template:Extension}}. It takes an extension type as a parameter and creates the wiki markup associated with that type. If you would like to add a new type, please add it to this switch statement. Do not add it to the {{ll|Template:Extension}} directly. == Usage == <nowiki>{{</nowiki>'''Extension/TypeSwitch'''{{!}}''type''<nowiki>}}</nowiki> * ''type'' - a type. For allowed values, see documentation for <tvar|1>{{ll|Template:Extension}}. In additional to the allowed values, two special values exist to facilitate the coding of Template:Extension: ** <code>_demomode_</code> - suppresses the addition of categories. The type name that should be displayed is passed as the second parameter, e.g. <code><nowiki>{{Extension/TypeSwitch|_demomode_|tag}}</nowiki></code>. {{ll|Template:Extension}} uses this as its value when the template is in demo mode so that it doesn't add category links to the host page. ** <code>_missing_</code> - adds the host page to {{ll|Category:Extensions with invalid or missing type}} but does not display a label. {{ll|Template:Extension}} uses this as its value when no type parameter was provided.⏎ ⏎ }} </noinclude> All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://mediawiki.org/w/index.php?diff=prev&oldid=3771238.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|