Difference between revisions of "Template:Infobox heritage rail"
From Wikishire
m |
|||
(10 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
|- | |- | ||
! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}} | ! colspan=2 style="background: white; text-align: center; font-size: 100%;" {{!}} | ||
− | {{#if:{{{village|}}}|{{{village}}} | + | {{#if:{{{village|}}}|{{{village}}}}}{{#if:{{{town|}}}|{{{town}}}}} |
|- class="note" | |- class="note" | ||
{{#if: {{{picture<includeonly>|</includeonly>}}} | | {{#if: {{{picture<includeonly>|</includeonly>}}} | | ||
Line 17: | Line 17: | ||
|- | |- | ||
{{#if: {{{gauge<includeonly>|</includeonly>}}} | | {{#if: {{{gauge<includeonly>|</includeonly>}}} | | ||
− | ! style="background: {{#var:bground}};" {{!}} | + | ! style="background: {{#var:bground}};" {{!}} Gauge: |
{{!}} {{{gauge}}} }} | {{!}} {{{gauge}}} }} | ||
+ | |- | ||
+ | {{#if: {{{built<includeonly>|</includeonly>}}} | | ||
+ | ! style="background: {{#var:bground}};" {{!}} Built: | ||
+ | {{!}} {{{built}}} }} | ||
|- | |- | ||
{{#if: {{{os grid ref<includeonly>|</includeonly>}}} | | {{#if: {{{os grid ref<includeonly>|</includeonly>}}} | | ||
! style="background: {{#var:bground}};" {{!}} Grid reference: | ! style="background: {{#var:bground}};" {{!}} Grid reference: | ||
− | {{!}} {{{os grid ref}}} }} | + | {{!}} {{#if:{{{os grid ref|}}}|{{map|{{{os grid ref}}}}} }} }} |
|- | |- | ||
{{#if: {{{latitude<includeonly>|</includeonly>}}} | | {{#if: {{{latitude<includeonly>|</includeonly>}}} | | ||
! style="background: {{#var:bground}};" {{!}} Location: | ! style="background: {{#var:bground}};" {{!}} Location: | ||
− | {{!}} {{ | + | {{!}} {{wmap|{{{latitude}}}|{{{longitude}}}|zoom=14|name={{#if: {{{name| }}}|{{{name}}}|{{PAGENAME}}}}}} }} |
+ | |- | ||
+ | {{#if: {{{stations<includeonly>|</includeonly>}}} | | ||
+ | ! style="background: {{#var:bground}};" {{!}} No. of stations: | ||
+ | {{!}} {{{stations}}} }} | ||
+ | |- | ||
+ | {{#if: {{{length<includeonly>|</includeonly>}}} | | ||
+ | ! style="background: {{#var:bground}};" {{!}} Track: | ||
+ | {{!}} {{{length}}} }} | ||
+ | |- | ||
+ | {{#if: {{{headquarters<includeonly>|</includeonly>}}} | | ||
+ | ! style="background: {{#var:bground}};" {{!}} Headquarters: | ||
+ | {{!}} {{{headquarters}}} }} | ||
|- | |- | ||
{{#if: {{{address<includeonly>|</includeonly>}}} | | {{#if: {{{address<includeonly>|</includeonly>}}} | | ||
Line 38: | Line 54: | ||
| colspan="2" style="background: {{#var:bground}}; text-align: center;"|'''Information''' | | colspan="2" style="background: {{#var:bground}}; text-align: center;"|'''Information''' | ||
|- | |- | ||
− | {{#if: {{{ | + | {{#if: {{{ownership<includeonly>|</includeonly>}}} | |
! style="background: {{#var:bground}};" {{!}} Owned by: | ! style="background: {{#var:bground}};" {{!}} Owned by: | ||
{{!}} {{{ownership}}} }} | {{!}} {{{ownership}}} }} | ||
+ | |- | ||
+ | {{#if: {{{operator<includeonly>|</includeonly>}}} | | ||
+ | ! style="background: {{#var:bground}};" {{!}} Operated by: | ||
+ | {{!}} {{{operator}}} }} | ||
|- | |- | ||
{{#if: {{{website<includeonly>|</includeonly>}}} | | {{#if: {{{website<includeonly>|</includeonly>}}} | | ||
! style="background: {{#var:bground}};" {{!}} Website: | ! style="background: {{#var:bground}};" {{!}} Website: | ||
{{!}} {{{website}}} }} | {{!}} {{{website}}} }} | ||
− | |}<includeonly>[[Category:Heritage rail in {{State2|{{#var:shire}}}}]]<noinclude>{{Infobox heritage rail/doc}}[[Category:Infoboxes|Heritage rail]]</noinclude> | + | |}<includeonly>{{#ifeq:{{#var:shire}}|Isle of Man|[[Category:Heritage rail on the Isle of Man]]|[[Category:Heritage rail in {{#var:shire}}]]{{#if:{{{county 2|}}}|[[Category:Heritage rail in {{namefix|{{{county 2}}}}}]]{{#if:{{{county 3|}}}|[[Category:Heritage rail in {{namefix|{{{county 3}}}}}]]{{#if:{{{county 4|}}}|[[Category:Heritage rail in {{namefix|{{{county 4}}}}}]]}} }} }}[[Category:Heritage rail in {{State2|{{#var:shire}}}}]]}}{{#if:{{{picture|}}}||[[Category:Transport articles with no infobox picture]]}}</includeonly><noinclude>{{Infobox heritage rail/doc}}[[Category:Infoboxes|Heritage rail]]</noinclude> |
Latest revision as of 08:28, 13 August 2020
Infobox heritage rail | |
[[File:{{{picture}}}|250px]] {{{picture caption}}} | |
---|---|
{{{type}}} | |
Gauge: | {{{gauge}}} |
Built: | {{{built}}} |
Grid reference: | |
Location: | {{{latitude}}} {{{longitude}}} |
No. of stations: | {{{stations}}} |
Track: | {{{length}}} |
Headquarters: | {{{headquarters}}} |
Address: | {{{address}}} |
Tel.: | {{{tel}}} |
Information | |
Owned by: | {{{ownership}}} |
Operated by: | {{{operator}}} |
Website: | {{{website}}} |