Difference between revisions of "Template:Trail"

The Beyond Skyrim Wiki — Hosted by UESP
Jump to: navigation, search
m (Undo revision 2432 by Candoran2 (talk) - changed text did not get transcluded, but colon did.)
(Added case for when 1 and 2 are not defined, to be added to the namespace category.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<div style="font-size:80%;">&lt; {{#if:{{{ns_base|{{NAMESPACE}}}}} |[[{{{ns_base|{{NAMESPACE}}}}}:{{{root|Main Page}}}|{{{ns_base|{{NAMESPACE}}}}}]]{{#if: {{{1|}}}|&#58; }}}}{{#if:{{{1|}}}|[[{{#if: {{{ns_base|{{NAMESPACE}}}}}|{{{ns_base|{{NAMESPACE}}}}}:}}{{{1|}}}|{{{1|}}}]]}}{{#if:{{{2|}}}|&#58; [[{{#if: {{{ns_base|{{NAMESPACE}}}}}|{{{ns_base|{{NAMESPACE}}}}}:}}{{{2|}}}|{{{2|}}}]]}}</div>
+
<div style="font-size:80%;">&lt; {{#if:{{{ns_base|{{NAMESPACE}}}}} |[[{{{ns_base|{{NAMESPACE}}}}}:{{{root|Main Page}}}|{{{ns_base|{{NAMESPACE}}}}}]]{{#if: {{{1|}}}|&#58; }}}}{{#if:{{{1|}}}|[[{{#if: {{{ns_base|{{NAMESPACE}}}}}|{{{ns_base|{{NAMESPACE}}}}}:}}{{{1|}}}|{{{1|}}}]]}}{{#if:{{{2|}}}|&#58; [[{{#if: {{{ns_base|{{NAMESPACE}}}}}|{{{ns_base|{{NAMESPACE}}}}}:}}{{{2|}}}|{{{2|}}}]]}}</div>{{DISPLAYTITLE:<small>{{NAMESPACE}}: </small>{{PAGENAME}}}}
<includeonly>{{#if:{{{nocat|}}}||{{#if:{{{1|}}}|[[Category:{{#if: {{{ns_base|{{NAMESPACE}}}}}|{{{ns_base|{{NAMESPACE}}}}}-}}{{{1}}}]]{{#if:{{{2|}}}|[[Category:{{#if: {{{ns_base|{{NAMESPACE}}}}}|{{{ns_base|{{NAMESPACE}}}}}-}}{{{1}}}-{{{2}}}]]}}}}}}</includeonly><noinclude>{{/Doc}}</noinclude>
+
<includeonly>{{#if:{{{nocat|}}}||{{#if:{{{1|}}}|[[Category:{{#if: {{{ns_base|{{NAMESPACE}}}}}|{{{ns_base|{{NAMESPACE}}}}}-}}{{{1}}}]]{{#if:{{{2|}}}|[[Category:{{#if: {{{ns_base|{{NAMESPACE}}}}}|{{{ns_base|{{NAMESPACE}}}}}-}}{{{1}}}-{{{2}}}]]}}|{{#if: {{{ns_base|{{NAMESPACE}}}}}|[[Category:{{{ns_base|{{NAMESPACE}}}}}]]}}}}}}</includeonly><noinclude>{{/Doc}}</noinclude>

Latest revision as of 03:53, 26 July 2020

< Template

Summary[edit]

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

Parameters[edit]

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[edit]

{{Trail|Factions}}
< Cyrodiil:Factions

[[Category:Cyrodiil-Factions]]