Difference between revisions of "Template:Jctgap"

From blackwiki
Jump to navigation Jump to search
imported>Imzadi1979
m (try this...)
imported>Happy5214
m (Fixing alignment)
Line 1: Line 1:
 
<noinclude><table></noinclude><tr>
 
<noinclude><table></noinclude><tr>
<td colspan={{{col|8}}} align=center {{#if:{{{type|}}}|{{#switch:{{{type}}}
+
<td colspan={{{col|8}}} style="text-align:center;" {{#if:{{{type|}}}|{{#switch:{{{type}}}
|closed|unbuilt=style="{{Jctint/type|{{{type}}}}};"|#default=}}|}}>{{{text|Gap in {{#switch:{{{state|}}}|MI=highway|#default=route}} }}}</td></tr><noinclude></table>{{documentation}}</noinclude>
+
|closed|unbuilt={{Jctint/type|{{{type}}}}}|#default=}}|}}>{{{text|Gap in {{#switch:{{{state|}}}|MI=highway|#default=route}} }}}</td></tr><noinclude></table>{{documentation}}</noinclude>

Revision as of 01:35, 31 December 2013

Gap in route
Template documentation[view] [edit] [history] [purge]

This is a template for generating an entry in a junction list or exit list when there is a gap in the route.

Usage

Complete variable list:

{{jctgap |col= |type= |text= }}

For the above parameters, here's what you should fill in:

  • col: number of columns the cell needs to span. Default is 5.
  • type: use to specify a shading for that junction's row. The two permitted types are:
    • closed: for gaps caused by sections removed from the highway
    • unbuilt: for gaps caused by unbuilt highway sections
    • Note: the default text cannot be used if a color is set. MOS:RJL requires colorized rows to have some explanation for the color.
  • text: custom text if desired.

Any parameter which is empty can be omitted.

See also

  • {{jctint}}, a related template for road junctions
  • {{jctbridge}}, a related template for bridge or tunnel crossings