Difference between revisions of "Template:Infobox pyramid"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(revise tracking)
imported>Frietjes
(not used, removing)
Line 49: Line 49:
 
| data13 = {{{embedded|}}}
 
| data13 = {{{embedded|}}}
  
| data14  = {{#if:{{{map|}}}
+
| data14  = {{#if: {{{map_type|}}}|{{Location map|{{{map_type|}}}
  |{{#invoke:InfoboxImage|InfoboxImage|image={{{map|}}}}}{{#if:{{{map_caption|}}}|<div>{{{map_caption}}}</div>}}
 
  |{{#if: {{{map_type|}}}|{{Location map|{{{map_type|}}}
 
 
  |relief  = {{{relief|}}}
 
  |relief  = {{{relief|}}}
 
  |alt    = {{{map_alt|}}}
 
  |alt    = {{{map_alt|}}}
Line 61: Line 59:
 
  |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}}
}}|{{Wikidata location map}}}} }}
+
}}|{{Wikidata location map}}}}
  
 
| data16 = {{#if:{{#invoke:Wikidata|getValue|P373|{{{commons|FETCH_WIKIDATA}}} }} | <div style="text-align: center;">{{icon|Commons}} [[Commons:{{#if:{{{commons|}}} | {{{commons}}} | Category:{{#invoke:Wikidata|getValue|P373|FETCH_WIKIDATA}} }} |Related media on Wikimedia Commons]]</div>}}
 
| data16 = {{#if:{{#invoke:Wikidata|getValue|P373|{{{commons|FETCH_WIKIDATA}}} }} | <div style="text-align: center;">{{icon|Commons}} [[Commons:{{#if:{{{commons|}}} | {{{commons}}} | Category:{{#invoke:Wikidata|getValue|P373|FETCH_WIKIDATA}} }} |Related media on Wikimedia Commons]]</div>}}
Line 67: Line 65:
 
| below    = <includeonly>{{EditOnWikidata}}</includeonly>
 
| below    = <includeonly>{{EditOnWikidata}}</includeonly>
  
}}<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 | 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}}|[[Category:Articles using infobox pyramid using locally defined parameters]]|{{#if:{{{child|}}}||[[Category:Articles with infoboxes completely from Wikidata]]}}}}}}{{#if:{{{map|}}}|[[Category:Pages using infobox pyramid with the map parameter]]}}</includeonly><noinclude>{{documentation}}<!--Please add any categories to the /doc page --></noinclude>
+
}}{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|child|nocoord|noicon|nomap|locmapin}}|[[Category:Articles using infobox pyramid using locally defined parameters]]|{{#if:{{{child|}}}||[[Category:Articles with infoboxes completely from Wikidata]]}}}}}}</includeonly><noinclude>{{documentation}}<!--Please add any categories to the /doc page --></noinclude>

Revision as of 22:57, 17 January 2018

LocationTemplate:Wikidata location
CoordinatesLua error in Module:Coordinates at line 611: attempt to index field 'wikibase' (a nil value).Template:Wikidata
ConstructedTemplate:Wikidata
HeightTemplate:Wikidata
BaseTemplate:Wikidata
VolumeTemplate:Wikidata
Slope{{#Property:P4184|from=}}
Template:Wikidata location map
Commons page [[Commons:Category:Script error: No such module "Wikidata". |Related media on Wikimedia Commons]]

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

{{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

  1. 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
Kheops-Pyramid.jpg
OwnerKhufuTemplate:Wikidata
LocationTemplate:Wikidata location
CoordinatesScript error: No such module "If empty".Template:Wikidata
Ancient nameKhufu's Horizon
Constructedc. 2560–2540 BC
TypeTrue Pyramid
Height146.5 m (481 ft), ancient
138.8 m (455 ft), contemporary
Base230.4 m (756 ft)
VolumeTemplate:Wikidata
Slope{{#Property:P4184|from=}}
Lua error in Module:Location_map at line 399: Malformed coordinates value.
Commons page [[Commons:Category:Script error: No such module "Wikidata". |Related media on Wikimedia Commons]]
[[Category:Infobox templates|Template:Remove first word]]
{{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

Template:UF-hcard-geo

Tracking category

See also