Template:Infobox test/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 58: | Line 58: | ||
{{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}} | ||
{{TemplateData header|noheader=1}} | {{TemplateData header|noheader=1}} | ||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"description": "name of the item", | |||
"type": "string", | |||
"default": "{{PAGENAME}}" | |||
}, | |||
"tag": { | |||
"label": "Tag", | |||
"description": "tag line of the item", | |||
"type": "string" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "image of the item", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"caption": { | |||
"label": "Caption", | |||
"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> | |||
{{Collapse bottom}} | {{Collapse bottom}} | ||
Revision as of 09:27, 22 May 2022
This is a documentation subpage for Template:Infobox test. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template can be used to add at-a-glance information on TTRPG campaigns.
Usage
{{{name}}} | |
---|---|
{{{tag}}} | |
{{{image}}} |
{{Infobox Item | name = | tag = | image = | caption = | rarity = | type = | attunement = | cursed = | value = | creator = | location = | firstappears = | lastappears = }}
Parameters
name
tag
image
caption
rarity
type
attunement
cursed
value
creator
location
firstappears
lastappears
TemplateData
TemplateData documentation used by VisualEditor and other tools
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TemplateData for Infobox test No description.
|