Difference between revisions of "Template:Trail"

The Beyond Skyrim Wiki — Hosted by UESP
Jump to: navigation, search
(rough Trail starting point)
 
Line 1: Line 1:
<div style="font-size:small;">&lt; {{Autolink|{{NAMESPACE}}|{{NAMESPACE}}}}{{#if:{{{1|}}}|: {{Autolink|{{{1|}}}}}{{#if:{{{2|}}}|: {{Autolink|{{{2|}}}}}</div>
+
<div style="font-size:80%;">&lt; [[{{NAMESPACE}}:{{NAMESPACE}}|{{NAMESPACE}}]]{{#if:{{{1|}}}|&#58; [[{{NAMESPACE}}:{{{1|}}}|{{{1|}}}]]}}{{#if:{{{2|}}}|&#58; [[{{NAMESPACE}}:{{{2|}}}|{{{2|}}}]]}}</div>
 
<includeonly>{{if:{{{nocat|}}}||{{#if:{{{1|}}}|[[Category:{{NAMESPACE}}-{{{1}}}]]{{#if:{{{2|}}}|[[Category:{{NAMESPACE}}-{{{1}}}-{{{2}}}]]}}}}</includeonly><noinclude>{{/Doc}}</noinclude>
 
<includeonly>{{if:{{{nocat|}}}||{{#if:{{{1|}}}|[[Category:{{NAMESPACE}}-{{{1}}}]]{{#if:{{{2|}}}|[[Category:{{NAMESPACE}}-{{{1}}}-{{{2}}}]]}}}}</includeonly><noinclude>{{/Doc}}</noinclude>

Revision as of 17:11, 20 May 2018

< Template

Summary

Creates a bread crumb trail and adds the article to the appropriate category.

Parameters

Trail
Parameter Scope Description
ns_base optional The namespace the page is located in (defaults to current namespace)
root optional The first page in the trail (defaults to Main Page)
1
2
optional The elements of the trail and categories to be used. These should not be links.
nocat optional If a value is passed for this parameter, no categories will be added.

Example

{{Trail|Factions}}
< Cyrodiil:Factions

[[Category:Cyrodiil-Factions]]