Template:Special: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
m
Text replacement - "\[\[Category:([^|]+)\|{{PAGENAME}}\]\]" to "Category:$1"
m (Text replacement - "\[\[Category:([^|]+)\|{{PAGENAME}}\]\]" to "Category:$1")
 
(6 intermediate revisions by 2 users not shown)
Line 5:
 
* <code>{{tlx|Special|PrefixIndex{{!}}namespace{{!}}1{{!}}Talk}}</code> yields {{Special|PrefixIndex|namespace|1|Talk}}
* <code>{{tlx|Special|PrefixIndex{{!}}namespace{{!}}1{{!}}<nowiki>{{ns:1}}</nowiki>}}</code> yields {{Special|PrefixIndex|namespace|1|{{ns:1}}}}
* <code>{{tlx|Special|PrefixIndex{{!}}namespace{{!}}1}}</code> yields {{Special|PrefixIndex|namespace|1}}
* <code>{{tlx|Special|PrefixIndex/<nowiki>{{FULLPAGENAMEE}}</nowiki>/{{!}}stripprefix{{!}}1{{!}}subpages}}</code> yields {{Special|PrefixIndex/{{FULLPAGENAMEE}}/|stripprefix|1|subpages}}
* <code>{{tlx|Special|Log{{!}}user{{!}}3&#x3D;WMFOffice&amp;amp;type&#x3D;rights{{!}}4&#x3D;official}}</code> yields {{Special|Log|user|3=WMFOffice&amp;type=rights|4=official}}
 
Omitting <code>Name=Value</code> might '''apparently''' work, but actually this is not supported, e.g., <code>{{tlx|Special|Mypage}}</code> yields {{Special|Mypage}}.
 
You can use <code><nowiki>[[Special:Page|{{PAGENAME:{{#special:Page}}}}]]</nowiki></code> where <code>Name=Value</code> is not needed.&nbsp; On [[Project:About|{{ns:4}}]] the localized name of [[Special:Mypage|Mypage]] is the default <code>{{PAGENAME:{{#special:Mypage}}}}</code> (note camel case), and you can simply write <code><nowiki>[[Special:Mypage|]]</nowiki></code>.&nbsp; If a template is also used on Wikis with localized names the longer form with <code>[[mw:Help:Magic_words#Miscellaneous|<nowiki>{{PAGENAME:{{#special:Page}}}}</nowiki>]]</code> might be better.&nbsp; <small style="white-space:nowrap">Also see [[c:Template:Special|c:]], [[d:Template:Special|d:]], [[mw:Template:Special|mw:]], [[w:de:Template:Special|w:de:]], [[w:en:Template:Special|w:en:]].</small>
----
<templatedata>
{ "description": "SpecialPlain link to a special page with paramterone linkparameter",
"params":
{ "1":
Line 39:
"type": "string",
"default": "{{PAGENAME:{{#special:Page}}}}"
} } }</templatedata>[[Category:Internal link templates|{{PAGENAME}}]]</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu