Difference between revisions of "Template:Jctint/core"

From blackwiki
Jump to navigation Jump to search
imported>Rschen7754
m (Reverted edits by Rschen7754 (talk) to last version by Imzadi1979)
imported>Scott5114
(Updating to /sandbox version on behalf of User:Imzadi1979)
Line 1: Line 1:
<noinclude>{{Jcttop}}
+
<tr style="text-align:left">
</noinclude><tr style="text-align:left">{{#ifeq:{{{primary_topic|}}}|no|<!--  
+
{{#if:{{{unitary|}}}|<td align={{{unitary_align|left}}} colspan=3>{{{unitary}}}</td>|<!--
 +
 
 +
-->{{#ifeq:{{{primary_topic|}}}|no|<!--  
 +
 
 
*/LOCATIONS/*
 
*/LOCATIONS/*
 
**/almost always disambiguated (USA)/**
 
**/almost always disambiguated (USA)/**
 
-->{{#if:{{{regionspan|}}}|<td rowspan={{{regionspan|1}}}>{{#if:{{{region_special|}}}|{{{region_special}}}|[[{{{region}}}]]}}</td>| }}
 
-->{{#if:{{{regionspan|}}}|<td rowspan={{{regionspan|1}}}>{{#if:{{{region_special|}}}|{{{region_special}}}|[[{{{region}}}]]}}</td>| }}
 
{{#if:{{{indep_city|}}}|<td rowspan={{{sub2span|1}}} colspan=2>[[Independent city|City]] of [[{{{indep_city}}}, {{{indep_city}}}|{{{indep_city}}}]]<br><small>{{{sub1_note|}}}</small>|
 
{{#if:{{{indep_city|}}}|<td rowspan={{{sub2span|1}}} colspan=2>[[Independent city|City]] of [[{{{indep_city}}}, {{{indep_city}}}|{{{indep_city}}}]]<br><small>{{{sub1_note|}}}</small>|
{{#if:{{{indep_city_special|}}}|<td rowspan={{{sub2span|1}}} colspan=2>{{{indep_city_special}}}<br><small>{{{sub1_note|}}}</small>|
+
{{#if:{{{indep_city_special|}}}|<td rowspan={{{sub2span|1}}} colspan=2 align={{{indep_city_align|left}}}>{{{indep_city_special}}}<br><small>{{{sub1_note|}}}</small>|
 
{{#if:{{{sub1|}}}|<td rowspan={{{sub1span|1}}}>[[{{{sub1}}}&nbsp;{{{sub1name}}},_{{{region}}}{{!}}{{{sub1}}}]]<br><small>{{{sub1_note|}}}</small></td>|{{#if:{{{sub1_special|}}}|<td rowspan={{{sub1span|1}}}>{{{sub1_special}}}<br><small>{{{sub1_note|}}}</small></td>|}}}}}}
 
{{#if:{{{sub1|}}}|<td rowspan={{{sub1span|1}}}>[[{{{sub1}}}&nbsp;{{{sub1name}}},_{{{region}}}{{!}}{{{sub1}}}]]<br><small>{{{sub1_note|}}}</small></td>|{{#if:{{{sub1_special|}}}|<td rowspan={{{sub1span|1}}}>{{{sub1_special}}}<br><small>{{{sub1_note|}}}</small></td>|}}}}}}
 
{{#ifeq:{{{sub2}}}|none|<td>&nbsp;</td>|
 
{{#ifeq:{{{sub2}}}|none|<td>&nbsp;</td>|
Line 14: Line 17:
 
-->{{#if:{{{regionspan|}}}|<td rowspan={{{regionspan|1}}}>{{#if:{{{region_special|}}}|{{{region_special}}}|[[{{{region}}}]]}}</td>| }}
 
-->{{#if:{{{regionspan|}}}|<td rowspan={{{regionspan|1}}}>{{#if:{{{region_special|}}}|{{{region_special}}}|[[{{{region}}}]]}}</td>| }}
 
{{#if:{{{indep_city|}}}|<td rowspan={{{sub2span|1}}} colspan=2>[[Independent city|City]] of [[{{{indep_city}}}]]<br><small>{{{sub1_note|}}}</small>|
 
{{#if:{{{indep_city|}}}|<td rowspan={{{sub2span|1}}} colspan=2>[[Independent city|City]] of [[{{{indep_city}}}]]<br><small>{{{sub1_note|}}}</small>|
{{#if:{{{indep_city_special|}}}|<td rowspan={{{sub2span|1}}} colspan=2>{{{indep_city_special}}}<br><small>{{{sub1_note|}}}</small>|
+
{{#if:{{{indep_city_special|}}}|<td rowspan={{{sub2span|1}}} colspan=2 align={{{indep_city_align|left}}}>{{{indep_city_special}}}<br><small>{{{sub1_note|}}}</small>|
 
{{#if:{{{sub1|}}}|<td rowspan={{{sub1span|1}}}>[[{{{sub1}}}{{#if:{{{sub1name|}}}|&#32;{{{sub1name}}}{{!}}{{{sub1}}}|}}]]<br><small>{{{sub1_note|}}}</small></td>|{{#if:{{{sub1_special|}}}|<td rowspan={{{sub1span|1}}}>{{{sub1_special}}}<br><small>{{{sub1_note|}}}</small></td>|}}}}}}
 
{{#if:{{{sub1|}}}|<td rowspan={{{sub1span|1}}}>[[{{{sub1}}}{{#if:{{{sub1name|}}}|&#32;{{{sub1name}}}{{!}}{{{sub1}}}|}}]]<br><small>{{{sub1_note|}}}</small></td>|{{#if:{{{sub1_special|}}}|<td rowspan={{{sub1span|1}}}>{{{sub1_special}}}<br><small>{{{sub1_note|}}}</small></td>|}}}}}}
 
{{#ifeq:{{{sub2}}}|none|<td>&nbsp;</td>|
 
{{#ifeq:{{{sub2}}}|none|<td>&nbsp;</td>|
{{#if:{{{sub2|}}}|<td rowspan={{{sub2span|1}}}>[[{{{sub2}}}]]</td>|{{#if:{{{sub2_special|}}}|<td rowspan={{{sub2span|1}}}>{{{sub2_special}}}</td>|}}}}}}}}}}<!--
+
{{#if:{{{sub2|}}}|<td rowspan={{{sub2span|1}}}>[[{{{sub2}}}]]</td>|{{#if:{{{sub2_special|}}}|<td rowspan={{{sub2span|1}}}>{{{sub2_special}}}</td>|}}}}}}}}}}}}<!--
  
*/DISTANCES, EXITS, and DESTINATIONS/*
+
*/ UNITS AND EXIT NUMBERS /*
 +
-->{{#if:{{{altunit|}}}|<th scope="row" style="text-align: right;" rowspan={{#if:{{{auspan|}}}|{{{auspan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} align=right {{#ifeq:{{{1|}}}|old||{{#if:{{{type|}}}|{{#switch:{{{type}}}
 +
|closed|concur|mplex|incomplete|unbuilt={{Jctint/{{{type}}}}}|#default=}}|}}}}>{{{altunit|&nbsp;}}}</th>|}}<!--
 
-->
 
-->
{{#if:{{{altunit|}}}|{{#ifeq:{{{altunit}}}|none||<td  rowspan={{#if:{{{auspan|}}}|{{{auspan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} align=right {{#ifeq:{{{1|}}}|old||{{#if:{{{type|}}}|{{#switch:{{{type}}}
+
{{#ifeq:{{{unit|}}}|none||<th scope="row" style="text-align: right;" rowspan={{#if:{{{uspan|}}}|{{{uspan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} align=right {{#ifeq:{{{1|}}}|old||{{#if:{{{type|}}}|{{#switch:{{{type}}}
|closed|concur|mplex|incomplete|unbuilt={{Jctint/{{{type}}}}}|#default=}}|}}}}>{{{altunit|&nbsp;}}}</td>|}}}}<!--
+
|closed|concur|mplex|incomplete|unbuilt={{Jctint/{{{type}}}}}|#default=}}|}}}}>{{{unit|&nbsp;}}}{{#if:{{{unit2|}}}|{{#if:{{{line|}}}|<hr/>|–<br/>}}{{{unit2}}}|}}</th>}}<!--
 
-->
 
-->
{{#ifeq:{{{unit|}}}|none||<td rowspan={{#if:{{{uspan|}}}|{{{uspan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} align=right {{#ifeq:{{{1|}}}|old||{{#if:{{{type|}}}|{{#switch:{{{type}}}
+
{{#ifeq:{{{unit|}}}|none||<td bgcolor="#f2f2f2" rowspan={{#if:{{{uspan|}}}|{{{uspan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} align=right {{#ifeq:{{{1|}}}|old||}}>{{Jctint/conversion|1={{{unitdef|}}}|length={{{unit|}}}}}{{#if:{{{unit2|}}}|{{#if:{{{line|}}}|<hr/>|–<br/>}}{{Jctint/conversion|1={{{unitdef|}}}|length={{{unit2|}}}}}|}}</td>}}<!--
|closed|concur|mplex|incomplete|unbuilt={{Jctint/{{{type}}}}}|#default=}}|}}}}>{{{unit|&nbsp;}}}{{#if:{{{unit2|}}}|–<br/>{{{unit2}}}|}}{{{unit_ref|}}}</td>}}<!--
+
-->{{#if:{{{place|}}}|<td rowspan={{#if:{{{pspan|}}}|{{{pspan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} colspan={{#switch:{{{1|}}}{{{2|}}}|exit=3|old=4|exitname=4|oldname=5|#default=2}} align=center>{{{place|&nbsp;}}}</td>|<!--
 
-->{{#ifeq:{{{1|}}}|old|<td rowspan={{#if:{{{ospan|}}}|{{{ospan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} bgcolor=#d3d3d3 align=center >{{{old|&nbsp;}}}</td>|}}<!--
 
-->{{#ifeq:{{{1|}}}|old|<td rowspan={{#if:{{{ospan|}}}|{{{ospan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} bgcolor=#d3d3d3 align=center >{{{old|&nbsp;}}}</td>|}}<!--
 
-->{{#ifeq:{{{1|}}}|old|<td rowspan={{#if:{{{espan|}}}|{{{espan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} align=center {{#if:{{{type|}}}|{{#switch:{{{type}}}
 
-->{{#ifeq:{{{1|}}}|old|<td rowspan={{#if:{{{espan|}}}|{{{espan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} align=center {{#if:{{{type|}}}|{{#switch:{{{type}}}
Line 33: Line 38:
 
-->{{#ifeq:{{{2|}}}|name|<td rowspan={{#if:{{{namespan|}}}|{{{namespan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} {{#if:{{{type|}}}|{{#switch:{{{type}}}
 
-->{{#ifeq:{{{2|}}}|name|<td rowspan={{#if:{{{namespan|}}}|{{{namespan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} {{#if:{{{type|}}}|{{#switch:{{{type}}}
 
|closed|concur|mplex|incomplete|unbuilt={{Jctint/{{{type}}}}}|#default=}}|}}>{{{name|&nbsp;}}}</td>|}}<!--
 
|closed|concur|mplex|incomplete|unbuilt={{Jctint/{{{type}}}}}|#default=}}|}}>{{{name|&nbsp;}}}</td>|}}<!--
 +
 +
*/DESTINATIONS /*
 +
 
--><td colspan={{#if:{{{rcspan|}}}|{{{rcspan}}}|1}} rowspan={{#if:{{{rspan|}}}|{{{rspan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} {{#if:{{{type|}}}|{{#switch:{{{type}}}
 
--><td colspan={{#if:{{{rcspan|}}}|{{{rcspan}}}|1}} rowspan={{#if:{{{rspan|}}}|{{{rspan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} {{#if:{{{type|}}}|{{#switch:{{{type}}}
 
|closed|concur|mplex|incomplete|unbuilt={{Jctint/{{{type}}}}}|#default=}}|}}>{{{road|&nbsp;}}}</td><!--
 
|closed|concur|mplex|incomplete|unbuilt={{Jctint/{{{type}}}}}|#default=}}|}}>{{{road|&nbsp;}}}</td><!--
 
-->{{#ifeq:{{{notes|}}}|none||<td rowspan={{#if:{{{nspan|}}}|{{{nspan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} {{#if:{{{type|}}}|{{#switch:{{{type}}}
 
-->{{#ifeq:{{{notes|}}}|none||<td rowspan={{#if:{{{nspan|}}}|{{{nspan}}}|{{#if:{{{jspan|}}}|{{{jspan}}}|1}}}} {{#if:{{{type|}}}|{{#switch:{{{type}}}
|closed|concur|mplex|incomplete|unbuilt={{Jctint/{{{type}}}}}|#default=}}|}}>{{{notes|&nbsp;}}}</td>}}</tr><!--
+
|closed|concur|mplex|incomplete|unbuilt={{Jctint/{{{type}}}}}|#default=}}|}}>{{{notes|&nbsp;}}}</td>}}}}</tr>
-->{{#iferror:{{#expr: 0 + {{#if:{{{unit|}}}|{{#switch:{{{unit|}}}| |none=0|#default={{{unit|}}}}}|0}} + {{#if:{{{unit2|}}}|{{#switch:{{{unit2|}}}| |none=0|#default={{{unit2|}}}}}|0}} }}|[[Category:Jctint template using non-numeric parameter values|# {{PAGENAME}}]]|}}<!--
+
{{#iferror:{{#expr: 0 + {{#if:{{{unit|}}}|{{#switch:{{{unit|}}}| |none=0|#default={{{unit|}}}}}|0}} + {{#if:{{{unit2|}}}|{{#switch:{{{unit2|}}}| |none=0|#default={{{unit2|}}}}}|0}} }}|[[Category:Jctint template using non-numeric parameter values|# {{PAGENAME}}]]|}}<!--
-->{{#ifeq:{{{indep_city|}}}|yes|[[Category:Jctint template listing independent cities|{{PAGENAME}}]]|}}<noinclude>
+
-->{{#ifeq:{{{indep_city|}}}|yes|[[Category:Jctint template listing independent cities|{{PAGENAME}}]]|}}
{{Jctbtm}}
 
{{documentation}}
 
</noinclude>
 

Revision as of 03:36, 18 May 2012