Template:Infobox test/doc: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 71: Line 71:
{
{
"params": {
"params": {
"name": {},
"name": {
"tag": {},
"label": "Name",
"settlement_type": {},
"description": "name of the settlement",
"image": {},
"type": "string",
"caption": {},
"default": "{{PAGENAME}}"
"country": {},
},
"founded_in": {},
"tag": {
"founded_by": {},
"label": "Tag",
"leader_name": {},
"description": "tagline of the settlement",
"government": {},
"type": "string"
"leader_title": {},
},
"area": {},
"settlement_type": {
"elevation": {},
"label": "Settlement Type",
"population": {},
"description": "city, town, capital, independent",
"demonym": {},
"type": "string"
"languages": {},
},
"temples": {},
"image": {
"setting": {}
"label": "Image",
"description": "image of the city",
"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"
}
}
}
}</templatedata>
}
</templatedata>
{{Collapse bottom}}
{{Collapse bottom}}
<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 Campaign}}
}}</includeonly>
}}</includeonly>

Revision as of 20:02, 25 May 2022

This template can be used to add at-a-glance information for settlements.

Usage

{{{name}}}
{{{tag}}}
{{{image}}}
{{{caption}}}
{{Infobox Settlement
| name = 
| tag = 
| settlement_type = 
| image = 
| caption = 
| country = 
| founded_in = 
| founded_by = 
| government = 
| leader_title = 
| leader_name = 
| area = 
| elevation = 
| population = 
| demonym = 
| languages = 
| temples = 
| setting = 
}}

Parameters

name
tag
settlement_type
image
caption
country
founded_in
founded_by
government
leader_title
leader_name
area
elevation
population
demonym
languages
temples
setting

TemplateData

TemplateData documentation used by VisualEditor and other tools

TemplateData for Infobox test

No description.

Template parameters

ParameterDescriptionTypeStatus
Namename

name of the settlement

Default
{{PAGENAME}}
Stringoptional
Tagtag

tagline of the settlement

Stringoptional
Settlement Typesettlement_type

city, town, capital, independent

Stringoptional
Imageimage

image of the city

Fileoptional
Captioncaption

caption about the image

Stringoptional
Countrycountry

Country the settlement is

Page nameoptional
Founded infounded_in

date the settlement was founded

Dateoptional
Founded byfounded_by

who founded the settlement

Page nameoptional
Governemntgovernment

government type

Stringoptional
Leader Titleleader_title

title of the leader

Example
Mayor
Stringoptional
Leader Nameleader_name

name of the current leader

Page nameoptional
Areaarea

area of the settlement

Stringoptional
Elevationelevation

elevation of the settlement

Stringoptional
Populationpopulation

population of the settlement

Stringoptional
Demonymdemonym

name of the people from the settlement

Stringoptional
Languageslanguages

major languages spoken in settlement

Stringoptional
Templestemples

major temples in the settlement

Stringoptional
Settingsetting

setting the settlement is in

Page nameoptional