Template:Infobox hill: Difference between revisions

From Wikishire
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{| class="infobox geography vcard" style="width:22em; text-align:left; font-size: 88%; line-height: 1.5em" style="float: right; font-size: 85%; border: 1px solid lightgrey; padding: 4px; margin-left: 1em;"
{| class="infobox geography vcard" style="width:22em; text-align:left; font-size: 88%; line-height: 1.5em" style="float: right; font-size: 85%; border: 1px solid lightgrey; padding: 4px; margin-left: 1em;"{{#if:{{{county|}}}|{{#vardefine:shire|{{namefix|{{{county}}}}}}}{{#vardefine:shire 1|{{#var:shire}}}}}}{{#if:{{{territory|}}}|{{#vardefine:shire|{{namefix|{{{territory}}}}}}} }}{{#if:{{{bailiwick|}}}|{{#vardefine:shire|{{namefix|{{{bailiwick}}}}}}} }}{{#if:{{{county 1|}}}|{{#vardefine:shire|{{namefix|{{{county 1}}}}}}}{{#vardefine:shire 1|{{namefix|{{{county 1}}}}}}}{{#if:{{{county 2|}}}|{{#vardefine:shire 2|{{namefix|{{{county 2}}}}}}}}}{{#if:{{{county 3|}}}|{{#vardefine:shire 3|{{namefix|{{{county 3}}}}}}}}}{{#if:{{{county 4|}}}|{{#vardefine:shire 4|{{namefix|{{{county 4}}}}}}}}}
|colspan=2 style="text-align: center; background:#00FF00; font-size: 100%"|<big class="fn org">'''{{{name}}}'''
|colspan=2 style="text-align: center; background:#00FF00; font-size: 100%"|<big class="fn org">'''{{{name}}}'''
|- class="note"{{#if:{{{county|}}}|{{Hillcat|{{namefix|{{{county}}} }} }}{{#vardefine:shire|{{namefix|{{{county}}}}}}}{{#vardefine:shire 1|{{namefix|{{{county}}}}}}} }}{{#if:{{{territory|}}}|{{Hillcat|{{namefix|{{{territory}}} }} }}{{#vardefine:shire|{{namefix|{{{territory}}}}}}} }}{{#if:{{{bailiwick|}}}|{{Hillcat|{{namefix|{{{bailiwick}}} }} }}{{#vardefine:shire|{{namefix|{{{bailiwick}}}}}}} }}{{#if:{{{county 1|}}}|{{#vardefine:shire|{{namefix|{{{county 1}}}}}}}{{#vardefine:shire 1|{{namefix|{{{county 1}}}}}}}{{Hillcat|{{namefix|{{{county 1}}} }} }} }}{{#if:{{{county 2|}}}|{{#vardefine:shire 2|{{namefix|{{{county 2}}}}}}}{{Hillcat|{{namefix|{{{county 2}}} }} }} }}{{#if:{{{county 3|}}}|{{#vardefine:shire 3|{{namefix|{{{county 3}}}}}}}{{Hillcat|{{namefix|{{{county 3}}} }} }} }}{{#if:{{{county 4|}}}|{{#vardefine:shire 4|{{namefix|{{{county 4}}}}}}}{{Hillcat|{{namefix|{{{county 4}}} }} }} }}
|- class="note"
|colspan="2"|<center>'''{{#var:shire}}{{#ifexists|shire 2|, {{#var:shire 2}}}}{{#ifexists|shire 3|, {{#var:shire 3}}}}{{#ifexists|shire 4|, {{#var:shire 4}}}}'''</center>
|- class="note"
{{#vardefine:type|hill}}{{#vardefine:rangename|{{Hillfix|{{{range}}}}}}}{{#if: {{{picture<includeonly>|</includeonly>}}} |
{{#vardefine:type|hill}}{{#vardefine:rangename|{{Hillfix|{{{range}}}}}}}{{#if: {{{picture<includeonly>|</includeonly>}}} |
! colspan=2 style="background: white; text-align: center; font-size: 85%;" {{!}} [[File:{{{picture}}}|300px]]{{#if: {{{picture caption<includeonly>|</includeonly>}}}|<br />{{{picture caption<includeonly>|</includeonly>}}} }} }}
! colspan=2 style="background: white; text-align: center; font-size: 85%;" {{!}} [[File:{{{picture}}}|300px]]{{#if: {{{picture caption<includeonly>|</includeonly>}}}|<br />{{{picture caption<includeonly>|</includeonly>}}} }} }}
Line 19: Line 21:
! colspan=2 style="background: white; text-align: center; font-size: 85%;" {{!}}
! colspan=2 style="background: white; text-align: center; font-size: 85%;" {{!}}
[[File:{{{map}}}|220px]]}}
[[File:{{{map}}}|220px]]}}
|}{{#if:{{{range<includeonly>|</includeonly>}}}|[[Category:{{#var:rangename}}]] }}{{#if:{{{island|}}}|[[Category:{{{island}}}]]}}{{#if:{{{SMC|}}}|{{SMC|{{{SMC}}}}}}}<noinclude>{{Infobox hill/doc}}[[Category:Infoboxes|Hill]]</noinclude>
|}<includeonly>{{#if:{{{range<includeonly>|</includeonly>}}}|[[Category:{{#var:rangename}}]] }}{{Hillcat|{{#var:shire}}}}{{#ifeq:{{#varexists|shire 2}}|1|{{Hillcat|{{#var:shire 2}}}}}}{{#ifeq:{{#varexists|shire 3}}|1|{{Hillcat|{{#var:shire 3}}}}}}{{#ifeq:{{#varexists|shire 4}}|1|{{Hillcat|{{#var:shire 4}}}}}}{{#if:{{{island|}}}|[[Category:{{{island}}}]]}}{{#if:{{{SMC|}}}|{{SMC|{{{SMC}}}}}}}</includeonly><noinclude>{{Infobox hill/doc}}[[Category:Infoboxes|Hill]]</noinclude>

Revision as of 14:51, 22 May 2014