Template:Unstructured infobox/doc
This is a documentation subpage for Template:Unstructured infobox. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template uses TemplateStyles: |
The {{Unstructured infobox}} template creates infoboxes that do not obey to any recurrent structure, but have their own unique ones, or whose recurrence is confined within the scope of a single page. It was born for documenting the different functions of the {{#invoke:params}} module, where specific infoboxes were required and these would not find other applications outside that context, but the template is usable by any page with similar needs.
Usage
[kulemba source]The Tower Wharf redevelopment, adjacent to Egerton Dock in May 2015 | |
Project | |
---|---|
Developer | Peel Holdings |
Website | WirralWaters.co.uk |
Physical features | |
Divisions | East Float, Vittoria Dock, Bidston Dock |
Location | |
Coordinates: 53°23′05″N 3°00′39″W / 53.3846°N 3.0109°W | |
Country | England |
County | Merseyside |
Town | Birkenhead |
The way this template works is simple. Each unnamed parameter constitutes a new row, in which the colon constitutes the delimiter between the header cell and the content cell.
For instance, writing
{{Unstructured infobox
| Country: England
| County: [[Merseyside]]
| Town: [[Birkenhead]]
}}
will generate
|
Two named parameters allow to declare a title (
{{Unstructured infobox | title = Wirral Waters | caption = Details
| Country: England
| County: [[Merseyside]]
| Town: [[Birkenhead]]
}}
will generate
|
Parameters that begin with a semicolon constitute subsection titles, while parameters that begin with a colon are rows that span across the two columns. And so writing
{{Unstructured infobox | title = Wirral Waters | caption = Details
| Country: England
| County: [[Merseyside]]
| Town: [[Birkenhead]]
| ; Location
| : {{Location map|United Kingdom|relief=yes|float=no|caption=|alt=|label=Wirral Waters|lat_deg=53.3846|lon_deg=-3.0109}}
| : Coordinates: {{coord|53.3846|-3.0109|display=inline|region:GB_scale:20000}}
will generate
|
Finally, parameters that do not contain a colon are assumed to signify a positive boolean answer (✔), while parameters that have a colon not followed by any text are assumed to signify a negative boolean answer (✘). And so writing
{{Unstructured infobox | title = Wirral Waters | caption = Details
| Country: England
| County: [[Merseyside]]
| Town: [[Birkenhead]]
| Announced
| Completed:
}}
will generate
|
The text to display in these cases can be set by passing the
To preserve one or more initial colons from being replaced, the :
HTML entity must be used. After one colon has been replaced all other colons in the argument will be preserved.
Similarly, to insert one or more equals signs into a parameter content, either {{=}}
or =
must be used.
The example displayed at the beginning of this section was created by writing:
{{Unstructured infobox | caption = Wirral Waters
| : [[Image:Building under construction, Egerton Dock, Birkenhead.jpg|frameless]]
| : The Tower Wharf redevelopment, adjacent to [[Egerton Dock]] in May 2015
| ; Project
| Developer: Peel Holdings
| Website: [http://www.wirralwaters.co.uk WirralWaters.co.uk]
| ; Physical features
| Divisions: [[Great Float|East Float]], [[Vittoria Dock]], [[Bidston Dock]]
| ; Location
| : {{Location map|United Kingdom|relief=yes|float=no|caption=|alt=|label=Wirral Waters|lat_deg=53.3846|lon_deg=-3.0109}}
| : Coordinates: {{coord|53.3846|-3.0109|display=inline|region:GB_scale:20000}}
| Country: England
| County: [[Merseyside]]
| Town: [[Birkenhead]]
}}
TemplateData
[kulemba source]This template creates infoboxes that do not obey to any recurrent structure, but have an own unique one, or whose recurrence is confined within the scope of a single page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
First row | 1 | At least one row to display | String | required |
Title | title | The infobox title | String | optional |
Caption | caption | The infobox caption | String | optional |
Implicit values | implicit | The text to display when the colon is missing | String | optional |
Empty values | empty | The text to display when no text was placed after the colon | String | optional |
Subtemplates
[kulemba source]See also
[kulemba source]