Difference between revisions 3771238 and 3897029 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) 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=3897029.
![]() ![]() 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.
|