Difference between revisions of "Template:Location"
Jump to navigation
Jump to search
m (+planet as a synonym) |
m (+explanation) |
||
Line 1: | Line 1: | ||
{{infobox|title={{{place|{{PAGENAME}}|}}}|width=200px |
{{infobox|title={{{place|{{PAGENAME}}|}}}|width=200px |
||
|1= |
|1= |
||
<!-- optional map --> |
|||
{{#if:{{{map|}}}|{{row|pre={{!}}colspan=2{{!}}|[[File:{{{map}}}|200px|center]]}}|}} |
{{#if:{{{map|}}}|{{row|pre={{!}}colspan=2{{!}}|[[File:{{{map}}}|200px|center]]}}|}} |
||
<!-- required world field --> |
|||
{{infobox/row|World|[[{{{planet|{{{world}}}|}}}]]}} |
{{infobox/row|World|[[{{{planet|{{{world}}}|}}}]]}} |
||
<!-- optional specific location --> |
|||
{{#if:{{{region|}}}|{{infobox/row|Region|{{{region}}}|}}|}} |
{{#if:{{{region|}}}|{{infobox/row|Region|{{{region}}}|}}|}} |
||
{{#if:{{{country|}}}|{{infobox/row|Country|{{{country}}}|}}|}} |
{{#if:{{{country|}}}|{{infobox/row|Country|{{{country}}}|}}|}} |
||
{{#if:{{{ |
{{#if:{{{city|}}}|{{infobox/row|City|{{{city}}}|}}|}} |
||
<!-- optional space for more/other rows --> |
|||
{{{location|}}} |
|||
<!-- optional time-period --> |
|||
{{#if:{{{era|}}}|{{infobox/row|Era|{{{era}}}|}}|}} |
{{#if:{{{era|}}}|{{infobox/row|Era|{{{era}}}|}}|}} |
||
<!-- books field --> |
|||
{{infobox/row| |
{{infobox/row|Featured In|''{{{books}}}''|}} |
||
}}<includeonly>[[Category:Places]][[Category:{{{planet|{{{world}}}|}}}]]</includeonly><noinclude> |
}}<includeonly>[[Category:Places]][[Category:{{{planet|{{{world}}}|}}}]]</includeonly><noinclude>This template allows you to include information about a country, city, geographical landmark, building, or other place on its article. |
||
There are two required parameters, the {{{world}}} that the place inhabits, and the {{{books}}} or series the place is set upon. |
|||
A number of optional parameters allow you to pinpoint the location to a particular {{{region}}}, {{{country}}} or {{{city}}}. |
|||
Another parameter allows you to define the {{{era}}} or time period the place existed in. |
|||
An advanced field {{{location}}} allows you to add {{t|infobox/row}}s directly, and {{{place}}} allows you to change the box heading. |
|||
{{cat|infoboxes}} |
{{cat|infoboxes}} |
Revision as of 19:42, 1 May 2012
Template:Infobox/rowTemplate:Infobox/row
Location |
---|
This template allows you to include information about a country, city, geographical landmark, building, or other place on its article.
There are two required parameters, the {{{world}}} that the place inhabits, and the {{{books}}} or series the place is set upon. A number of optional parameters allow you to pinpoint the location to a particular {{{region}}}, {{{country}}} or {{{city}}}. Another parameter allows you to define the {{{era}}} or time period the place existed in.
An advanced field {{{location}}} allows you to add {{infobox/row}}
s directly, and {{{place}}} allows you to change the box heading.