Template:Infobox test/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(28 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 continents.
This template can be used to add at-a-glance information on TTRPG campaigns.
 
== Usage ==
== Usage ==
{{Parameter names example
{{Parameter names example
Line 11: Line 9:
| image
| image
| caption
| caption
| rarity
| size5e
| type
| type5e
| attunement
| tags5e
| cursed
| alignment5e
| value
| deity
| creator
| movement
| location
| vision
| firstappears
| sleep_cycle
| lastappears
| 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 Item
{{Infobox Race
| name =  
| name =  
| tag =  
| tag =  
| image =  
| image =  
| caption =  
| caption =  
| rarity =  
| size5e =  
| type =  
| type5e =  
| attunement =  
| tags5e =  
| cursed =  
| alignment5e =  
| value =  
| deity =  
| creator =  
| movement =  
| location =  
| vision =  
| firstappears =  
| sleep_cycle =  
| lastappears =  
| 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>:  
; <code>name</code>:  
Line 45: Line 73:
; <code>image</code>:  
; <code>image</code>:  
; <code>caption</code>:  
; <code>caption</code>:  
; <code>rarity</code>:  
; <code>race</code>:  
; <code>type</code>:  
; <code>gender</code>:  
; <code>attunement</code>:  
; <code>class</code>:  
; <code>cursed</code>:  
; <code>height</code>:  
; <code>value</code>:  
; <code>weight</code>:  
; <code>creator</code>:  
; <code>alignment</code>:  
; <code>location</code>:  
; <code>faith</code>:  
; <code>firstappears</code>:  
; <code>born</code>:  
; <code>lastappears</code>:  
; <code>died</code>:  
 
; <code>cause_of_death</code>:
; <code>occupation</code>:
; <code>spouse</code>:
; <code>children</code>:
; <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 61: Line 97:
{
{
"params": {
"params": {
"name": {
"name": {},
"label": "Name",
"tag": {},
"description": "name of the item",
"image": {},
"type": "string",
"caption": {},
"default": "{{PAGENAME}}"
"date_founded": {},
},
"active": {},
"tag": {
"allegiance": {},
"label": "Tag",
"type": {},
"description": "tag line of the item",
"role": {},
"type": "string"
"size": {},
},
"headquarters": {},
"image": {
"nicknames": {},
"label": "Image",
"patron": {},
"description": "image of the item",
"members": {},
"type": "wiki-file-name",
"leader_title": {},
"suggested": true
"first_leader": {},
},
"current_leader": {},
"caption": {
"last_leader": {},
"label": "Caption",
"setting": {}
"description": "caption of the image",
"type": "string"
},
"rarity": {
"label": "Rarity",
"description": "rarity of the item",
"example": "Legendary",
"type": "string",
"default": "Common",
"required": true
},
"type": {
"label": "Type",
"description": "the item type",
"example": "Trinket",
"type": "string",
"suggested": true
},
"attunement": {
"label": "Attunement",
"description": "if the item requires attunement, input yes, otherwise leave blank",
"type": "string"
},
"cursed": {
"label": "Cursed",
"description": "if the item is cursed input yes, otherwise leave blank",
"type": "string"
},
"value": {
"label": "Value",
"description": "the price the item goes for",
"type": "string",
"suggested": true
},
"creator": {
"label": "Creator",
"description": "who created the item",
"type": "string"
},
"location": {
"label": "Location",
"description": "for unique items, where is it currently if known",
"type": "string"
},
"firstappears": {
"label": "First Appearance",
"description": "what session did the item first appear in",
"type": "string"
},
"lastappears": {
"label": "Latest Appearance",
"description": "the latest session the item appeared in, if different from first appearance"
}
}
}
}
}
</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 test}}
}}</includeonly>
}}</includeonly>