Template:Infobox test/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
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 on TTRPG campaigns.
 
== Usage ==
== Usage ==
{{Parameter names example
{{Parameter names example
Line 26: Line 24:
| setting
| setting
}}
}}
<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{Infobox Country
{{Infobox Settlement
| name =  
| name =  
| tag =  
| tag =  
| continent =  
| settlement_type =  
| image =  
| image =  
| caption =  
| caption =  
| capital =  
| country =  
| largest_city =
| founded_in =  
| language =
| people =
| religion =
| demonym =
| founded =  
| founded_by =  
| founded_by =  
| government =  
| government =  
Line 46: Line 38:
| leader_name =  
| leader_name =  
| area =  
| area =  
| elevation =
| population =  
| population =  
| demonym =
| languages =
| temples =
| setting =  
| setting =  
}}
}}
</pre>
</pre>
== Parameters ==
== Parameters ==
; <code>name</code>: name of the country
; <code>name/code>:  
; <code>tag</code>: tagline of the country
; <code>tag/code>:  
; <code>continent</code>: name of the continent the country is on
; <code>settlement_type/code>:  
; <code>image</code>: orthographic image of the continent that the country is on
; <code>image/code>:  
; <code>caption</code>: caption of the image
; <code>caption/code>:  
; <code>capital</code>: the capital of the country
; <code>country/code>:  
; <code>largest_city</code>: the largest city in the country
; <code>founded_in/code>:  
; <code>language</code>: list of major languages
; <code>founded_by/code>:  
; <code>people</code>: list of the major people/races that reside within the country
; <code>government/code>:  
; <code>religion</code>: list of major religions practiced by the country
; <code>leader_title/code>:  
; <code>demonym</code>: what are the people of the country called
; <code>leader_name/code>:  
; <code>founded</code>: the date the country was founded
; <code>area/code>:  
; <code>founded_by</code>: who founded the country
; <code>elevation/code>:  
; <code>government</code>: type of government
; <code>population/code>:  
; <code>leader_title</code>: the title of the leader
; <code>demonym/code>:  
; <code>leader_name</code>: name of the current leader
; <code>languages/code>:  
; <code>area</code>: the total area of the country
; <code>temples/code>:  
; <code>population</code>: estimated population of the country
; <code>setting/code>:  
; <code>setting</code>: the setting the country is a part of


==TemplateData==
==TemplateData==
Line 78: Line 72:
{
{
"params": {
"params": {
"name": {
"name": {},
"label": "Name",
"tag": {},
"description": "name of the country",
"settlement_type": {},
"type": "string"
"image": {},
},
"caption": {},
"tag": {
"country": {},
"label": "Tag",
"founded_in": {},
"description": "tagline of the country",
"founded_by": {},
"type": "string"
"leader_name": {},
},
"government": {},
"continent": {
"leader_title": {},
"label": "Continent",
"area": {},
"description": "name of the continent the country is on",
"elevation": {},
"type": "wiki-page-name"
"population": {},
},
"demonym": {},
"image": {
"languages": {},
"label": "Image",
"temples": {},
"description": "orthographic image of the continent that the country is on",
"setting": {}
"type": "wiki-file-name"
},
"caption": {
"label": "Caption",
"description": "caption of the image",
"type": "string"
},
"capital": {
"label": "Capital",
"description": "the capital of the country",
"type": "wiki-page-name"
},
"largest_city": {
"label": "Largest City",
"description": "the largest city in the country",
"type": "wiki-page-name"
},
"language": {
"label": "Language",
"description": "list of major languages",
"type": "wiki-template-name"
},
"people": {
"label": "People",
"description": "list of the major people/races that reside within the country",
"type": "wiki-template-name"
},
"religion": {
"label": "Religion",
"description": "list of major religions practiced by the country",
"type": "wiki-template-name"
},
"demonym": {
"label": "Demonym",
"description": "what are the people of the country called",
"type": "string"
},
"founded": {
"label": "Founded",
"description": "the date the country was founded",
"type": "wiki-template-name"
},
"founded_by": {
"label": "Founded by",
"description": "who founded the country",
"type": "wiki-page-name"
},
"government": {
"label": "Government",
"description": "type of government",
"type": "string"
},
"leader_title": {
"label": "Leader Title",
"description": "the title of the leader",
"type": "string"
},
"leader_name": {
"label": "Leader Name",
"description": "name of the current leader",
"type": "wiki-page-name"
},
"area": {
"label": "Area",
"description": "the total area of the country",
"type": "string"
},
"population": {
"label": "Population",
"description": "estimated population of the country",
"type": "string"
},
"setting": {
"label": "Setting",
"description": "the setting the country is a part of",
"type": "wiki-page-name"
}
}
}
}
}</templatedata>
</templatedata>
{{Collapse bottom}}
{{Collapse bottom}}