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"
(+interwiki) |
m (Text replacement - "\[\[Category:([^|]+)\|{{PAGENAME}}\]\]" to "Category:$1") |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 11:
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|{{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>. 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. <small style="white-space:nowrap">Also see [[c:Template:Special|c:]], [[d:Template:Special|d
----
<templatedata>
Line 39:
"type": "string",
"default": "{{PAGENAME:{{#special:Page}}}}"
} } }</templatedata>[[Category:Internal link templates
|