Template:Infobox infrastructure: Difference between revisions

From OpenGeofiction
m (Code repair)
(+ minimum driving age, max speeds for roads, max speeds for rail, power generation graphs per user requests)
Line 3: Line 3:
<tr class="cont"><th colspan="2" style="text-align:center; background: #e8caca;>[[File:Ground Transportation - The Noun Project.svg|50px|link=]]</th></tr>
<tr class="cont"><th colspan="2" style="text-align:center; background: #e8caca;>[[File:Ground Transportation - The Noun Project.svg|50px|link=]]</th></tr>
<tr><th colspan="2" style="text-align:center; background: #e8caca;">Infrastructure of {{{name|{{PAGENAME}}}}}</th></tr><!--
<tr><th colspan="2" style="text-align:center; background: #e8caca;">Infrastructure of {{{name|{{PAGENAME}}}}}</th></tr><!--
-->{{#if:{{{driving_side|}}}|<tr><td><b>[[Index:Driving side|Driving side]]</b></td><td>{{{driving_side|}}}</td></tr>|}}<!--
-->{{#if:{{{driving_side|}}}{{{minimum_age|}}}{{{maxspeed_road|}}}|<tr class="cont"><td><b>Roadways</b></td><td></td></tr>|}}<!--
-->{{#if:{{{rail_side|}}}{{{gauge|}}}{{{electrification|}}}|<tr class="cont"><td><b>Railways</b></td><td></td></tr>|}}<!--
-->{{#if:{{{driving_side|}}}|<tr {{#if:{{{minimum_age|}}}{{{maxspeed_road|}}}><td>&bull; <b>[[Index:Driving side|Driving side]]</b></td><td>{{{driving_side|}}}</td></tr>|}}<!--
-->{{#if:{{{rail_side|}}}|<tr {{#if:{{{gauge|}}}{{{electrification|}}}| class="cont" |}}><td>&bull; Passing side</td><td>{{{rail_side|}}}</td></tr>|}}<!--
-->{{#if:{{{minimum_age|}}}|<tr {{#if:{{{maxspeed_road|}}}><td>&bull; <b>Minimum age</b></td><td>{{{minimum_age|}}}</td></tr>|}}<!--
-->{{#if:{{{gauge|}}}|<tr {{#if:{{{electrification|}}}| class="cont" |}}><td>&bull; [[Index:Rail transport#Territories by standard gauge|Gauge]]</td><td>{{{gauge|}}}mm</td></tr>|}}<!--
-->{{#if:{{{maxspeed_road|}}}|<tr><td>&bull; <b>Maximum speed</b></td><td>{{{maxspeed_road|}}}</td></tr>|}}<!--
-->{{#if:{{{electrification|}}}|<tr><td>&bull; Electrification</td><td>{{{electrification|}}}</td></tr>|}}<!--
-->{{#if:{{{rail_side|}}}{{{gauge|}}}{{{electrification|}}}{{{maxspeed_rail|}}}|<tr class="cont"><td><b>Railways</b></td><td></td></tr>|}}<!--
-->{{#if:{{{rail_side|}}}|<tr {{#if:{{{gauge|}}}{{{electrification|}}}{{{maxspeed_rail|}}}| class="cont" |}}><td>&bull; Passing side</td><td>{{{rail_side|}}}</td></tr>|}}<!--
-->{{#if:{{{gauge|}}}|<tr {{#if:{{{electrification|}}}{{{maxspeed_rail|}}}| class="cont" |}}><td>&bull; [[Index:Rail transport#Territories by standard gauge|Gauge]]</td><td>{{{gauge|}}}mm</td></tr>|}}<!--
-->{{#if:{{{electrification|}}}|<tr {{#if:{{{maxspeed_rail|}}}| class="cont" |}}><td>&bull; Electrification</td><td>{{{electrification|}}}</td></tr>|}}<!--
-->{{#if:{{{maxspeed_rail|}}}|<tr><td>&bull; <b>Maximum speed</b></td><td>{{{maxspeed_rail|}}}</td></tr>|}}<!--
-->{{#if:{{{electricity_bars|}}}|<tr class="cont"><td colspan="2"><div style="background: #dddddd; text-align: center; padding: .1em;"><b>Electrical power generation</b></div></td></tr>
<tr {{#if:{{{mains_electricity|}}}| class="cont" |}}><td colspan="2"><table class="barbox" style="background: #ffffff; font-size:88%; padding:0.4em; width:auto;">{{{electricity_bars|}}}</table></td></tr>|}}<!--
-->{{#if:{{{mains_electricity|}}}|<tr><td><b>[[Index:Mains electricity|Mains electricity]]</b></td><td>{{{mains_electricity|}}}</td></tr>|}}<!--
-->{{#if:{{{mains_electricity|}}}|<tr><td><b>[[Index:Mains electricity|Mains electricity]]</b></td><td>{{{mains_electricity|}}}</td></tr>|}}<!--
-->{{#if:{{{telephone_code|}}}|<tr class="cont"><td><b>Telephone code</b></td><td>+{{{telephone_code|}}}</td></tr>|}}<!--
-->{{#if:{{{telephone_code|}}}|<tr class="cont"><td><b>Telephone code</b></td><td>+{{{telephone_code|}}}</td></tr>|}}<!--
Line 19: Line 25:
| name = (territory name)
| name = (territory name)
| driving_side =
| driving_side =
| minimum_age = (minimum age for obtaining a license to operate a motor vehicle)
| maxspeed_road =
| rail_side =
| rail_side =
| gauge = (in millimeters)
| gauge = (in millimeters)
| electrification = (railway electrification only)
| electrification = (railway electrification only)
| maxspeed_rail =
| electricity_bars = (bar graph to highlight percentages of power generation by source or type; must use {{bar percent}} and may include up to eight)
| mains_electricity = (use V for volts and Hz for Hertz)
| mains_electricity = (use V for volts and Hz for Hertz)
| telephone_code =
| telephone_code =

Revision as of 19:53, 18 April 2024

This infobox is designed to be used in the infrastructure section as a short overview of prominent features in your territory. This box is not designed to be all-inclusive.

{{Infobox infrastructure
| name = (territory name)
| driving_side =
| minimum_age = (minimum age for obtaining a license to operate a motor vehicle)
| maxspeed_road =
| rail_side =
| gauge = (in millimeters)
| electrification = (railway electrification only)
| maxspeed_rail =
| electricity_bars = (bar graph to highlight percentages of power generation by source or type; must use {{bar percent}} and may include up to eight)
| mains_electricity = (use V for volts and Hz for Hertz)
| telephone_code =
| internet_code =
}}