Template:Locale: Difference between revisions

From Green Family Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>Header for a Locale page. * ''territory'': Territory to which this Locale belongs; default is the second comma-delimited string in the page name * ''map place'': pl...")
 
No edit summary
Line 1: Line 1:
<noinclude>Header for a Locale page.
<noinclude>Header for a Locale page.
* ''territory'': Territory to which this Locale belongs; default is the second comma-delimited string in the page name
* ''territory'': Territory to which this Locale belongs; default is the last comma-delimited part of the page name
* ''map place'': place to search for in the map; default is page name, or nothing if ''map coords'' is set
* ''map place'': place to search for in the map; default is page name, or nothing if ''map coords'' is set
* ''map coords'': center of the map; default is automatic
* ''map coords'': center of the map; default is automatic
* ''map zoom'': zoom level of the map (0-21); default is automatic
* ''map zoom'': zoom level of the map (0-21); default is automatic
Adds the [[:Category:Locale]] tag and sets [[Property:Locale Territory]].
Adds the [[:Category:Locale]] tag and sets [[Property:Locale Territory]].
</noinclude><includeonly>{{Locale/Set Basic
</noinclude><includeonly>{{Locale/Raw
| territory={{#if:{{{territory|}}}|{{{territory}}}|{{#explode:{{PAGENAME}}|,|1}}}}
| territory={{#if:{{{territory|}}}|{{{territory}}}|{{#explode:{{PAGENAME}}|,|-1}}}}
}}
| map place={{#if:{{{map place|}}}|{{{map place}}}|{{#if:{{{map coords|}}}||{{PAGENAME}}}}}}
<div style="float:right; margin-left:15px; margin-bottom:15px">{{#widget:Google Map
| map coords={{{map coords|}}}
| {{#if:{{{map place|}}}
| map zoom={{{map zoom|}}}
  | place={{{map place}}}
}}</includeonly>
  | {{#if:{{{map coords|}}}||place={{PAGENAME}}}}
  }}
| {{#if:{{{map coords|}}}
  | center={{{map coords}}}
  }}
| {{#if:{{{map zoom|}}}
  | zoom={{{map zoom}}}
  }}
| width=400
| height=400
}}</div>
''Located in {{Locale/Territory|{{PAGENAME}}}}, part of {{Locale/Region|{{PAGENAME}}}}''</includeonly>

Revision as of 12:31, 21 June 2015

Header for a Locale page.

  • territory: Territory to which this Locale belongs; default is the last comma-delimited part of the page name
  • map place: place to search for in the map; default is page name, or nothing if map coords is set
  • map coords: center of the map; default is automatic
  • map zoom: zoom level of the map (0-21); default is automatic

Adds the Category:Locale tag and sets Property:Locale Territory.