Template:InterwikiLink: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
No edit summary
Tag: 2017 source edit
m (& removing function as it will be handled by a different template)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{subst:w:includeonly|{{Link
<includeonly>[[{{{wikiprefix|mw}}}:{{{pagename|Main Page}}}|<span title="{{{title|{{{text|{{{pagename|}}} }}} }}}">{{{text|{{{pagename|}}} }}}</span>]]</includeonly><noinclude>
|link= {{{prefix}}}:{{{pagename|Main Page}}}
|text= {{{text| {{{pagename| {{{wikiname}}} }}} }}}
|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>
{{WIP}}
== Usage ==
== 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.
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>.


<pre style="width: 240px;">
<pre style="width: 240px;">
{{InterwikiLink
{{InterwikiLink
|prefix =
|wikiprefix =  
|wikiname =  
|pagename =  
|pagename = {{{1|}}}
|text =  
|text = {{{2|}}}
|title =
}}
}}
</pre>
</pre>
{{Parameter|prefix|The wiki's prefix in the [[Special:Interwiki|Interwiki table]]|Required}}
{{Parameter|wikiprefix|The wiki's prefix in the [[Special:Interwiki|Interwiki table]]. This MUST be lowercase to work properly.|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|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}}
{{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>.|Optional}}
{{Parameter|title|Change the hovertext of the link here. If not entered, displays <code>text</code>.|Optional}}
<br clear=all>


[[Category:Supporting templates]]
[[Category:Supporting templates]]
</noinclude>
</noinclude>

Latest revision as of 12:07, 26 April 2024


Usage

This is a base template for Category:Interwiki links templates. Copy paste the following and fill out the prefix and wikiname.

{{InterwikiLink
|wikiprefix = 
|pagename = 
|text = 
|title =
}}
  • wikiprefix — The wiki's prefix in the Interwiki table. This MUST be lowercase to work properly.
  • 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.
  • text — The text to show on the link. Should be the optional second parameter as shown above. If not provided, defaults to the pagename.
  • title — Change the hovertext of the link here. If not entered, displays text.