Difference between revisions of "Template:Highway"

From Highway 0, the Kentucky Route Zero wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly><div style="background: #000; color: #fff; border-radius: 10px; width: 350px; padding: 8px 8px 20px; float: right;">
+
<includeonly><div class="highway-box">
<div class="inconsolata" style="text-align: center; text-transform: uppercase; font-size: 24pt; position: relative; z-index: 1;">{{{Title|{{FULLPAGENAME}}}}}</div>
+
<div class="highway-title">{{{Title|{{PAGENAME}}}}}</div>
<div style="text-align: center; margin-top: -30px;">[[File:{{{Image|0_Crystal.png}}}|200px|link=]]</div>
+
<div class="highway-image">[[File:{{{Image|0_Crystal.png}}}|200px|link=]]</div>
  
<hr style="border: none; border-bottom: 1px solid #fff; color: transparent; background-color: transparent; margin: 17px auto 12px; width: 75%;">
+
<hr style="highway-line1" />
 
 
<div style="text-align: center; font-size: 14pt; text-transform: uppercase; margin-bottom: 8px;">[[Route {{{Route|0}}}|{{color|white|Route {{{Route|0}}}}}]] {{#if: {{{Direction|}}} | ({{{Direction}}})}}</div>
 
 
 
<div style="text-align: center; font-size: 12pt; width: 100%; white-space: nowrap;">
 
<div class="inconsolata" style="display: inline-block; vertical-align: middle; text-transform: uppercase; width: 75px; white-space: pre-line; line-height: 1.1em;">{{#if: {{{Left|}}} | [[{{{Left link|{{{Left}}}}}}|{{color|white|{{{Left}}}}}]] | ...}}</div>
 
<div style="display: inline-block; vertical-align: middle; margin: 0 20px;">{{#if: {{{Left|}}} | [[File:0_left.png|link={{{Left link|{{{Left}}}}}}]]}}</div>
 
<div style="display: inline-block; vertical-align: middle;">[[File:0_wheel.png|link=]]</div>
 
<div style="display: inline-block; vertical-align: middle; margin: 0 20px;">{{#if: {{{Right|}}} | [[File:0_right.png|link={{{Right link|{{{Right}}}}}}]]}}</div>
 
<div class="inconsolata" style="display: inline-block; vertical-align: middle; text-transform: uppercase; width: 75px; white-space: pre-line; line-height: 1.1em;">{{#if: {{{Right|}}} | [[{{{Right link|{{{Right}}}}}}|{{color|white|{{{Right}}}}}]] | ...}}</div>
 
  
 +
<div style="highway-routeno">[[Route {{{Route|0}}}|{{color|white|Route {{{Route|0}}}}}]] {{#if: {{{Direction|}}} | ({{{Direction}}})}}</div>
 +
<div style="highway-routebox">
 +
<div class="highway-neighbors" style="">{{#if: {{{Left|}}} | [[{{{Left link|{{{Left}}}}}}|{{color|white|{{{Left}}}}}]] | ...}}</div>
 +
<div style="highway-arrow">{{#if: {{{Left|}}} | [[File:0_left.png|link={{{Left link|{{{Left}}}}}}]]}}</div>
 +
<div style="highway-truck">[[File:0_wheel.png|link=]]</div>
 +
<div style="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}}}}}]] | ...}}</div>
 
</div>
 
</div>
  
 
{{#if: {{{Route2|}}} |
 
{{#if: {{{Route2|}}} |
<hr style="border: none; border-bottom: 1px dashed #fff; color: transparent; background-color: transparent; margin: 16px auto 12px; width: 75%;">
+
<hr class="highway-line2" />
 
 
<div style="text-align: center; font-size: 14pt; text-transform: uppercase; margin-bottom: 8px;">[[Route {{{Route2|1}}}|{{color|white|Route {{{Route2|1}}}}}]] {{#if: {{{Direction2|}}} | ({{{Direction2}}})}}</div>
 
 
 
<div style="text-align: center; font-size: 12pt; width: 100%; white-space: nowrap;">
 
<div class="inconsolata" style="display: inline-block; vertical-align: middle; text-transform: uppercase; width: 75px; white-space: pre-line; line-height: 1.1em;">{{#if: {{{Left2|}}} | [[{{{Left link2|{{{Left2}}}}}}|{{color|white|{{{Left2}}}}}]] | ...}}</div>
 
<div style="display: inline-block; vertical-align: middle; margin: 0 20px;">{{#if: {{{Left2|}}} | [[File:0_left.png|link={{{Left link2|{{{Left2}}}}}}]]}}</div>
 
<div style="display: inline-block; vertical-align: middle;">[[File:0_wheel.png|link=]]</div>
 
<div style="display: inline-block; vertical-align: middle; margin: 0 20px;">{{#if: {{{Right2|}}} | [[File:0_right.png|link={{{Right link2|{{{Right2}}}}}}]]}}</div>
 
<div class="inconsolata" style="display: inline-block; vertical-align: middle; text-transform: uppercase; width: 75px; white-space: pre-line; line-height: 1.1em;">{{#if: {{{Right2|}}} | [[{{{Right link2|{{{Right2}}}}}}|{{color|white|{{{Right2}}}}}]] | ...}}</div>
 
  
 +
<div style="highway-routeno">[[Route {{{Route2|1}}}|{{color|white|Route {{{Route2|1}}}}}]] {{#if: {{{Direction2|}}} | ({{{Direction2}}})}}</div>
 +
<div style="highway-routebox">
 +
<div class="highway-neighbors">{{#if: {{{Left2|}}} | [[{{{Left link2|{{{Left2}}}}}}|{{color|white|{{{Left2}}}}}]] | ...}}</div>
 +
<div style="highway-arrow">{{#if: {{{Left2|}}} | [[File:0_left.png|link={{{Left link2|{{{Left2}}}}}}]]}}</div>
 +
<div style="highway-truck">[[File:0_wheel.png|link=]]</div>
 +
<div style="highway-arrow">{{#if: {{{Right2|}}} | [[File:0_right.png|link={{{Right link2|{{{Right2}}}}}}]]}}</div>
 +
<div class="highway-neighbors">{{#if: {{{Right2|}}} | [[{{{Right link2|{{{Right2}}}}}}|{{color|white|{{{Right2}}}}}]] | ...}}</div>
 
</div>}}
 
</div>}}
  

Revision as of 11:34, 30 June 2018


Example

Usage

{{Highway
| Title       = The Crystal
| Image       = 0_Crystal.png
| Route       = 65
| Direction   = Clockwise
| Left        = Bureau
| Left link   = Bureau of Reclaimed Spaces
| Right       = The Tree
| Right link  = (blank)
| Route2      = 8192
| Direction2  = (blank)
| Left2       = Self Storage
| Left link2  = Random Access Self Storage
| Right2      = Self Storage
| Right link2 = Random Access Self Storage
}}