390
edições
Alterações
Update documentation to match the summary/parameters/examples pattern for other template docs.
==Summary==
The idea here is to stop nasty redlinks appearing on information transcluded from the Lore namespace into game spaces.
For instance, it's perfectly valid for the Oblivion:Abecean Sea article to transclude Lore:Abecean Sea but because of prior links, the Oblivion one gets redlinks to places like Hammerfell and Valenwood. We don't want Oblivion:Hammerfell and Oblivion:Valenwood pages because those ought to link to the Lore space.
This template will try the local namespace first, then the parent namespace, then Lore, and then display a non-link.
==Parameters==
{{Parameters
|1|required|The name of the page to link to.
|display ''or'' 2|optional|Text to display instead of the page name.
}}
==Examples==
<pre>{{Lore Link|Hammerfell|This points to Lore namespace.}}</pre>
{{Lore Link|Hammerfell|This points to Lore namespace.}}
<pre>{{Lore Link|Aedra and Daedra|This points to Template namespace.}}</pre>
{{Lore Link|Aedra and Daedra|This points to Template namespace.}}
<pre>{{Lore Link|The Hamburglar|This is not a link.}}</pre>
{{Lore Link|The Hamburglar|This is not a link.}}
<includeonly>
[[Category:Link Templates|Lore Link]]
</includeonly><noinclude>[[Category:Template Documentation|Lore Link]]</noinclude>
The idea here is to stop nasty redlinks appearing on information transcluded from the Lore namespace into game spaces.
For instance, it's perfectly valid for the Oblivion:Abecean Sea article to transclude Lore:Abecean Sea but because of prior links, the Oblivion one gets redlinks to places like Hammerfell and Valenwood. We don't want Oblivion:Hammerfell and Oblivion:Valenwood pages because those ought to link to the Lore space.
This template will try the local namespace first, then the parent namespace, then Lore, and then display a non-link.
==Parameters==
{{Parameters
|1|required|The name of the page to link to.
|display ''or'' 2|optional|Text to display instead of the page name.
}}
==Examples==
<pre>{{Lore Link|Hammerfell|This points to Lore namespace.}}</pre>
{{Lore Link|Hammerfell|This points to Lore namespace.}}
<pre>{{Lore Link|Aedra and Daedra|This points to Template namespace.}}</pre>
{{Lore Link|Aedra and Daedra|This points to Template namespace.}}
<pre>{{Lore Link|The Hamburglar|This is not a link.}}</pre>
{{Lore Link|The Hamburglar|This is not a link.}}
<includeonly>
[[Category:Link Templates|Lore Link]]
</includeonly><noinclude>[[Category:Template Documentation|Lore Link]]</noinclude>