Template:External/doc: Difference between revisions

From Old School Near-Reality Wiki
Jump to navigation Jump to search
(Created page with "{{External|rsc|rs}} {{Documentation}} {{Invokes|Top icons}} The '''External''' template adds links to RuneScape Classic Wiki, RuneScape Wiki, Meta and Wikipedia in the top right corner of an article. ==Usage== <pre>{{External|rs|rsc|meta|wp}} {{External|rs=RSW page|rsc=RSCW page|wp=Wikipedia page|meta}}</pre> If the page name on the other wiki is the same as on this wiki, use these as unnamed parameters: * To add a li...")
 
No edit summary
 
Line 3: Line 3:
{{Invokes|Top icons}}
{{Invokes|Top icons}}


The '''External''' template adds links to [[classicrsw:|RuneScape Classic Wiki]], [[rsw:|RuneScape Wiki]], [[meta:|Meta]] and [[wikipedia:|Wikipedia]] in the top right corner of an article.
The '''External''' template adds links to [[wikipedia:|Wikipedia]] in the top right corner of an article.


==Usage==
==Usage==
<pre>{{External|rs|rsc|meta|wp}}
<pre>{{External|wp}}
{{External|rs=RSW page|rsc=RSCW page|wp=Wikipedia page|meta}}</pre>
{{External|wp=Wikipedia page|meta}}</pre>


If the page name on the other wiki is the same as on this wiki, use these as unnamed parameters:
If the page name on the other wiki is the same as on this wiki, use these as unnamed parameters:


* To add a link to the RuneScape Wiki, use <code>rs</code>
* To add a link to the RuneScape Classic Wiki, use <code>rsc</code>
* To add a link to Meta Weird Gloop, use <code>meta</code>
* To add a link to Wikipedia, use <code>wp</code>
* To add a link to Wikipedia, use <code>wp</code>


If the page name on the other wiki is not the same as the page name on this wiki, use the above as named parameters, with the value being the correct name. These methods can be mixed. The order does not matter - the output order is always RS-WP.
If the page name on the other wiki is not the same as the page name on this wiki, use the above as named parameters, with the value being the correct name. These methods can be mixed. The order does not matter - the output order is always NR-WP.


===Examples===
===Examples===

Latest revision as of 22:54, 2 October 2022

Information icon-grey.png
This is a documentation subpage for Template:External.
It contains usage information, categories, and other content that is not part of the original template page.
Template:External invokes function main in Module:Top icons using Lua.
Template:External invokes Module:Top icons using Lua.

The External template adds links to Wikipedia in the top right corner of an article.

Usage

{{External|wp}}
{{External|wp=Wikipedia page|meta}}

If the page name on the other wiki is the same as on this wiki, use these as unnamed parameters:

  • To add a link to Wikipedia, use wp

If the page name on the other wiki is not the same as the page name on this wiki, use the above as named parameters, with the value being the correct name. These methods can be mixed. The order does not matter - the output order is always NR-WP.

Examples

On the Abyssal whip article, {{External|rs}} produces:

On the Cabbage article, {{External|rsc|wp|rs}} produces:

On the Bronze med helm article, {{External|rsc=Medium Bronze Helmet|rs=Bronze helm}} produces: