Template:Gtav-road: Difference between revisions

Fixing the way the template shows interstate signs
(+"intersections" for non-highways)
(Fixing the way the template shows interstate signs)
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{Infobox
| above={{#if:{{{number|}}}|{{#ifeq:{{{type}}}|Interstate|Interstate|{{{type}}} Route}} {{{number}}}|{{{name|{{PAGENAME}}}}}}}
| above={{#if:{{{number|}}}|{{#ifeq:{{{type}}}|Interstate|Interstate|{{{type}}} Route}} {{{number}}}|{{{name|{{PAGENAME}}}}}}}
| image={{#if:{{{shield|}}}|[[File:{{{shield}}}|128px]]}} {{#if:{{{image|}}}|{{{image}}}}} {{#if:{{{number|}}}|[[File:{{#ifeq:{{{type}}}|Interstate|Interstate|Route}} {{{number}}} shield.svg|150px|Highway shield]]}}
| image={{#if:{{{shield|}}}|[[File:{{{shield}}}|128px]]}} {{#if:{{{image|}}}|{{{image}}}}} {{#if:{{{number|}}}|[[File:{{#ifeq:{{{type}}}|Interstate|Interstate|Route}}{{{number}}}-GTAV-logo.svg|150px|Highway shield]]}}
| caption = {{#if:{{{caption|}}}|{{{caption}}}|Part of the [[Numbered Highways in San Andreas|San Andreas Highway System]]}}
| caption = {{#if:{{{caption|}}}|{{{caption}}}|Part of the [[Numbered Highways in San Andreas|San Andreas Highway System]]}}
| header3={{#if:{{{east end|}}}{{{south end|}}}{{{exits|}}}{{{other names|}}}| Road information }}
| header3={{#if:{{{east end|}}}{{{south end|}}}{{{exits|}}}{{{other names|}}}| Road information }}
Line 8: Line 8:
| label5=West end:
| label5=West end:
| data5={{#if:{{{west end|}}} | {{{west end}}}}}
| data5={{#if:{{{west end|}}} | {{{west end}}}}}
| label6=Major junctions
| label6=Major junctions:
| data6={{#if:{{{junctions|}}} | {{{junctions}}}}}
| data6={{#if:{{{junctions|}}} | {{{junctions}}}}}
| label7=Intersections
| label7=Intersections:
| data7={{#if:{{{intersections|}}} | {{{intersections}}}}}
| data7={{#if:{{{intersections|}}} | {{{intersections}}}}}
| label8=North end:
| label8=North end: