Template:Special: Difference between revisions
(typo + clearer description) |
(more interesting example from en:Template:Special) |
||
Line 5: | Line 5: | ||
* <code>{{tlx|Special|PrefixIndex{{!}}namespace{{!}}1{{!}}Talk}}</code> yields {{Special|PrefixIndex|namespace|1|Talk}} |
* <code>{{tlx|Special|PrefixIndex{{!}}namespace{{!}}1{{!}}Talk}}</code> yields {{Special|PrefixIndex|namespace|1|Talk}} |
||
* <code>{{tlx|Special|PrefixIndex{{!}}namespace{{!}}1{{!}}<nowiki>{{ns:1}}</nowiki>}}</code> yields {{Special|PrefixIndex|namespace|1|{{ns:1}}}} |
|||
* <code>{{tlx|Special|PrefixIndex{{!}}namespace{{!}}1}}</code> yields {{Special|PrefixIndex|namespace|1}} |
* <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|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}}. |
Omitting <code>Name=Value</code> might '''apparently''' work, but actually this is not supported, e.g., <code>{{tlx|Special|Mypage}}</code> yields {{Special|Mypage}}. |
Revision as of 09:58, April 15, 2015
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 [https:https://crocwiki.com/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:
yields Talk{{Special|PrefixIndex|namespace|1|Talk}}
yields PrefixIndex{{Special|PrefixIndex|namespace|1}}
yields subpages{{Special|PrefixIndex/{{FULLPAGENAMEE}}/|stripprefix|1|subpages}}
yields official{{Special|Log|user|3=WMFOffice&type=rights|4=official}}
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.
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 |