Difference between revisions of "Template:Autolink"
The Beyond Skyrim Wiki — Hosted by UESP
(Created page with "<includeonly>{{#ifexist:{{{{{NAMESPACE}}}:{{{1}}}|[[{{{NAMESPACE}}}:{{{1}}}|{{{2|{{{1}}}}}}]]|{{{2|{{{1}}}}}}}}</includeonly><noinclude>{{/Doc}}</noinclude>") |
m |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifexist:{{{{{NAMESPACE}}}:{{{1}}}|[[{{{NAMESPACE}}}:{{{1}}}|{{{2|{{{1}}}}}}]]|{{{2|{{{1}}}}}}}}</includeonly><noinclude>{{/Doc}}</noinclude> | + | <includeonly>{{#ifexist:{{{ns_base|{{NAMESPACE}}}}}:{{{1}}}|[[{{{ns_base|{{NAMESPACE}}}}}:{{{1}}}|{{{2|{{{1}}}}}}]]|{{{2|{{{1}}}}}}}}</includeonly><noinclude>{{/Doc}}</noinclude> |
Revision as of 17:48, 1 July 2017
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}}