Template:Infobox test/doc: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 41: Line 41:


== Parameters ==
== Parameters ==
; <code>name</code>: name of the campaign. If left blank, defaults to page name.
; <code>name</code>:  
; <code>tag</code>: tag for the campaign, if there is one
; <code>tag</code>:  
; <code>image</code>: image for the campaign
; <code>image</code>:  
; <code>caption</code>: caption about the image
; <code>caption</code>:  
; <code>setting</code>: the setting the campaign takes place in, this is also used for the dates to convert number dates to full dates
; <code>rarity</code>:
; <code>start</code>: the in-game day the campaign started
; <code>type</code>:  
; <code>end</code>: if status is "Concluded", the in-game day the campaign ended. Otherwise uses the current date from the current dates template.
; <code>attunement</code>:  
; <code>status</code>: if the campaign is on-going, on-hold, or concluded
; <code>cursed</code>:  
; <code>characters</code>: list of characters, separated by the {{}} template
; <code>value</code>:  
; <code>bbeg</code>: the bbeg, if the campaign had one
; <code>creator</code>:  
; <code>firstsession</code>: name of the first session
; <code>location</code>:  
; <code>lastsession</code>: name of the last session. The header changes based on the status.
; <code>firstappears</code>:  
; <code>lastappears</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}}
{{TemplateData header|noheader=1}}
{{TemplateData header|noheader=1}}
<templatedata>
 
{
"format": "{{_\n| __________________ = _\n}}\n",
"params": {
"name": {
"required": false,
"label": "Name",
"type": "string",
"description": "Name of the campaign. If left blank will default to pagename."
},
"tag": {
"required": false,
"label": "Tag",
"type": "string",
"description": "Tag line for the campaign."
},
"image": {
"required": false,
"label": "Image",
"type": "wiki-page-name",
"description": "Image representing the campaign."
},
"caption": {
"required": false,
"label": "Caption",
"type": "string",
"description": "Caption for the image."
},
"setting": {
"required": true,
"label": "Setting",
"type": "string",
"description": "The setting where the campaign takes place."
},
"start": {
"required": false,
"label": "Start Date",
"type": "date",
"description": "In-game start date of the campaign, in the MM-DD-YYYY form."
},
"end": {
"required": false,
"label": "End Date",
"type": "date",
"description": "In-game end date of the campaign, in the MM-DD-YYYY form. If left blank, will use the Current date template to get the current date in the setting."
},
"status": {
"required": true,
"label": "Status",
"type": "string",
"description": "The status of the campaign; on-going, on-hold, concluded."
},
"characters": {
"required": false,
"label": "Characters",
"type": "string",
"description": "List of all player characters in the campaign."
},
"bbeg": {
"required": false,
"label": "BBEG",
"type": "string",
"description": "The BBEG of the campaign, if there was one."
},
"firstsession": {
"required": false,
"label": "First Session",
"type": "string",
"description": "Title of the first session."
},
"lastsession": {
"required": false,
"label": "Last Session",
"type": "string",
"description": "Title of the latest/last session."
}
}
}
</templatedata>
{{Collapse bottom}}
{{Collapse bottom}}



Revision as of 09:20, 22 May 2022

This template can be used to add at-a-glance information on TTRPG campaigns.

Usage

{{{name}}}
{{{tag}}}
{{{image}}}
{{{caption}}}
{{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