Difference between revisions of "Template:Autolink"
The Beyond Skyrim Wiki — Hosted by UESP
m |
m |
||
Line 1: | Line 1: | ||
− | <includeonly>{{# | + | <includeonly>{{#define:word| {{{1|}}} }}{{#define:label| {{{2|{{{word}}}}}} }}{{#inherit:ns_base}}{{#define:ns_base| {{{3|{{NS_BASE}}}}} }}{{#switch:{{lc:{{{word}}}}} |
+ | |n/a|none|unknown||{{lc:{{{missing|}}}}}={{{missinglink|{{{word}}}}}} | ||
+ | |{{#if:{{#pos:{{{word}}}|[}} | {{{word}}} | [[{{NS_FULL}}{{{word}}}|{{#label:{{{label}}}}}]] }} | ||
+ | }}</includeonly><noinclude>{{/Doc}}</noinclude> |
Revision as of 16:15, 15 May 2018
Summary
Links to a page in the defined namespace if it exists, and doesn't if it doesn't.
Parameters
Autolink | ||
---|---|---|
Parameter | Scope | Description |
ns_base | optional | The namespace the page is located in (defaults to current namespace) |
1 | required | The name of the page to link to |
2 | optional | The text to display |
Example
{{Autolink|ns_base=Cyrodiil|Main Page|Sundered}}