Template:Special

From Wikimedia Commons, the free media repository
Jump to: navigation, search

{{Special|Page|Name|Value|Title}} creates a plain link for [{{fullurl:Special:Page|Name=Value}} Title].
The link has in essence the same effect as //commons.wikimedia.org/wiki/Special:Page?Name=Value.

The default for the optional Title is the localized name of the Page, i.e., {{PAGENAME:{{#special:Page}}}}.  Examples:

  • {{Special|PrefixIndex|namespace|1|Talk}} yields Talk
  • {{Special|PrefixIndex|namespace|1|{{ns:1}}}} yields Talk
  • {{Special|PrefixIndex|namespace|1}} yields PrefixIndex
  • {{Special|PrefixIndex/{{FULLPAGENAME}}/|stripprefix|1|subpages}} yields subpages

Omitting Name=Value might apparently work, but actually this is not supported, e.g., {{Special|Mypage}} yields MyPage.

You can use [[Special:Page|{{PAGENAME:{{#special:Page}}}}]] where Name=Value is not needed.  On Commons 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.