Template:Special: Difference between revisions
Content deleted Content added
Be..anyone (talk | contribs) m nobr |
GVarnum-WMF (talk | contribs) Replaced content with "<includeonly><span class="plainlinks">[{{fullurl:Special:{{{1}}}|{{{2}}}={{{3}}}}} {{{4|{{PAGENAME:{{#special:{{{1}}}}}}}}}}]</span></includeonly><noinclude> {{documentation}} </noinclude>" Tags: Replaced 2017 source edit |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span class="plainlinks">[{{fullurl:Special:{{{1}}}|{{{2}}}={{{3}}}}} {{{4|{{PAGENAME:{{#special:{{{1}}}}}}}}}}]</span></includeonly><noinclude> |
<includeonly><span class="plainlinks">[{{fullurl:Special:{{{1}}}|{{{2}}}={{{3}}}}} {{{4|{{PAGENAME:{{#special:{{{1}}}}}}}}}}]</span></includeonly><noinclude> |
||
{{documentation}} |
|||
The link has in essence the same effect as <code>[<span class="plainlinks">https:{{SERVER}}/wiki/Special:Page?Name=Value</span> Title]</code>. |
|||
</noinclude> |
|||
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}}</code> yields {{Special|PrefixIndex|namespace|1}} |
|||
* <code>{{tlx|Special|PrefixIndex/<nowiki>{{FULLPAGENAMEE}}</nowiki>/{{!}}stripprefix{{!}}1{{!}}subpages}}</code> yields {{Special|PrefixIndex/{{FULLPAGENAMEE}}/|stripprefix|1|subpages}} |
|||
* <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|{{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:]], [[mw:Template:Special|mw:]], [[w:de:Template:Special|w:de:]], [[w:en:Template:Special|w:en:]].</small> |
|||
---- |
|||
<templatedata> |
|||
{ "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}}}}" |
|||
} } }</templatedata>[[Category:Internal link templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 22:25, 26 March 2024
This template has a duplicate on Meta-Wiki. Please visit its documentation on Meta-Wiki for usage details and any additional information. Please keep the content and translations synchronized as much as possible. Thank you! |
Plain link to a special page with one parameter
Parameter | Description | Type | Status | |
---|---|---|---|---|
page | 1 | page part of local Special:page | Page name | required |
name | 2 | special page parameter name | String | required |
value | 3 | special page parameter value | String | required |
title | 4 | link display text
| String | optional |