Difference between revisions of "Template:Place"

From All About Ayrshire
Jump to: navigation, search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{High use}}<div style="border: 2px solid black; background-color:wheat; margin:4px;padding:4px;">
+
<noinclude><div style="border: 2px solid black; background-color:wheat; margin:4px;padding:4px;">
 
'''<big>Documentation: {{BASEPAGENAME}}</big>'''
 
'''<big>Documentation: {{BASEPAGENAME}}</big>'''
  
The Infobox is the big template down the right hand side of every single page on the Wiki. This specicic one relates to Places (Cities, Towns, Villages and Hamlets).   
+
The Infobox is the big template down the right hand side of every single page on the Wiki. This specific one relates to Places (Cities, Towns, Villages and Hamlets).   
  
 
The format should be placed in your article as follows:
 
The format should be placed in your article as follows:
  
<pre style="width:50%; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap;  
+
<pre style="width:75%; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap;  
 
word-wrap: break-word;">
 
word-wrap: break-word;">
 
{{Place
 
{{Place
 
  | name              = Ardrossan
 
  | name              = Ardrossan
 +
| image              =
 
  | gaelic            = Baile an t-Salainn
 
  | gaelic            = Baile an t-Salainn
 
  | country            = Scotland
 
  | country            = Scotland
Line 20: Line 21:
  
 
[[Category:Templates used to generate other functions]]
 
[[Category:Templates used to generate other functions]]
 
 
 
</noinclude>
 
</noinclude>
  
 
+
<table style="margin:6px;clear:right;" class="toc colour" align="right" width="267"><!--
<table style="margin:16px;clear:right;" class="toc colour" align="right" width="267"><!--
 
  
 
Name and colour in heading row
 
Name and colour in heading row
--><tr><td style="background:{{Get bg colour|{{{type|place}}} }}; border:1px solid #AFA3BF; color:{{Get text colour|{{{type|non primary}}} }}; font-size:14pt; padding:4px; font-weight: bold;" align=center colspan="2">'''{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}'''<!--
+
--><tr><td style="background:{{Get bg colour|{{{type|place}}} }}; border:1px solid #AFA3BF; color:{{Get text colour|{{{type|place}}} }}; font-size:14pt; padding:4px; font-weight: bold;" align=center colspan="2">'''{{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }}'''<!--
 
-->{{#if: {{{welsh|}}} | <br/><span style="font-size:12pt;color:{{Get welsh colour|{{{type|place}}}}}">''{{{welsh}}}''</span> }}<!--
 
-->{{#if: {{{welsh|}}} | <br/><span style="font-size:12pt;color:{{Get welsh colour|{{{type|place}}}}}">''{{{welsh}}}''</span> }}<!--
 
-->{{#if: {{{irish|}}} | <br/><span style="font-size:12pt;color:{{Get irish colour|{{{type|place}}}}}">''{{{irish}}}''</span> }}<!--
 
-->{{#if: {{{irish|}}} | <br/><span style="font-size:12pt;color:{{Get irish colour|{{{type|place}}}}}">''{{{irish}}}''</span> }}<!--
 
-->{{#if: {{{gaelic|}}} | <br/><span style="font-size:12pt;color:{{Get gaelic colour|{{{type|place}}}}}">''{{{gaelic}}}''</span> }}<!--
 
-->{{#if: {{{gaelic|}}} | <br/><span style="font-size:12pt;color:{{Get gaelic colour|{{{type|place}}}}}">''{{{gaelic}}}''</span> }}<!--
--></td></tr><tr><td></td></tr><!--
+
--></td></tr><tr><td><!--
 +
 
 +
Check to see if type is valid
 +
-->{{#switch: {{{type|non primary}}} | primary | non primary  | motorway  | defunct  | unbuilt motorway | former motorway  | future motorway  | future primary  | unbuilt primary  | future non primary | unbuilt non primary | historical | roman | tourist | euroroute | e road | ncn | cycle route | private | train | eurovelo = | #default = <br/><span style="font-size:8pt"><span style="color:red;">'''Error:'''</span> Invalid type specified</span><includeonly>[[Category:Pages with errors]]</includeonly> }} <!--
 +
 
 +
--></td></tr><!--
 +
 
 +
--><td><td align=center>{{{image}}}</td><!--
  
Location
 
-->{{#if: {{{location|}}} | <tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Location'''</td></tr><tr><td colspan="2" align="center">{{{location}}}</td></tr>}}<!--
 
 
Country
 
Country
-->{{#if: {{{country|}}} | <tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Country'''</td></tr><tr><td colspan="2" align="center">{{{country}}}</td></tr>}}<!--
+
-->{{#if: {{{country|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Country'''</td></tr><tr><td colspan="2" align="center">
 +
{{{country}}}  
 +
</td></tr>}}<!--
  
 
County
 
County
-->{{#if: {{{county|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Local Authority'''</td></tr><tr><td colspan="2" align="center">{{{county}}}  
+
-->{{#if: {{{county|}}} |<tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''County'''</td></tr><tr><td colspan="2" align="center">
 +
{{{county}}}  
 
</td></tr>}}<!--
 
</td></tr>}}<!--
 
Roads
 
-->{{#if: {{{roads|}}} | <tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Road that Pass Over'''</td></tr><tr><td colspan="2" align="center">{{{roads}}}</td></tr>}}<!--
 
 
Local Roads
 
-->{{#if: {{{local_roads|}}} | <tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Local Roads'''</td></tr><tr><td colspan="2" align="center">{{{local_roads}}}</td></tr>}}<!--
 
 
Primary Roads
 
-->{{#if: {{{primary_roads|}}} | <tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Primary Roads'''</td></tr><tr><td colspan="2" align="center">{{{primary_roads}}}</td></tr>}}<!--
 
 
Other Nearby Primary Destinations
 
-->{{#if: {{{near|}}} | <tr><td style="background:#ffcc00; border:1px solid #2E0854" colspan="4" align="center">'''Other Nearby Destinations '''</td></tr><tr><td colspan="2" align="center">{{{near}}}</td></tr>}}<!--
 
 
  
  
 
--></table><!--
 
--></table><!--
  
Categories
 
--><includeonly><!--
 
-->{{#ifeq: {{{type|}}} | non primary | [[Category:Non Primary Routes]]}}<!--
 
-->[[Category:Places]]<!--
 
--></includeonly><!--
 
  
  
-->
+
<includeonly>
 +
[[Category:Places]]
 +
</includeonly>

Latest revision as of 07:03, 1 November 2015

Documentation: Place

The Infobox is the big template down the right hand side of every single page on the Wiki. This specific one relates to Places (Cities, Towns, Villages and Hamlets).

The format should be placed in your article as follows:

{{Place
 | name               = Ardrossan
 | image              = 
 | gaelic             = Baile an t-Salainn
 | country            = Scotland
 | county             = North Ayrshire
{{#display_map: 55.64464220631475,-4.810981750488281|mappingservice=leaflet|zoom=11}}
}}

This template should not be used separately


Place
{{{image}}}