Template:Infobox test/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 2: Line 2:
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{Lua|Module:Infobox}}
{{Lua|Module:Infobox}}
This template can be used to add at-a-glance information for settlements.
This template can be used to add at-a-glance information for continents.
== Usage ==
== Usage ==
{{Parameter names example
{{Parameter names example
Line 9: Line 9:
| image
| image
| caption
| caption
| area
| size5e
| population
| type5e
| temples
| tags5e
| demonym
| alignment5e
| countries
| deity
| languages
| movement
| largest_cities
| vision
| setting
| sleep_cycle
| diet
| lifespan
| homeland
| intelligence
| language
| subraces
| favored_climate
| favored_terrain
| height
| wingspan
| weight
| skin_color
| hair_color
| feathers
| eye_color
| build
| distinctions
}}
}}
<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{Infobox Continent
{{Infobox Race
| name =  
| name =  
| tag =  
| tag =  
| image =  
| image =  
| caption =  
| caption =  
| area =  
| size5e =  
| population =  
| type5e =  
| temples =  
| tags5e =  
| demonym =  
| alignment5e =  
| countries =  
| deity =  
| languages =  
| movement =  
| largest_cities =  
| vision =  
| setting =  
| sleep_cycle =
| diet =
| lifespan =
| homeland =
| intelligence =
| language =
| subraces =
| favored_climate =
| favored_terrain =
| height =
| wingspan =
| weight =
| skin_color =
| hair_color =
| feathers =
| eye_color =
| build =
| distinctions =  
}}
}}
</pre>
</pre>
== Parameters ==
== Parameters ==
; <code>name</code>: name of the settlement
; <code>name</code>:  
; <code>tag</code>: tagline of the settlement
; <code>tag</code>:  
; <code>settlement_type</code>: city, town, capital, independent
; <code>image</code>:
; <code>image</code>: image of the city
; <code>caption</code>:
; <code>caption</code>: caption about the image
; <code>race</code>:
; <code>country</code>: Country the settlement is
; <code>gender</code>:  
; <code>founded_in</code>: date the settlement was founded
; <code>class</code>:  
; <code>founded_by</code>: who founded the settlement
; <code>height</code>:  
; <code>government</code>: government type
; <code>weight</code>:  
; <code>leader_title</code>: title of the leader
; <code>alignment</code>:  
; <code>leader_name</code>: name of the current leader
; <code>faith</code>:  
; <code>area</code>: area of the settlement
; <code>born</code>:  
; <code>elevation</code>: elevation of the settlement
; <code>died</code>:  
; <code>population</code>: population of the settlement
; <code>cause_of_death</code>:  
; <code>demonym</code>: name of the people from the settlement
; <code>occupation</code>:  
; <code>languages</code>: major languages spoken in settlement
; <code>spouse</code>:  
; <code>temples</code>: major temples in the settlement
; <code>children</code>:  
; <code>setting</code>: setting the settlement is in
; <code>campaign</code>:  
; <code>firstsession</code>:  
; <code>lasesession</code>:  
; <code>setting</code>:  
; <code>character_sheet</code>:
==TemplateData==
==TemplateData==
{{Collapse top|title=[[Stiles.casa Wiki:TemplateData|TemplateData]] documentation used by [[Stiles.casa Wiki:VisualEditor|VisualEditor]] and other tools}}
{{Collapse top|title=[[Stiles.casa Wiki:TemplateData|TemplateData]] documentation used by [[Stiles.casa Wiki:VisualEditor|VisualEditor]] and other tools}}
Line 59: Line 97:
{
{
"params": {
"params": {
"name": {
"name": {},
"label": "Name",
"tag": {},
"description": "name of the settlement",
"image": {},
"type": "string",
"caption": {},
"default": "{{PAGENAME}}"
"date_founded": {},
},
"active": {},
"tag": {
"allegiance": {},
"label": "Tag",
"type": {},
"description": "tagline of the settlement",
"role": {},
"type": "string"
"size": {},
},
"headquarters": {},
"settlement_type": {
"nicknames": {},
"label": "Settlement Type",
"patron": {},
"description": "city, town, capital, independent",
"members": {},
"type": "string"
"leader_title": {},
},
"first_leader": {},
"image": {
"current_leader": {},
"label": "Image",
"last_leader": {},
"description": "image of the city",
"setting": {}
"type": "wiki-file-name"
},
"caption": {
"label": "Caption",
"description": "caption about the image",
"type": "string"
},
"country": {
"label": "Country",
"description": "Country the settlement is",
"type": "wiki-page-name"
},
"founded_in": {
"label": "Founded in",
"description": "date the settlement was founded",
"type": "date"
},
"founded_by": {
"label": "Founded by",
"description": "who founded the settlement",
"type": "wiki-page-name"
},
"government": {
"label": "Governemnt",
"description": "government type",
"type": "string"
},
"leader_title": {
"label": "Leader Title",
"description": "title of the leader",
"example": "Mayor",
"type": "string"
},
"leader_name": {
"label": "Leader Name",
"description": "name of the current leader",
"type": "wiki-page-name"
},
"area": {
"label": "Area",
"description": "area of the settlement",
"type": "string"
},
"elevation": {
"label": "Elevation",
"description": "elevation of the settlement",
"type": "string"
},
"population": {
"label": "Population",
"description": "population of the settlement",
"type": "string"
},
"demonym": {
"label": "Demonym",
"description": "name of the people from the settlement",
"type": "string"
},
"languages": {
"label": "Languages",
"description": "major languages spoken in settlement",
"type": "string"
},
"temples": {
"label": "Temples",
"description": "major temples in the settlement",
"type": "string"
},
"setting": {
"label": "Setting",
"description": "setting the settlement is in",
"type": "wiki-page-name"
}
}
}
}
}
Line 157: Line 122:
<includeonly>{{basepage subpage|
<includeonly>{{basepage subpage|
<!-- Categories below this line, please; interwikis at Wikidata -->
<!-- Categories below this line, please; interwikis at Wikidata -->
{{DEFAULTSORT:Infobox Campaign}}
{{DEFAULTSORT:Infobox test}}
}}</includeonly>
}}</includeonly>