Difference between revisions of "Template:MIint"

From blackwiki
Jump to navigation Jump to search
imported>Fredddie
(using the module)
imported>WOSlinker
(pp templates not needed here)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#invoke:Jctint/USA|jctint
+
<includeonly>{{Jctint/core
|state=MI
+
|1={{{1|}}}
|sub2param=township
+
|region=Michigan
}}<noinclude>
+
|region_special={{{state_special|}}}
{{pp-template|small=yes}}
+
|regionspan={{{sspan|}}}
 +
|primary_topic=no
 +
|sub1={{{county|}}}
 +
|sub1name=County
 +
|sub1span={{{cspan|}}}
 +
|sub1_special={{#if:{{{county2|}}}|[[{{{county1|}}} County, Michigan|{{{county1}}}]]–[[{{{county2|}}} County, Michigan|{{{county2|}}}]]{{#if:{{{county3|}}}|–<br>[[{{{county3|}}} County, Michigan|{{{county3}}}]]{{#if:{{{county4|}}}|–[[{{{county4|}}} County, Michigan|{{{county4|}}}]]|}}|}}<br>county line|{{{county_special|}}}}}
 +
|sub1dab={{{ctdab|}}}
 +
|sub2={{{location|}}}
 +
|sub2span={{{lspan|}}}
 +
|sub2_special={{#if:{{{township|}}}|[[{{{township}}} Township, {{#if:{{{county|}}}|{{{county}}}|{{{ctdab}}}}} County, Michigan|{{{township}}}{{#if:{{{township2|}}}||&#32;Township}}]]{{#if:{{{township2|}}}|–[[{{{township2}}} Township, {{#if:{{{ctdab2|}}}|{{{ctdab2}}}|{{{ctdab}}}}} County, Michigan|{{{township2}}}]]{{#if:{{{township3|}}}|–<br>[[{{{township3}}} Township, {{#if:{{{ctdab3|}}}|{{{ctdab3}}}|{{{ctdab}}}}} County, Michigan|{{{township3}}}]]{{#if:{{{township4|}}}|–[[{{{township4}}} Township, {{#if:{{{ctdab4|}}}|{{{ctdab4}}}|{{{ctdab}}}}} County, Michigan|{{{township4}}}]]|}}|}}<br>township line}}|{{{location_special|}}}}}
 +
|indep_city_special={{{indep_city_special|}}}
 +
|indep_city_align={{{indep_city_align|}}}
 +
|type={{{type|}}}
 +
|unit={{{mile|}}}
 +
|unit2={{{mile2|}}}
 +
|unitdef=mi
 +
|uspan={{{mspan|}}}
 +
|exit={{{exit|}}}
 +
|espan={{{espan|}}}
 +
|road={{{road|}}}
 +
|notes={{{notes|}}}
 +
|nspan={{{nspan|}}}
 +
}}</includeonly><noinclude>
 +
{{Documentation}}
 +
<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE, THANKS -->
 
[[Category:United States highway templates]]
 
[[Category:United States highway templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 13:16, 22 March 2019

Template documentation[view] [edit] [history] [purge]

This is a template for generating a junction list for a route article. To see this all in action, view the M-28 or the US 127 articles

Junction list usage

This is the basic syntax you need to get a complete junction table for roads that only have at-grade intersections. Just copy and paste the code below:

{{MIinttop}}
{{MIint
|county=
|cspan=
|location=
|lspan=
|type=
|mile=
|road=
|notes=}}
|}

...and fill in the variables! For more entries, use this:

{{MIint
|location=
|lspan=
|type=
|mile=
|road=
|notes=}}

Exit list usage

This is the basic syntax you need to get a complete junction table for roads that grade-separated interchanes. Just copy and paste the code below:

{{MIinttop|exit}}
{{MIint|exit
|county=
|cspan=
|location=
|lspan=
|type=
|mile=
|exit=
|road=
|notes=}}
|}

...and fill in the variables! For more entries, use this:

{{MIint|exit
|location=
|lspan=
|type=
|mile=
|exit=
|road=
|notes=}}

Parameters

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

  • county: name of the county without wiki markup—the county is automatically linked by the template
  • cspan: number of rows the county spans—if value=1, omit this parameter
  • county_special: (replaces county) county where the junction is located—use for custom entries only. Full wiki markup is required.
  • location: name of the location without wiki markup— the location is automatically linked by the template. Use "none" if the intersection is not in any named location.
  • ctdab: (optional for use with location) further disambiguation by county
  • location_special: (replaces location) location where the junction is located—use for custom entries only. Full wiki markup is required.
  • lspan: number of rows the location spans—if value=1, omit this parameter
  • type: use to specify a shading for that junction's row. The four permitted types are:
    • closed: for highways that are now closed to traffic
    • concur: for concurrencies
    • unbuilt: for unbuilt roadways
    • incomplete: for incomplete interchanges where all movements are not supported (Northbound exit and southbound entrance, etc.)
  • mile: milepost of the junction. If unknown, leave blank. These display right-aligned to align the decimal points. Note: if using multiple sources for distance data, and the precision of decimal places differs, either round all data to the lowest level of precision or use nonbreaking space characters (&nbsp;) to pad the least precise data accordingly.
  • exit: exit number for the junction. If unknown, leave blank. If the junction is not grade-separated, leave blank as well. If the exit is unnumbered along a highway that otherwise has numbered exits, use an em dash (—).
  • road: road that the article route intersects at this junction. To generate the proper coding, use the {{jct}} template.
  • notes: any notes regarding that junction.

Any parameter which is empty can be omitted.

See also

  • {{MIinttop}}, a template that generates a MOS:RJL-compliant header for the junction list
  • {{jctbridge}}, a template that creates bridge crossing entries.
  • {{jctco}}, a template that creates a row for a county without junctions.
  • {{jctbtm}}, a template that creates the MOS:RJL-complian table footer at the bottom of the table.