Template:Special: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(add https: scheme for clarity)
m (use optional 3rd param in long format)
Line 1: Line 1:
<includeonly><span class="plainlinks">[{{fullurl:Special:{{{1}}}|{{{2}}}={{{3}}}}} {{{4|{{PAGENAME:{{#special:{{{1}}}}}}}}}}]</span></includeonly><noinclude><code>{{tlx|Special|Page|Name|Value|Title}}</code> creates a plain link for <code><nowiki>[{{fullurl:Special:Page|Name=Value}} Title]</nowiki></code>.{{-}}
<includeonly><span class="plainlinks">[{{fullurl:Special:{{{1}}}|{{{2}}}={{{3}}}}} {{{4|{{PAGENAME:{{#special:{{{1}}}}}}}}}}]</span></includeonly><noinclude><code>{{tlx|Special|Page|Name|Value|Title}}</code> creates a plain link for <code><nowiki>[{{fullurl:Special:Page|Name=Value}} Title]</nowiki></code>.{{-}}
The link has in essence the same effect as <code><span class="plainlinks">https:{{SERVER}}/wiki/Special:Page?Name=Value</span></code>.
The link has in essence the same effect as <code>[<span class="plainlinks">https:{{SERVER}}/wiki/Special:Page?Name=Value</span> Title]</code>.


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>.&nbsp; Examples:
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>.&nbsp; Examples:

Revision as of 23:56, December 2, 2014

{{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://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:

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 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.