Template:Special: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
m (null edit) |
(s/Commons/{{ns:4}}/ for better portability (also fixed on Commons)) |
||
Line 10: | Line 10: | ||
Omitting <code>Name=Value</code> might '''apparently''' work, but actually this is not supported, e.g., <code>{{tlx|Special|Mypage}}</code> yields {{Special|Mypage}}. |
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| |
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. |
||
[[Category:Internal link templates|{{PAGENAME}}]]</noinclude> |
[[Category:Internal link templates|{{PAGENAME}}]]</noinclude> |
Revision as of 23:31, December 2, 2014
creates a plain link for {{Special|Page|Name|Value|Title}}
[{{fullurl:Special:Page|Name=Value}} Title]
.
The link has in essence the same effect as .
The default for the optional Title
is the localized name of the Page
, i.e., {{PAGENAME:{{#special:Page}}}}
. Examples:
yields Talk{{Special|PrefixIndex|namespace|1|Talk}}
yields Talk{{Special|PrefixIndex|namespace|1|{{ns:1}}}}
yields PrefixIndex{{Special|PrefixIndex|namespace|1}}
Omitting Name=Value
might apparently work, but actually this is not supported, e.g.,
yields MyPage.
{{Special|Mypage}}
You can use [[Special:Page|{{PAGENAME:{{#special:Page}}}}]]
where Name=Value
is not needed. On Croc Wiki the localized name of Mypage is the default MyPage
(note camel case), and you can simply write [[Special:Mypage|]]
. If a template is also used on Wikis with localized names the longer form with {{PAGENAME:{{#special:Page}}}}
might be better.