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; float: right;">
+
<includeonly><div style="background: #000; color: #fff; border-radius: 10px; width: 350px; padding: 8px 8px 16px; float: right;">
 
<div class="inconsolata" style="text-align: center; text-transform: uppercase; font-size: 24pt; position: relative; z-index: 1;">{{{Title|{{FULLPAGENAME}}}}}</div>
 
<div class="inconsolata" style="text-align: center; text-transform: uppercase; font-size: 24pt; position: relative; z-index: 1;">{{{Title|{{FULLPAGENAME}}}}}</div>
 
<div style="text-align: center; margin-top: -30px;">[[File:{{{Image|0_Crystal.png}}}|200px|link=]]</div>
 
<div style="text-align: center; margin-top: -30px;">[[File:{{{Image|0_Crystal.png}}}|200px|link=]]</div>
Line 6: Line 6:
  
 
<div style="text-align: center; font-size: 12pt; width: 100%; white-space: nowrap;">
 
<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|}}} | [[{{{LeftLink|{{{Left}}}}}}|{{color|white|{{{Left}}}}}]] | ...}}</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: {{{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=]]}}</div>
+
<div style="display: inline-block; vertical-align: middle; margin: 0 20px;">{{#if: {{{Left|}}} | [[File:0_left.png|link=]]}}</div>
 
<div style="display: inline-block; vertical-align: middle;">[[File:0_wheel.png|link=]]</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=]]}}</div>
+
<div style="display: inline-block; vertical-align: middle; margin: 0 20px;">{{#if: {{{Right|}}} | [[File:0_right.png|link=]]}}</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|}}} | [[{{{RightLink|{{{Right}}}}}}|{{color|white|{{{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>
 
</div>
 +
 +
{{#if: {{{Route2|}}} |
 +
<hr style="border: none; border-bottom: 2px dashed #fff;">
  
 
<div style="text-align: center; font-size: 14pt; text-transform: uppercase; margin-top: 15px;">[[Route {{{Route2|1}}}|{{color|white|Route {{{Route2|1}}}}}]] {{#if: {{{Direction2|}}} | ({{{Direction2}}})}}</div>
 
<div style="text-align: center; font-size: 14pt; text-transform: uppercase; margin-top: 15px;">[[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 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|}}} | [[{{{LeftLink2|{{{Left2}}}}}}|{{color|white|{{{Left2}}}}}]] | ...}}</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: {{{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=]]}}</div>
+
<div style="display: inline-block; vertical-align: middle; margin: 0 20px;">{{#if: {{{Left2|}}} | [[File:0_left.png|link=]]}}</div>
 
<div style="display: inline-block; vertical-align: middle;">[[File:0_wheel.png|link=]]</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=]]}}</div>
+
<div style="display: inline-block; vertical-align: middle; margin: 0 20px;">{{#if: {{{Right2|}}} | [[File:0_right.png|link=]]}}</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|}}} | [[{{{RightLink2|{{{Right2}}}}}}|{{color|white|{{{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>
+
</div>}}
  
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>

Revision as of 11:11, 30 June 2018


Example

The Crystal
Route 65 (clockwise)
0 left.png
0 wheel.png
0 right.png
[[|The Tree]]

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  = 
| Route2      = 8192
| Direction2  = 
| Left2       = Self Storage
| Left link2  = Random Access Self Storage
| Right2      = Self Storage
| Right link2 = Random Access Self Storage
}}