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.

  1. Start the box with {{placebox-begin}}.
  2. 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.
  3. After the header comes the data. Start this section with {{placebox-begin-data}}.
  4. 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.
  5. 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.
  6. End the data section with {{placebox-end-data}}.
  7. You can create a new section after this, if you want to.
  8. 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:

Cities and towns
in Argentina
Rosario
Province Santa Fe
Department Rosario
Area 178 km²
Location 32°57′ S 60°40′ W
Elevation 22.5–24.6 m AMSL
Population 910,000
Demonym rosarino
Density 5,112 inhab/km²
Phone code +54 341
CPA base S2000
Mayor Miguel Lifschitz
Party Socialist Party
{{{3}}}

[edit] List of subtemplates