Difference between revisions of "Template:Navbox"

From All About Ayrshire
Jump to: navigation, search
m (1 revision imported)
Line 1: Line 1:
<includeonly>{{#invoke:Navbox|navbox}}</includeonly><noinclude>
+
<noinclude>{{High use}}
{{Documentation}}
+
<div style="border: 2px solid black; background-color:wheat; margin:4px;padding:4px;">
</noinclude>
+
'''<big>Documentation: {{BASEPAGENAME}}</big>'''
 +
 
 +
The Navbox is the big template across the bottom of pretty much every page on the SABRE Wiki.
 +
 
 +
Do not edit this template unnecessarily as it is included in thousands of pages. This causes issues regarding the Job Queue, after an update it takes thousands of page views to clear the job queue. If edited twice, that number doubles  (etc..) Smaller updates to other templates then need to wait for the job queue to clear before they take full effect, which can cause problems for other editors. For small updates, try to find out if there is a bigger update planned, usually discussed in the [http://www.sabre-roads.org.uk/forum/viewforum.php?f=5 wiki forum], which it can be included with. If it must be updated, please try to time the update at about 1am as the Job Queue gets emptied at 2am.
 +
 
 +
'''The Navbox template is probably the most highly used template on the SABRE Wiki.  You have been warned!'''
 +
 
 +
<!--
 +
 
 +
check if this is a sandbox template and present some information accordingly.
 +
 
 +
-->{{#ifeq:{{#rpos:{{BASEPAGENAME}}|sandbox}}|-1|''Please test all edits on the sandbox first:  [[:Template:Navbox sandbox]]''|''This is the sandbox for [[:Template:Navbox]] - test all edits here first.  the sandbox template is included in [[A449 Sandbox]])''}}
 +
 
 +
 
 +
To use this template, copy the code below, replacing anything within <nowiki><tags></nowiki> as appropriate.
 +
<div style="border: 1px dashed black; background-color:white; margin:2px;padding:4px;font-family:Courier,system;">
 +
&#123;&#123;  {{BASEPAGENAME}} | <lots> }}
 +
</div>
 +
'''<nowiki><lots></nowiki>''' - There are many different options available.  See the [[Help:Navboxes]] page for details of how to use this template.<br/>
 +
</div>
 +
 
 +
[[Category:Navboxes]]<!--
 +
 
 +
check if this is a sandbox template and add it to the relevant category
 +
 
 +
-->{{#ifeq:{{#rpos:{{BASEPAGENAME}}|sandbox}}|-1| |[[Category:Sandbox Templates]]}}
 +
 
 +
 
 +
</noinclude><includeonly><br/><br/><!--
 +
 
 +
Clears space for template -->
 +
{{clear}}
 +
<div>
 +
<!--
 +
 
 +
Creates a header row for box including title of page
 +
 
 +
-->
 +
<table class="toc" style="width:90%;margin:auto;" cellspacing="1" cellpadding="0">
 +
<tr><td style="color:white;background-color:#0E72A4;font-size:12pt; text-align:center;padding:8px;">'''[[{{{1|{{#urldecode:{{PAGENAMEE}}}}}}}|<span style="color:white;">{{{1|{{PAGENAME}}}}}</span>]]'''</td></tr>
 +
<!--
 +
 
 +
Displays and formats a list of route sections in page's category
 +
 
 +
-->{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Sections'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;"><td></td></tr>
 +
  |category={{{1|{{#urldecode:{{PAGENAMEE}}}}}}}&Road_Sections
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}<!--
 +
 
 +
Displays and formats a list of projects in page's category
 +
 
 +
-->{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Projects'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;"><td></td></tr>
 +
  |category={{{1|{{#urldecode:{{PAGENAMEE}}}}}}}&Road_Projects
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}<!--
 +
 
 +
Displays and formats a list of junctions in page's category
 +
 
 +
-->{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4; border:0"><tr><td width="100">'''Junctions'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;"><td></td></tr>
 +
  |category={{{1|{{#urldecode:{{PAGENAMEE}}}}}}}&Junctions
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}<!--
 +
 
 +
Displays and formats a list of services in page's category
 +
 
 +
-->{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Services'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;"><td></td></tr>
 +
  |category={{{1|{{#urldecode:{{PAGENAMEE}}}}}}}&Services
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}<!--
 +
 
 +
Displays and formats a list of crossings in page's category
 +
 
 +
-->{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Crossings'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;"><td></td></tr>
 +
  |category={{{1|{{#urldecode:{{PAGENAMEE}}}}}}}&All_Crossings
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}<!--
 +
 
 +
Displays and formats a list of roads in page's category
 +
 
 +
-->{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Roads'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;"><td></td></tr>
 +
  |category={{{1|{{#urldecode:{{PAGENAMEE}}}}}}}&Roads
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}<!--
 +
 
 +
Displays and formats a list of places in page's category
 +
 
 +
-->{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Places'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;"><td></td></tr>
 +
  |category={{{1|{{#urldecode:{{PAGENAMEE}}}}}}}&Places
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}<!--
 +
 
 +
Displays and formats a list of everything else in page's category that isn't covered by the above
 +
 
 +
-->{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Miscellaneous'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;"><td></td></tr>
 +
  |category={{{1|{{#urldecode:{{PAGENAMEE}}}}}}}
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |notcategory=Primary Destinations
 +
  |notcategory=Places 
 +
  |notcategory=Terminal Destinations
 +
  |notcategory=Intermediate Destinations
 +
  |notcategory=Non Primary Destinations
 +
  |notcategory=Junctions
 +
  |notcategory=Services
 +
  |notcategory=All Crossings
 +
  |notcategory=Road Projects
 +
  |notcategory=Road Sections
 +
  |notcategory=Roads
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}<!--
 +
 
 +
Displays and formats a the first few pictures in page's pictures category, but not items marked as strip maps or fantasy maps
 +
 
 +
-->{{#dpl: 
 +
  |noresultsheader= <tr style="display:none;"><td></td></tr>
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Related Pictures'''<br/>{{Get Pictures|{{{1|{{#urldecode:{{PAGENAMEE}}}}}}}}}</td><td style="background-color:whitesmoke;">
 +
  |category={{{1|{{#urldecode:{{PAGENAMEE}}}}}}}_pictures
 +
  |notcategory=Strip_Maps
 +
  |notcategory=Fantasy_Maps
 +
  |namespace=File
 +
  |randomcount=5
 +
  |allowcachedresults=false
 +
  |escapelinks=false
 +
  |format=,<span style="margin:4px;">[[%PAGE%|{{{2|100px}}}]]</span>,,
 +
 
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}<!--
 +
 
 +
Displays and formats a list of nearby roads in page's category, starting with the header
 +
 
 +
-->{{#if: {{{nearby|}}}{{{nearby1|}}}{{{nearby2|}}}{{{nearby3|}}}{{{nearby4|}}}{{{nearby5|}}} |
 +
<tr><td style="background-color:whitesmoke;font-size:7pt;color:#0E72A4;padding:0px;">
 +
<table width="100%" cellpadding="2" cellspacing="0" style="background-color:whitesmoke;"><tr><td style="color:white;background-color:#0E72A4;font-size:12pt;text-align:center;padding:8px;">'''Other nearby roads'''</td></tr>
 +
<!--
 +
 
 +
Now deal with "nearby" parameter, and display
 +
 
 +
-->{{#if:{{{nearby|}}} |
 +
{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;"><tr><td width="100">'''[[{{{nearby1}}}]]'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;visibility:hidden;"><td></td></tr>
 +
  |category={{{nearby}}}&Roads
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}
 +
}}<!--
 +
 
 +
Now deal with "nearby1" parameter, and display
 +
 
 +
-->{{#if:{{{nearby1|}}} |
 +
{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;"><tr><td width="100">'''[[{{{nearby1}}}]]'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;visibility:hidden;"><td></td></tr>
 +
  |category={{{nearby1}}}&Roads
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}
 +
}}<!--
 +
 
 +
Now deal with "nearby2" parameter, and display
 +
 
 +
-->{{#if:{{{nearby2|}}} |
 +
{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;"><tr><td width="100">'''[[{{{nearby2}}}]]'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;visibility:hidden;"><td></td></tr>
 +
  |category={{{nearby2}}}&Roads
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}
 +
}}<!--
 +
 
 +
Now deal with "nearby3" parameter, and display
 +
 
 +
-->{{#if:{{{nearby3|}}} |
 +
{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;"><tr><td width="100">'''[[{{{nearby3}}}]]'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;visibility:hidden;"><td></td></tr>
 +
  |category={{{nearby3}}}&Roads
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}
 +
}}<!--
 +
 
 +
Now deal with "nearby4" parameter, and display
 +
 
 +
-->{{#if:{{{nearby4|}}} |
 +
{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;"><tr><td width="100">'''[[{{{nearby4}}}]]'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;visibility:hidden;"><td></td></tr>
 +
  |category={{{nearby4}}}&Roads
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}
 +
}}<!--
 +
 
 +
Now deal with "nearby5" parameter, and display
 +
 
 +
-->{{#if:{{{nearby5|}}} |
 +
{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;"><tr><td width="100">'''[[{{{nearby5}}}]]'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;visibility:hidden;"><td></td></tr>
 +
  |category={{{nearby5}}}&Roads
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}
 +
}}
 +
</table>
 +
</td></tr>
 +
}}<!--
 +
 
 +
Displays and formats a list of nearby junctions in page's category, starting with the header
 +
-->{{#if: {{{junctions|}}}{{{junctions1|}}}{{{junctions2|}}}{{{junctions3|}}} |
 +
<tr><td style="background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;">
 +
<table width="100%" cellpadding="2" cellspacing="0" style="background-color:whitesmoke;"><tr><td style="color:white;background-color:#0E72A4;font-size:12pt;text-align:center;padding:8px;">'''Other nearby junctions'''</td></tr><!--
 +
 
 +
Now deal with "junctions" parameter, and display
 +
 
 +
-->{{#if:{{{junctions|}}} |
 +
{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;"><tr><td width="100">'''[[{{{junctions}}}]]'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;visibility:hidden;"><td></td></tr>
 +
  |category={{{junctions}}}&Junctions
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}
 +
}}<!--
 +
 
 +
Now deal with "junctions1" parameter, and display
 +
 
 +
-->{{#if:{{{junctions1|}}} |
 +
{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;"><tr><td width="100">'''[[{{{junctions1}}}]]'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;visibility:hidden;"><td></td></tr>
 +
  |category={{{junctions1}}}&Junctions
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}
 +
}}<!--
 +
 
 +
Now deal with "junctions2" parameter, and display
 +
 
 +
-->{{#if:{{{junctions2|}}} |
 +
{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;"><tr><td width="100">'''[[{{{junctions2}}}]]'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;visibility:hidden;"><td></td></tr>
 +
  |category={{{junctions2}}}&Junctions
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}
 +
}}<!--
 +
 
 +
Now deal with "junctions3" parameter, and display
 +
 
 +
-->{{#if:{{{junctions3|}}} |
 +
{{#dpl:
 +
  |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;"><tr><td width="100">'''[[{{{junctions3}}}]]'''</td><td style="background-color:whitesmoke;">
 +
  |noresultsheader= <tr style="display:none;visibility:hidden;"><td></td></tr>
 +
  |category={{{junctions3}}}&Junctions
 +
  |nottitlematch={{#urldecode:{{PAGENAMEE}}}}
 +
  |ordermethod    = sortkey
 +
  |order          = ascending
 +
  |namespace=
 +
  |allowcachedresults=false
 +
  |mode=inline
 +
  |inlinetext=&nbsp;&bull;&#32;
 +
  |resultsfooter=</td></tr></table></td></tr>
 +
}}
 +
}}
 +
</table>
 +
</td></tr>
 +
}}<!--
 +
 
 +
Show items that are in the category specified by "cat=" parameter in own section in navbox
 +
 
 +
-->{{#if:{{{cat|}}} |
 +
<tr><td style="background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;">{{Cat|{{{cat|}}}}}
 +
</td></tr> }}<!--
 +
 
 +
Show items that are in the category specified by "cat1=" parameter in own section in navbox
 +
 
 +
-->{{#if:{{{cat1|}}} |
 +
<tr><td style="background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;">{{Cat|{{{cat1|}}}}}
 +
</td></tr> }}<!--
 +
 
 +
Show items that are in the category specified by "cat2=" parameter in own section in navbox
 +
 
 +
-->{{#if:{{{cat2|}}} |
 +
<tr><td style="background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;">{{Cat|{{{cat2|}}}}}
 +
</td></tr> }}<!--
 +
 
 +
Show items that are in the category specified by "cat3=" parameter in own section in navbox  
 +
 
 +
-->{{#if:{{{cat3|}}} |
 +
<tr><td style="background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;">{{Cat|{{{cat3|}}}}}
 +
</td></tr> }}
 +
</table><!--
 +
 
 +
If junctions= or nearby= has been specified, then categorise pages accordingly, i.e. if MyTown is nearby, then categorise this as being within MyTown's category:
 +
 
 +
-->{{#if:{{{nearby|}}}|[[Category:{{{nearby}}}]] |}} <!--
 +
-->{{#if:{{{nearby1|}}}|[[Category:{{{nearby1}}}]] |}} <!--
 +
-->{{#if:{{{nearby2|}}}|[[Category:{{{nearby2}}}]] |}} <!--
 +
-->{{#if:{{{nearby3|}}}|[[Category:{{{nearby3}}}]] |}} <!--
 +
-->{{#if:{{{nearby4|}}}|[[Category:{{{nearby4}}}]] |}} <!--
 +
-->{{#if:{{{nearby5|}}}|[[Category:{{{nearby5}}}]] |}} <!--
 +
-->{{#if:{{{junctions|}}}|[[Category:{{{junctions}}}]] |}} <!--
 +
-->{{#if:{{{junctions1|}}}|[[Category:{{{junctions1}}}]] |}} <!--
 +
-->{{#if:{{{junctions2|}}}|[[Category:{{{junctions2}}}]] |}} <!--
 +
-->{{#if:{{{junctions3|}}}|[[Category:{{{junctions3}}}]] |}} <!--
 +
--><!--
 +
 
 +
Create/Increment Template Usage Counter by 1
 +
 
 +
-->{{#vardefine:NavboxUsage|{{#expr:{{#var:NavboxUsage|0}}+1}}}}<!--
 +
 
 +
Test to see if usage counter > 1 (i.e. template present more than once on page)
 +
 
 +
-->{{#ifexpr:{{#var:NavboxUsage|1}}>1|[[Category:Pages with Multiple Navbox Templates]]|}}</includeonly>

Revision as of 14:26, 27 December 2020

Documentation: Navbox

The Navbox is the big template across the bottom of pretty much every page on the SABRE Wiki.

Do not edit this template unnecessarily as it is included in thousands of pages. This causes issues regarding the Job Queue, after an update it takes thousands of page views to clear the job queue. If edited twice, that number doubles (etc..) Smaller updates to other templates then need to wait for the job queue to clear before they take full effect, which can cause problems for other editors. For small updates, try to find out if there is a bigger update planned, usually discussed in the wiki forum, which it can be included with. If it must be updated, please try to time the update at about 1am as the Job Queue gets emptied at 2am.

The Navbox template is probably the most highly used template on the SABRE Wiki. You have been warned!

This is the sandbox for Template:Navbox - test all edits here first. the sandbox template is included in A449 Sandbox)


To use this template, copy the code below, replacing anything within <tags> as appropriate.

{{ Navbox | <lots> }}

<lots> - There are many different options available. See the Help:Navboxes page for details of how to use this template.