Difference between revisions of "Template:Place"

From All About Ayrshire
Jump to: navigation, search
Line 2: Line 2:
 
'''<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:
Line 24: Line 24:
 
</noinclude>
 
</noinclude>
  
 +
<center>
 +
<div style="background-color: #FFFFDD; float:right; border: 1px solid #808000; padding: 1px; {{border-radius|8px 8px 8px 8px}}">
  
<table style="margin:16px;clear:right;" class="toc colour" align="right" width="267"><!--
+
{| class="infobox bordered" cellpadding="2" cellspacing="2" style="font-size:100%; width:250px; {{roundy|17px}}"
 
+
! colspan="2" style="font-size:100%;text-align:center; background:#{{{element|{{demon color}}}}}; {{roundy|10px}}"| <span style="color:#ffff00;">{{{name}}}</span>
Name and colour in heading row
+
<span style="font-size:100%;color:{{Get gaelic colour|{{{type|place}}}}}">{{{gaelic}}}</span>  
--><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}} }}'''<!--
+
|-
-->{{#if: {{{welsh|}}} | <br/><span style="font-size:12pt;color:{{Get welsh colour|{{{type|place}}}}}">''{{{welsh}}}''</span> }}<!--
+
| colspan="2" style="text-align:center;" | {{#if:{{{image|}}}|{{{image}}}}}{{#if:{{{caption|}}}|<br />{{{caption}}}}}
-->{{#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> }}<!--
+
{| class="infobox bordered" cellpadding="2" cellspacing="2" style="font-size: 100%; width:250px; {{roundy|17px}}"
--></td></tr><tr><td></td></tr><!--
+
! colspan="2" align:center; style="font-size:100%;text-align:center; background:#{{{element|{{demon color}}}}}; {{roundy|10px}}"| <span style="color:#ffff00;">Country</span>
 
+
|-
Location
+
{| class="infobox bordered" cellpadding="2" cellspacing="2" style="font-size: 100%; width:250px; {{roundy|17px}}"
-->{{#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>}}<!--
+
! colspan="2" style="font-size:100%;text-align:center; background:#FFFFDD; {{roundy|10px}}"|<span style="color:#000;">{{{country}}}</span>
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>}}<!--
+
{| class="infobox bordered" cellpadding="2" cellspacing="2" style="font-size: 100%; width:250px; {{roundy|17px}}"
 
+
! colspan="2" style="font-size:100%;text-align:center; background:#{{{element|{{demon color}}}}}; {{roundy|10px}}"| <span style="color:#ffff00;">Local Authority</span>
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}}}  
+
{| class="infobox bordered" cellpadding="2" cellspacing="2" style="font-size: 100%; width:250px; {{roundy|17px}}"
</td></tr>}}<!--
+
! colspan="2" style="font-size:100%;text-align:center; background:#FFFFDD; {{roundy|10px}}"|<span style="color:#000;">{{{county}}}</span>
 
+
|-
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>}}<!--
+
</div>
 
+
</center>
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><!--
 
  
 
Categories
 
Categories
 
--><includeonly><!--
 
--><includeonly><!--
-->{{#ifeq: {{{type|}}} | non primary | [[Category:Non Primary Routes]]}}<!--
 
 
-->[[Category:Places]]<!--
 
-->[[Category:Places]]<!--
 
--></includeonly><!--
 
--></includeonly><!--

Revision as of 12:35, 31 October 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
 | 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



colspan="2" style="font-size:100%;text-align:center; background:#705848; Template:Roundy"| {{{name}}}

{{{gaelic}}}

colspan="2" align:center; style="font-size:100%;text-align:center; background:#705848; Template:Roundy"| Country
colspan="2" style="font-size:100%;text-align:center; background:#FFFFDD; Template:Roundy"|{{{country}}}
colspan="2" style="font-size:100%;text-align:center; background:#705848; Template:Roundy"| Local Authority
colspan="2" style="font-size:100%;text-align:center; background:#FFFFDD; Template:Roundy"|{{{county}}}


Categories -->