Template:InterwikiLink: Difference between revisions
From Zelda Wiki, the Zelda encyclopedia
Undid revision 597140 by HylianKing (Talk)
PhantomCaleb (talk | contribs) (ok let's get the actual template to work first.) |
PhantomCaleb (talk | contribs) (Undid revision 597140 by HylianKing (Talk)) |
||
Line 1: | Line 1: | ||
{{Link | <includeonly>{{subst:w:includeonly|{{Link | ||
|link= {{{prefix}}}:{{{pagename|Main Page}}} | |link= {{{prefix}}}:{{{pagename|Main Page}}} | ||
|text= {{{text| {{{pagename| {{{wikiname}}} }}} }}} | |text= {{{text| {{{pagename| {{{wikiname}}} }}} }}} | ||
|title= {{{wikiname}}}: {{{pagename|Main Page}}} | |title= {{{wikiname}}}: {{{pagename| {{{Main Page}}} }}} | ||
}}}}{{subst:w:noinclude| | |||
==Usage== | |||
Use this to produce a link to an article on {{ {{PAGENAME}} }}. To use it, type:<br> | |||
{{NoWikiTemp|Optional|Article name|Display name}} | |||
[[Category:Interwiki links]] | |||
}}</includeonly><noinclude> | |||
{{UC}} | |||
== Usage == | |||
This is a base template for [[:Category:Interwiki links]] templates. Copy paste the following and fill out the <code>prefix</code> and <code>wikiname</code>. This will also generate the documentation for the template. | |||
<pre style="width: 240px;"> | |||
{{InterwikiLink | |||
|prefix = | |||
|wikiname = | |||
|pagename = {{{1|}}} | |||
|text = {{{2|}}} | |||
}} | }} | ||
</pre> | |||
{{Parameter|prefix|The wiki's prefix in the [[Special:Interwiki|Interwiki table]]|Required}} | |||
{{Parameter|wikiname|The full name of the wiki.|Required}} | |||
{{Parameter|pagename|The name of the page you wish to link to. Should be the optional first parameter as shown above. Defaults to the Main Page of the wiki.|Required}} | |||
{{Parameter|text|The text to show on the link. Should be the optional second parameter as shown above. If not provided, defaults to the <code>pagename</code>.|Required}} | |||
[[Category:Supporting templates]] | |||
</noinclude> |