Template talk:Placebox-begin
From Wikipedia, the free encyclopedia
The Placebox is an Infobox, a set of templates. It is intended to display common information about a (populated) place, especially (but not limited to) municipalities (cities, towns and villages). These composite templates were inspired by the Taxobox employed in the Tree of Life WikiProject.
Some of the templates of the Placebox must be placed in a given order; the others are optional and movable. If you want to create more (customized) templates, please discuss them with the other users first.
Don't create meta-templates. That is, don't create templates that reference or build on another templates. Calling a template from inside the definition of another template is resource-intensive and slows down the Wikimedia servers.
- Start the box with {{placebox-begin}}.
- You can (and probably will) include a header here. The header can be anything that fits into an HTML table cell, including a whole sub-table. In the example below, the header is itself a template, {{city-header-ar}} (it is intended for cities in Argentina, and its parameter is the name of the city). There is a generic, simple header template, {{placebox-header}}, for you to get the idea.
- After the header comes the data. Start this section with {{placebox-begin-data}}.
- The Placebox has some standard templates that you can include inside the data section. You can also make your own. The data section creates a table with two columns, and the following templates respect that format.
- Last in the data section should be a map. {{placebox-map}} is called with one parameter, the name of the image. You must not use the [[Image:...]] wikisyntax. The template inserts everything for you, including alignment and a proper size.
- End the data section with {{placebox-end-data}}.
- You can create a new section after this, if you want to.
- Wrap up the Placebox with {{placebox-end}}.
And you're done.
[edit] Example
The example comes from the page of the city of Rosario, Argentina:
{{placebox-begin}} {{city-header-ar|Rosario}} {{placebox-begin-data}} {{city-poli-ar|[[Santa Fe Province|Santa Fe]]|[[Rosario Department|Rosario]]}} {{placebox-area|178}} {{placebox-coor|32|57|S|60|40|W|}} {{placebox-elevation|22.5–24.6}} {{placebox-people|910,000|rosarino}} {{placebox-density|5,112}} {{placebox-phone-ar|341}} {{placebox-postal-code-ar|S|2000}} {{city-authority|[[Miguel Lifschitz]]|[[Socialist Party (Argentina)|Socialist Party]]}} {{placebox-map|Rosario, Argentina - Situation map.png}} {{placebox-end-data}} {{placebox-end}}
You can see how it appears, on the right:
|
[edit] List of subtemplates
- {{placebox-begin}}
- {{placebox-header}}, {{city-header-ar}}
- {{placebox-begin-data}}
- {{placebox-end}}
- {{placebox-end-data}}
- {{placebox-area}}
- {{placebox-coor}}
- {{placebox-elevation}}
- {{placebox-people}}
- {{placebox-density}}
- {{placebox-phone}}, {{placebox-phone-ar}}
- {{placebox-postal-code}}, {{placebox-postal-code-ar}}
- {{placebox-map}}
- {{city-poli-ar}}
- {{city-authority}}