Difference between revisions of "Template:StateHighway"

From Hitchwiki
Jump to navigation Jump to search
(Created page with "<includeonly>x21px|link=[[{{{1}}} State Highway {{{2}}}|alt={{{2}}}]]</includeonly><noinclude> This template creates a US state highw...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[File:Circle sign 2-digit template.svg|x21px|link=[[{{{1}}} State Highway {{{2}}}]]|alt={{{2}}}]]</includeonly><noinclude>
+
<span style="-moz-border-radius: 3px;
This template creates a US state highway shield with the route number and links to the relevant page.
+
background-color: #ffffff; 
 +
padding-left:2px;
 +
padding-right:2px;
 +
border: 0px solid white;
 +
-moz-outline-radius: 3px;
 +
outline: 2px solid #000000;
 +
font-size:100%; ">'''<includeonly>[[{{{1}}} State Highway {{{2}}}|<span style="color:#000000">{{{2}}}</span>]]</includeonly><noinclude><span style="color:#000000">999999</span></noinclude>'''</span><noinclude>
  
=Under construction=
+
==Usage==
Don't use this template yet.
+
This template creates a United States' ''State Highway'' sign with the link to it.
  
==Usage==
+
<nowiki>{{StateHighway|State|Number}}</nowiki>
  <nowiki>{{StateHighway|State|RouteNumber}}</nowiki>
+
Fill in the state name and the number.<br>
Example: {{StateHighway|Colorado|14}}
+
  <nowiki>{{StateHighway|Texas|569}}</nowiki>
 +
Example: {{StateHighway|Texas|569}}
 +
 
 +
==Other templates==
 +
For US Interstates use [[Template:US-I]]<br>
 +
For US Routes use [[Template:US-R]]<br>
 +
For all route number templates see: [[Hitchwiki:Road categories]]
  
 +
<!--For those brace enough to attempt making this template use proper shields: I had some problem finding a shield svg that fit all the criteria such as, be neutral enough to use for all states, doesnt crash when the numbers get to big. One could attempt to make it lookup the correct shield for the state, but I'm not going to.-->
 
[[Category:Templates]]
 
[[Category:Templates]]
 
[[Category:Road Numbers]]
 
[[Category:Road Numbers]]
</noinclude>
 

Latest revision as of 17:49, 23 January 2025

999999

Usage

This template creates a United States' State Highway sign with the link to it.

{{StateHighway|State|Number}}

Fill in the state name and the number.

{{StateHighway|Texas|569}}

Example: 569

Other templates

For US Interstates use Template:US-I
For US Routes use Template:US-R
For all route number templates see: Hitchwiki:Road categories