• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Special

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

Usage

{{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 [https:https://enwiki.freddythechick.net/wiki/Special:Page?Name=Value Title].

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}} yields PrefixIndex
  • {{Special|PrefixIndex/{{FULLPAGENAMEE}}/|stripprefix|1|subpages}} yields subpages
  • {{Special|Log|user|3=WMFOffice&type=rights|4=official}} yields official

Omitting Name=Value might seem to 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 English Wikipedia @ Freddythechick 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.  Also see c:, d:, m:, mw:, w:de:.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Special in articles based on its TemplateData.

TemplateData for Special

Plain link to a special page with one parameter

Template parameters

ParameterDescriptionTypeStatus
page1

page part of local Special:page

Page namerequired
name2

special page parameter name

Stringrequired
value3

special page parameter value

Stringrequired
title4

link display text

Default
{{PAGENAME:{{#special:Page}}}}
Stringoptional

See also

  • Template:Myprefs – for linking to Special:Preferences
The above documentation is transcluded from Template:Special/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Special&oldid=1630513"
Last edited on 5 January 2021, at 13:46

Languages

      This page is not available in other languages.

      English Wikipedia @ Freddythechick
      • This page was last edited on 5 January 2021, at 13:46.
      • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
      • About English Wikipedia @ Freddythechick
      • Desktop