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:}}]] |contenthandler={{ll|Manual:ContentHandler|nsp=1}} [[Category:ContentHandler extensions{{#translation:}}]] |database={{ll|Manual:Database layout|Database}}[[Category:Database extensions{{#translation:}}]] |db=Database[[Category:Database extensions{{#translation:}}]] |data extraction=Data extraction[[Category:Data extraction extensions{{#translation:}}]] |example=Example[[Category:Extensions examples{{#translation:}}]] |extended syntax={{ll|Manual:Extending wiki markup|Extended syntax}}[[Category:Extended syntax extensions{{#translation:}}]] |filerepo=File repository[[Category:File repository extensions{{#translation:}}]] |hook={{ll|Manual:Hooks|Hook}}[[Category:Hook extensions{{#translation:}}]] |interface=User interface[[Category:User interface extensions{{#translation:}}]] |link={{ll|Manual:Extending wiki markup|Link markup}}[[Category:Link markup extensions{{#translation:}}]] |media=Media[[Category:Media handling extensions{{#translation:}}]] |mywiki={{ll|Manual:Personalization|MyWiki}}[[Category:Personalization extensions{{#translation:}}]] |notify=Notify[[Category:Notification extensions{{#translation:}}]] |page action={{ll|Manual:Parameters to index.php#Actions|Page action}}[[Category:Page action extensions{{#translation:}}]] |parser={{ll|Manual:Extending wiki markup|Parser extension}}[[Category:Parser extensions{{#translation:}}]] |parser function={{ll|Manual:Parser functions|Parser function}}[[Category:Parser function extensions{{#translation:}}]] |pfunc={{ll|Manual:Parser functions|Parser functions}}[[Category:Parser function extensions{{#translation:}}]] |search=Search[[Category:Search extensions{{#translation:}}]] |skin={{ll|Manual:Skins|Skin}}[[Category:Skin extensions{{#translation:}}]] |special={{ll|Manual:Special pages|Special page}}[[Category:Special page extensions{{#translation:}}]] |special page={{ll|Manual:Special pages|Special page}}[[Category:Special page extensions{{#translation:}}]] |locale={{ll|Manual:Localization|Locale}}[[Category:Internationalization extensions{{#translation:}}]] |tag={{ll|Manual:Tag extensions|Tag}}[[Category:Tag extensions{{#translation:}}]] |user access={{ll|Manual:Security|User access}}[[Category:User access extensions{{#translation:}}]] |user identity={{ll|Manual:Security|User identity}}[[Category:User identity extensions{{#translation:}}]] |user rights ={{ll|Manual:Security|User rights}}[[Category:User rights extensions{{#translation:}}]] |user activity={{ll|Manual:Security|User activity}}[[Category:User activity extensions{{#translation:}}]] |variable={{ll|Manual:Variables|Variable}}[[Category:Variable extensions{{#translation:}}]] <!-- ******* BEGIN DEPRECATED TYPES (as per 2007-09 taxonomy discussion) ******* --> |category=Category[[Category:Category extensions{{#translation:}}]]''-deprecated''[[Category:Extensions with deprecated types{{#translation:}}]] |form=Form[[Category:Form extensions{{#translation:}}]]''-deprecated''[[Category:Extensions with deprecated types{{#translation:}}]] |list=List[[Category:List extensions{{#translation:}}]]''-deprecated''[[Category:Extensions with deprecated types{{#translation:}}]] |namespace={{ll|Manual:Namespaces|Namespace}}[[Category:Namespace extensions{{#translation:}}]] ''-deprecated''[[Category:Extensions with deprecated types{{#translation:}}]] |table=Table[[Category:Table extensions{{#translation:}}]]''-deprecated''[[Category:Extensions with deprecated types{{#translation:}}]] <!-- ******* BEGIN DEPRECATED TYPES (multiple types handled via type1,type2,...) ******* --> |link, tag, special={{ll|Manual:Extending wiki markup|Link}}[[Category:Link markup extensions{{#translation:}}]], {{ll|Manual:Tag extensions|tag}}[[Category:Tag extensions{{#translation:}}]], {{ll|Manual:Special pages|special}}[[Category:Special page extensions{{#translation:}}]]<br />''(deprecated, please use {{ll|Template:Extension#type|type1,type2,type3}} instead)''[[Category:Extensions with deprecated types{{#translation:}}]] |parser function, special={{ll|Manual:Parser functions|parser functions}}[[Category:Parser function extensions{{#translation:}}]], {{ll|Manual:Special pages|special}}[[Category:Special page extensions{{#translation:}}]]<br />''(deprecated, please use {{ll|Template:Extension#type|type1,type2}} instead)''[[Category:Extensions with deprecated types{{#translation:}}]] |tag, parser function={{ll|Manual:Tag extensions|tag}}[[Category:Tag extensions{{#translation:}}]], {{ll|Manual:Parser functions|parser functions}}[[Category:Parser function extensions{{#translation:}}]]<br />''(deprecated, please use {{ll|Template:Extension#type|type1,type2}} instead)''[[Category:Extensions with deprecated types{{#translation:}}]] |tag, parser function, special={{ll|Manual:Tag extensions|tag}}[[Category:Tag extensions{{#translation:}}]], {{ll|Manual:Parser functions|parser functions}}[[Category:Parser function extensions{{#translation:}}]], {{ll|Manual:Special pages|special}}[[Category:Special page extensions{{#translation:}}]]<br />''(deprecated, please use {{ll|Template:Extension#type|type1,type2,type3}} instead)''[[Category:Extensions with deprecated types{{#translation:}}]] |tag, special={{ll|Manual:Tag extensions|tag}}[[Category:Tag extensions{{#translation:}}]], {{ll|Manual:Special pages|special}}[[Category:Special page extensions{{#translation:}}]]<br />''(deprecated, please use {{ll|Template:Extension#type|type1,type2}} instead)''[[Category:Extensions with deprecated types{{#translation:}}]] |parser,pfunc={{ll|Manual:Parser functions|parser functions}}[[Category:Parser function extensions{{#translation:}}]]<br />''(deprecated, please use {{ll|Template:Extension#type|type1,type2}} instead)'' [[Category:Extensions with deprecated types{{#translation:}}]] |parser, hook, special={{ll|Manual:Tag extensions|tag}}[[Category:Tag extensions{{#translation:}}]], {{ll|Manual:Hooks|hook}}[[Category:Hook extensions{{#translation:}}]], {{ll|Manual:Special pages|special}}[[Category:Special page extensions{{#translation:}}]]<br />''(deprecated, please use {{ll|Template:Extension#type|type1,type2,type3}} instead)''[[Category:Extensions with deprecated types{{#translation:}}]] <!-- ******* END DEPRECATED TYPES ******* --> |_missing_=[[Category:Extensions with invalid or missing type{{#translation:}}]] |_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.
|