|
|
(5 intermediate revisions by the same user not shown) |
Line 8: |
Line 8: |
| | | |
| '''The Navbox template is probably the most highly used template on the Wiki. You have been warned!''' | | '''The Navbox template is probably the most highly used template on the Wiki. You have been warned!''' |
− |
| |
− | Test all edits on [[Template:Navbox sandbox]] first (the sandbox template is included in [[A449 Sandbox]])
| |
| | | |
| To use this template, copy the code below, replacing anything within <tags> as appropriate. | | To use this template, copy the code below, replacing anything within <tags> as appropriate. |
Line 35: |
Line 33: |
| <!-- | | <!-- |
| | | |
− | Displays and formats a list of junctions in page's category | + | Displays and formats a list of Towns in page's category |
| | | |
| -->{{#dpl: | | -->{{#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;"> | + | |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Towns'''</td><td style="background-color:whitesmoke;"> |
| |noresultsheader= <tr style="display:none;"><td></td></tr> | | |noresultsheader= <tr style="display:none;"><td></td></tr> |
− | |category={{{1|{{PAGENAME}}}}}&Junctions | + | |category={{{1|{{PAGENAME}}}}}&Towns |
| |namespace= | | |namespace= |
| |allowcachedresults=false | | |allowcachedresults=false |
Line 48: |
Line 46: |
| }}<!-- | | }}<!-- |
| | | |
− | Displays and formats a list of services in page's category
| |
| | | |
− | -->{{#dpl:
| + | Displays and formats a list of Vilages in page's category |
− | |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|{{PAGENAME}}}}}&Services
| |
− | |namespace=
| |
− | |allowcachedresults=false
| |
− | |mode=inline
| |
− | |inlinetext= • 
| |
− | |resultsfooter=</td></tr></table></td></tr>
| |
− | }}<!--
| |
− | | |
− | Displays and formats a list of crossings in page's category | |
| | | |
| -->{{#dpl: | | -->{{#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;"> | + | |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Villages'''</td><td style="background-color:whitesmoke;"> |
| |noresultsheader= <tr style="display:none;"><td></td></tr> | | |noresultsheader= <tr style="display:none;"><td></td></tr> |
− | |category={{{1|{{PAGENAME}}}}}&All_Crossings | + | |category={{{1|{{PAGENAME}}}}}&Villages |
| |namespace= | | |namespace= |
| |allowcachedresults=false | | |allowcachedresults=false |
Line 74: |
Line 60: |
| }}<!-- | | }}<!-- |
| | | |
− | Displays and formats a list of projects in page's category | + | Displays and formats a list of Hamlets in page's category |
| | | |
| -->{{#dpl: | | -->{{#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;"> | + | |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Other settlements and suburbs'''</td><td style="background-color:whitesmoke;"> |
| |noresultsheader= <tr style="display:none;"><td></td></tr> | | |noresultsheader= <tr style="display:none;"><td></td></tr> |
− | |category={{{1|{{PAGENAME}}}}}&Road_Projects | + | |category={{{1|{{PAGENAME}}}}}&Hamlets |
| |namespace= | | |namespace= |
| |allowcachedresults=false | | |allowcachedresults=false |
Line 87: |
Line 73: |
| }}<!-- | | }}<!-- |
| | | |
− | Displays and formats a list of roads in page's category
| |
| | | |
− | -->{{#dpl:
| + | Displays and formats a list of Councils in page's category |
− | |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|{{PAGENAME}}}}}&Roads
| |
− | |namespace=
| |
− | |allowcachedresults=false
| |
− | |mode=inline
| |
− | |inlinetext= • 
| |
− | |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: | | -->{{#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;"> | + | |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;"><tr><td width="100">'''Neighbouring Council Areas'''</td><td style="background-color:whitesmoke;"> |
| |noresultsheader= <tr style="display:none;"><td></td></tr> | | |noresultsheader= <tr style="display:none;"><td></td></tr> |
− | |category={{{1|{{PAGENAME}}}}} | + | |category={{{1|{{PAGENAME}}}}}&Councils |
− | |notcategory=Towns
| |
− | |notcategory=Vilages
| |
− | |notcategory=Other settlements and suburbs
| |
− | |notcategory=Neighbouring council areas
| |
| |namespace= | | |namespace= |
| |allowcachedresults=false | | |allowcachedresults=false |
Line 117: |
Line 87: |
| }}<!-- | | }}<!-- |
| | | |
− | Displays and formats a the first few pictures in page's pictures category, but not items marked as strip 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|{{PAGENAME}}}}}}}</td><td style="background-color:whitesmoke;">
| |
− | |category={{{1|{{PAGENAME}}}}}_pictures
| |
− | |notcategory=Strip_Maps
| |
− | |namespace=File
| |
− | |randomcount=5
| |
− | |randomseed={{#time:Ymd}}
| |
− | |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: {{{group1|}}}{{{group2|}}}{{{group3|}}}{{{group4|}}}{{{group5|}}} |
| |
− | <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 "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
| |
− | |namespace=
| |
− | |allowcachedresults=false
| |
− | |mode=inline
| |
− | |inlinetext= • 
| |
− | |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
| |
− | |namespace=
| |
− | |allowcachedresults=false
| |
− | |mode=inline
| |
− | |inlinetext= • 
| |
− | |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
| |
− | |allowcachedresults=false
| |
− | |mode=inline
| |
− | |inlinetext= • 
| |
− | |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
| |
− | |namespace=
| |
− | |allowcachedresults=false
| |
− | |mode=inline
| |
− | |inlinetext= • 
| |
− | |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
| |
− | |namespace=
| |
− | |allowcachedresults=false
| |
− | |mode=inline
| |
− | |inlinetext= • 
| |
− | |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: {{{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 "junctions1" parameter, and display
| |
− |
| |
− | -->{{#if:{{{group1|}}} |
| |
− | {{#dpl:
| |
− | |resultsheader=<tr><td><table style="width:100%;background-color:whitesmoke;font-size:8pt;color:#0E72A4;padding:0px;"><tr><td width="100">'''[[{{{group1}}}]]'''</td><td style="background-color:whitesmoke;">
| |
− | |noresultsheader= <tr style="display:none;visibility:hidden;"><td></td></tr>
| |
− | |category={{{group1}}}&Towns
| |
− | |namespace=
| |
− | |allowcachedresults=false
| |
− | |mode=inline
| |
− | |inlinetext= • 
| |
− | |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
| |
− | |namespace=
| |
− | |allowcachedresults=false
| |
− | |mode=inline
| |
− | |inlinetext= • 
| |
− | |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
| |
− | |namespace=
| |
− | |allowcachedresults=false
| |
− | |mode=inline
| |
− | |inlinetext= • 
| |
− | |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 sandbox|{{{cat|}}}}}
| |
− | </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 sandbox|{{{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 sandbox|{{{cat3|}}}}}
| |
| </td></tr> }} | | </td></tr> }} |
| </table> | | </table> |