Difference between revisions of "Template:Highway"

From Highway 0, the Kentucky Route Zero wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
<div class="highway-routeno">[[Route {{{Route|0}}}|{{color|white|Route&nbsp;{{{Route|0}}} {{#if: {{{Direction|}}} | ({{{Direction}}})}}}}]]</div>
 
<div class="highway-routeno">[[Route {{{Route|0}}}|{{color|white|Route&nbsp;{{{Route|0}}} {{#if: {{{Direction|}}} | ({{{Direction}}})}}}}]]</div>
 
<div class="highway-routebox">
 
<div class="highway-routebox">
<div class="highway-neighbors">{{#if: {{{Left|}}} | [[{{{Left link|{{{Left}}}}}}|{{color|white|{{{Left}}}}}]] | ...}}{{#if: {{{Left act|}}} | &#32;(Act {{{Left act|}}})<br>&bull;<br>[[{{{Left link2|{{{Left2}}}}}}|{{color|white|{{{Left2}}}}}]] (Act {{{Left2 act|}}}) | }}</div>
+
<div class="highway-neighbors">{{#if: {{{Left|}}} | [[{{{Left link|{{{Left}}}}}}|{{color|white|{{{Left}}}}}]] | ...}}{{#if: {{{Left act|}}} | &#32;(Act {{{Left act|}}})<br>&bull;<br>[[{{{Left2 link|{{{Left2}}}}}}|{{color|white|{{{Left2}}}}}]] (Act {{{Left2 act|}}}) | }}</div>
 
<div class="highway-arrow">{{#if: {{{Left|}}} | [[File:0_left.png|link={{{Left link|{{{Left}}}}}}]]}}</div>
 
<div class="highway-arrow">{{#if: {{{Left|}}} | [[File:0_left.png|link={{{Left link|{{{Left}}}}}}]]}}</div>
 
<div class="highway-truck">[[File:0_wheel.png|link=]]</div>
 
<div class="highway-truck">[[File:0_wheel.png|link=]]</div>
 
<div class="highway-arrow">{{#if: {{{Right|}}} | [[File:0_right.png|link={{{Right link|{{{Right}}}}}}]]}}</div>
 
<div class="highway-arrow">{{#if: {{{Right|}}} | [[File:0_right.png|link={{{Right link|{{{Right}}}}}}]]}}</div>
<div class="highway-neighbors">{{#if: {{{Right|}}} | [[{{{Right link|{{{Right}}}}}}|{{color|white|{{{Right}}}}}]] | ...}}{{#if: {{{Right act|}}} | &#32;(Act {{{Right act|}}})<br>&bull;<br>[[{{{Right link2|{{{Right2}}}}}}|{{color|white|{{{Right2}}}}}]] (Act {{{Right2 act|}}}) | }}</div>
+
<div class="highway-neighbors">{{#if: {{{Right|}}} | [[{{{Right link|{{{Right}}}}}}|{{color|white|{{{Right}}}}}]] | ...}}{{#if: {{{Right act|}}} | &#32;(Act {{{Right act|}}})<br>&bull;<br>[[{{{Right2 link|{{{Right2}}}}}}|{{color|white|{{{Right2}}}}}]] (Act {{{Right2 act|}}}) | }}</div>
 
</div>
 
</div>
  
Line 22: Line 22:
 
<div class="highway-routeno">[[Route {{{2Route|1}}}|{{color|white|Route&nbsp;{{{2Route|1}}} {{#if: {{{2Direction|}}} | ({{{2Direction}}})}}}}]]</div>
 
<div class="highway-routeno">[[Route {{{2Route|1}}}|{{color|white|Route&nbsp;{{{2Route|1}}} {{#if: {{{2Direction|}}} | ({{{2Direction}}})}}}}]]</div>
 
<div class="highway-routebox">
 
<div class="highway-routebox">
<div class="highway-neighbors">{{#if: {{{2Left|}}} | [[{{{2Left link|{{{2Left}}}}}}|{{color|white|{{{2Left}}}}}]] | ...}}</div>
+
<div class="highway-neighbors">{{#if: {{{2Left|}}} | [[{{{2Left link|{{{2Left}}}}}}|{{color|white|{{{2Left}}}}}]] | ...}}{{#if: {{{2Left act|}}} | &#32;(Act {{{2Left act|}}})<br>&bull;<br>[[{{{2Left2 link|{{{2Left2}}}}}}|{{color|white|{{{2Left2}}}}}]] (Act {{{2Left2 act|}}}) | }}</div>
 
<div class="highway-arrow">{{#if: {{{2Left|}}} | [[File:0_left.png|link={{{2Left link|{{{2Left}}}}}}]]}}</div>
 
<div class="highway-arrow">{{#if: {{{2Left|}}} | [[File:0_left.png|link={{{2Left link|{{{2Left}}}}}}]]}}</div>
 
<div class="highway-truck">[[File:0_wheel.png|link=]]</div>
 
<div class="highway-truck">[[File:0_wheel.png|link=]]</div>
 
<div class="highway-arrow">{{#if: {{{2Right|}}} | [[File:0_right.png|link={{{2Right link|{{{2Right}}}}}}]]}}</div>
 
<div class="highway-arrow">{{#if: {{{2Right|}}} | [[File:0_right.png|link={{{2Right link|{{{2Right}}}}}}]]}}</div>
<div class="highway-neighbors">{{#if: {{{2Right|}}} | [[{{{2Right link|{{{2Right}}}}}}|{{color|white|{{{2Right}}}}}]] | ...}}</div>
+
<div class="highway-neighbors">{{#if: {{{2Right|}}} | [[{{{2Right link|{{{2Right}}}}}}|{{color|white|{{{2Right}}}}}]] | ...}}{{#if: {{{2Right act|}}} | &#32;(Act {{{2Right act|}}})<br>&bull;<br>[[{{{2Right2 link|{{{2Right2}}}}}}|{{color|white|{{{2Right2}}}}}]] (Act {{{Right2 act|}}}) | }}</div>
 
</div>}}
 
</div>}}
  
Line 59: Line 59:
 
  <nowiki>
 
  <nowiki>
 
{{Highway
 
{{Highway
| Title       = The crystal
+
| Title       = The crystal
| Image       = 0_crystal.png
+
| Image       = 0_crystal.png
| Route       = 65
+
| Route       = 65
| Direction   = clockwise
+
| Direction   = clockwise
| Left       = Bureau
+
| Left         = Bureau
| Left act   = (left blank in example)
+
| Left link   = Bureau of Reclaimed Spaces
| Left link  = Bureau of Reclaimed Spaces
+
| Left act    =  
| Left2       = (left blank in example)
+
| Left2       =  
| Left2 act   = (left blank in example)
+
| Left2 link   =  
| Left2 link  = (left blank in example)
+
| Left2 act    =  
| Right       = The feather
+
| Right       = The feather
| Right act   = II
+
| Right link   =  
| Right link  = (left blank in example)
+
| Right act    = II
| Right2     = The tree
+
| Right2       = The tree
| Right2 act = III
+
| Right2 link =  
| Right2 link = (left blank in example)
+
| Right2 act  = III
| 2Route     = 8192
+
| 2Route       = 8192
| 2Direction = (left blank in example)
+
| 2Direction   =  
| 2Left       = Self Storage
+
| 2Left       = Self Storage
| 2Left link = Random Access Self Storage
+
| 2Left link   = Random Access Self Storage
| 2Right     = Self Storage
+
| 2Left act    =
| 2Right link = Random Access Self Storage
+
| 2Left2      =
| Height     = 511px
+
| 2Left2 link  =
 +
| 2Left2 act  =
 +
| 2Right       = Self Storage
 +
| 2Right link = Random Access Self Storage
 +
| 2Right act  =
 +
| 2Right2      =
 +
| 2Right2 link =
 +
| 2Right2 act  =
 +
| Height       = 511px
 
}}</nowiki>
 
}}</nowiki>
  

Revision as of 15:36, 1 December 2018

Example


Usage

{{Highway
| Title        = The crystal
| Image        = 0_crystal.png
| Route        = 65
| Direction    = clockwise
| Left         = Bureau
| Left link    = Bureau of Reclaimed Spaces
| Left act     = 
| Left2        = 
| Left2 link   = 
| Left2 act    = 
| Right        = The feather
| Right link   = 
| Right act    = II
| Right2       = The tree
| Right2 link  = 
| Right2 act   = III
| 2Route       = 8192
| 2Direction   = 
| 2Left        = Self Storage
| 2Left link   = Random Access Self Storage
| 2Left act    = 
| 2Left2       = 
| 2Left2 link  = 
| 2Left2 act   = 
| 2Right       = Self Storage
| 2Right link  = Random Access Self Storage
| 2Right act   = 
| 2Right2      = 
| 2Right2 link = 
| 2Right2 act  = 
| Height       = 511px
}}

All variables below Route are optional. Height is for slightly justing the height (relative to auto) to make the notebook spine background images line up.