Difference between revisions of "Template:Infobox pyramid"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>Fram (If location is wanted, it should best be added locally. Wikidata value gets vandalized all the time, and reverts take hours to have effect on enwiki.) |
imported>Fram (Back to non-Wikidata. Only two articles fetched one value from Wikidata, and one of them was sourced to enwiki and uncertain anyway. No loss of contents, much simpler template.) |
||
| Line 3: | Line 3: | ||
| aboveclass = fn org | | aboveclass = fn org | ||
| child = {{{child|}}} | | child = {{{child|}}} | ||
| − | | above | + | | above = {{{name|{{{Name}}}}}} |
| − | | image | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{Image|}}}}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}} |
| − | | caption | + | | caption = {{{caption|{{{Caption|}}}}}} |
| − | | | + | | header1 = {{{owner|{{{Owner|}}}}}} |
| − | |||
| label2 = Location | | label2 = Location | ||
| Line 15: | Line 14: | ||
| label3 = Coordinates | | label3 = Coordinates | ||
| − | | data3 | + | | data3 = {{#if:{{{coordinates|{{{coords|{{{Coords|}}}}}}}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|{{{coords|{{{Coords}}}}}}}}}|type:landmark}}}} |
| label4 = Ancient name | | label4 = Ancient name | ||
| Line 22: | Line 21: | ||
| label5 = Architect | | label5 = Architect | ||
| − | | data5 | + | | data5 = {{{architect|{{{Architect|}}}}}} |
| label6 = Constructed | | label6 = Constructed | ||
| − | | data6 = | + | | data6 = {{{date|{{{Date|}}}}}} |
| label7 = Type | | label7 = Type | ||
| Line 33: | Line 32: | ||
| label8 = Material | | label8 = Material | ||
| class8 = category | | class8 = category | ||
| − | | data8 = | + | | data8 = {{{material|{{{Material|}}}}}} |
| label9 = Height | | label9 = Height | ||
| − | | data9 = {{{height|{{{Height| | + | | data9 = {{{height|{{{Height|}}}}}} |
| label10 = Base | | label10 = Base | ||
| − | | data10 = {{{base|{{{Base| | + | | data10 = {{{base|{{{Base|}}}}}} |
| label11 = Volume | | label11 = Volume | ||
| − | | data11 = {{{volume|{{{Volume| | + | | data11 = {{{volume|{{{Volume|}}}}}} |
| label12 = Slope | | label12 = Slope | ||
| − | | data12 = {{{slope|{{{Slope| | + | | data12 = {{{slope|{{{Slope|}}}}}} |
| data13 = {{{embedded|}}} | | data13 = {{{embedded|}}} | ||
| Line 59: | Line 58: | ||
|caption = {{#if:{{{map_caption}}}|{{{map_caption|Location within {{#invoke:Location map|data|{{{map_type|Earth}}}|name}}}}}}} | |caption = {{#if:{{{map_caption}}}|{{{map_caption|Location within {{#invoke:Location map|data|{{{map_type|Earth}}}|name}}}}}}} | ||
|width = {{#if:{{{map_size|}}}|{{{map_size}}}|220}} | |width = {{#if:{{{map_size|}}}|{{{map_size}}}|220}} | ||
| − | + | }}}} | |
| − | |||
| − | |||
| − | |||
}}<includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox pyramid with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox pyramid]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | Ancient | ancient | Architect | architect | Base | base | Caption | caption | child | coordinates | Coords | coords | Date | date | embedded | fetchwikidata | Height | height | Image | image | image_alt | image size | image_size | image_upright | imagesize | map dot label | map_alt | map_caption | map_caption | map_dot_label | map_size | map_type | Material | material | Name | name | Owner | owner | qid | refs | relief | Slope | slope | suppressfields | type | Type | Volume | volume | }}<includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox pyramid with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox pyramid]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | Ancient | ancient | Architect | architect | Base | base | Caption | caption | child | coordinates | Coords | coords | Date | date | embedded | fetchwikidata | Height | height | Image | image | image_alt | image size | image_size | image_upright | imagesize | map dot label | map_alt | map_caption | map_caption | map_dot_label | map_size | map_type | Material | material | Name | name | Owner | owner | qid | refs | relief | Slope | slope | suppressfields | type | Type | Volume | volume | ||
| − | }}{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|child|nocoord|noicon|nomap|locmapin | + | }}{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|child|nocoord|noicon|nomap|locmapin}}}}}}</includeonly><noinclude>{{documentation}}<!--Please add any categories to the /doc page --></noinclude> |
Revision as of 10:54, 1 June 2018
| {{{Name}}} |
|---|
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
{{Infobox pyramid}} is the standard infobox for Egyptian pyramid articles, and can be used for other such structures.
All parameters except |name= are optional.
Usage
- redirect Template:Parameter names example
{{Infobox pyramid
| name =
| image =
| image_size =
| alt =
| caption =
| map_type =
| relief =
| map_size =
| map_alt =
| map_caption =
| map_dot_label =
| owner =
| coordinates =
| ancient =
| date =
| type =
| material =
| height =
| base =
| volume =
| slope =
}}
Parameters
The full list of parameters is:
| Parameter | Default | Description |
|---|---|---|
| name | Page name | Name of the pyramid |
| image | FileName.Extension (e.g., Chichen Itza 3.jpg)
| |
| image_size | Size of the image (usually 250 to 300 pixels) | |
| alt | Alternative text | |
| caption | Caption for the image | |
| map_type | The name of a {{location map}}; typically the country name (e.g., Mexico) | |
| relief | yes / no | |
| map_size | Size of the map (in pixels) | |
| map_alt | Alternative caption of the map | |
| map_caption | Caption of the map | |
| map_dot_label | ? | |
| owner | The owner of the pyramid, e.g. "Khufu" | |
| architect | The architect of the pyramid (if known) | |
| coordinates | The coordinates; use {{coord}} with |display=inline,title | |
| ancient | The ancient name, e.g. "Khufu's Horizon" | |
| date | The building time, see also Egyptian pyramids#Construction dates | |
| type | The type of the pyramid, e.g. "true pyramid" | |
| material | The building material | |
| height | The height; use {{convert}} | |
| base | The extent of the base; use {{convert}} | |
| volume | The pyramid's volume; use {{convert}} | |
| slope | The angular degree of the slope (e.g., 37°29'44") | |
| child | no | Set to 'yes' if this is embedded in another template |
| embedded | Use this parameter to use an embedded infobox in this one. |
Example
| Great Pyramid of Giza | |
|---|---|
![]() | |
| Khufu | |
| Coordinates | Lua error: callParserFunction: function "#coordinates" was not found. |
| Ancient name | Khufu's Horizon |
| Constructed | c. 2560–2540 BC |
| Type | True Pyramid |
| Height | 146.5 m (481 ft), ancient 138.8 m (455 ft), contemporary |
| Base | 230.4 m (756 ft) |
| Lua error in Module:Location_map at line 399: Malformed coordinates value. | |
{{Infobox pyramid
| name = Great Pyramid of Giza
| image = Kheops-Pyramid.jpg
| image_size = 250
| map_type = Egypt
| relief = yes
| map_size = 250
| map_caption = Location of pyramid in [[Egypt]]
| owner = [[Khufu]]
| coordinates = {{coord|29|58|45|N|31|8|4|E|region:EG_type:landmark|display=inline}}
| ancient = Khufu's Horizon
| date = c. 2560–2540 BC
| type = [[Pyramid|True Pyramid]]
| height = {{convert|146.5|m|ft|0|abbr=on}}, ''ancient'' <br/>{{convert|138.8|m|ft|0|abbr=on}}, ''contemporary''
| base = {{convert|230.4|m|ft|0|abbr=on}}
}}
Microformat
Tracking category
See also
| The above documentation is transcluded from Template:Infobox pyramid/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
