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"
(from https://commons.wikimedia.org/w/index.php?title=Template:Special&oldid=55799984) |
m (Text replacement - "\[\[Category:([^|]+)\|{{PAGENAME}}\]\]" to "Category:$1") |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1:
<includeonly><span class="
The link has in essence the same effect as <code>[<span class="
The default for the optional <code>Title</code> is the localized name of the <code>Page</code>, i.e., <code><nowiki>{{PAGENAME:{{#special:Page}}}}</nowiki></code>. Examples:
* <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>{{
* <code>{{tlx|Special|Log{{!}}user{{!}}3=WMFOffice&amp;type=rights{{!}}4=official}}</code> yields {{Special|Log|user|3=WMFOffice&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. On [[Project:About|
----
<templatedata>
[[Category:Internal link templates|{{PAGENAME}}]]</noinclude>▼
{ "description": "Plain link to a special page with one parameter",
"params":
{ "1":
{ "label": "page",
"description": "page part of local Special:page",
"type": "wiki-page-name",
"required": true
},
"2":
{ "label": "name",
"description": "special page parameter name",
"type": "string",
"required": true
},
"3":
{ "label": "value",
"description": "special page parameter value",
"type": "string",
"required": true
},
"4":
{ "label": "title",
"description": "link display text",
"type": "string",
"default": "{{PAGENAME:{{#special:Page}}}}"
|