Template:Infobox Adventure/doc: Difference between revisions
No edit summary |
No edit summary |
||
| Line 55: | Line 55: | ||
; <code>firstsession</code>: name of the first session | ; <code>firstsession</code>: name of the first session | ||
; <code>lastsession</code>: name of the last session. The header changes based on the status. | ; <code>lastsession</code>: name of the last session. The header changes based on the status. | ||
==TemplateData== | |||
{{Collapse top|title=[[Stiles.casa Wiki:TemplateData|TemplateData]] documentation used by [[Stiles.casa Wiki:VisualEditor|VisualEditor]] and other tools}} | |||
{{TemplateData header|noheader=1}} | |||
<templatedata> | |||
{ | |||
"format": "{{_\n| __________________ = _\n}}\n", | |||
"params": { | |||
"name": { | |||
"required": false, | |||
"label": "Name", | |||
"type": "string", | |||
"description": "Name of the adventure. If left blank will default to pagename." | |||
}, | |||
"tag": { | |||
"required": false, | |||
"label": "Tag", | |||
"type": "string", | |||
"description": "Tag line for the adventure." | |||
}, | |||
"image": { | |||
"required": false, | |||
"label": "Image", | |||
"type": "wiki-page-name", | |||
"description": "Image representing the adventure." | |||
}, | |||
"caption": { | |||
"required": false, | |||
"label": "Caption", | |||
"type": "string", | |||
"description": "Caption for the image." | |||
}, | |||
"setting": { | |||
"required": true, | |||
"label": "Setting", | |||
"type": "string", | |||
"description": "The setting where the adventure takes place." | |||
}, | |||
"status": { | |||
"required": true, | |||
"label": "Status", | |||
"type": "string", | |||
"description": "The status of the adventure; on-going, on-hold, concluded." | |||
}, | |||
"start": { | |||
"required": false, | |||
"label": "Start Date", | |||
"type": "date", | |||
"description": "In-game start date of the adventure, in the MM-DD-YYYY form." | |||
}, | |||
"end": { | |||
"required": false, | |||
"label": "End Date", | |||
"type": "date", | |||
"description": "In-game end date of the adventure, in the MM-DD-YYYY form. If left blank, will use the Current date template to get the current date in the setting." | |||
}, | |||
"characters": { | |||
"required": false, | |||
"label": "Characters", | |||
"type": "string", | |||
"description": "List of all player characters in the adventure." | |||
}, | |||
"bbeg": { | |||
"required": false, | |||
"label": "BBEG", | |||
"type": "string", | |||
"description": "The BBEG of the adventure, if there was one." | |||
}, | |||
"npcs": { | |||
"required": false, | |||
"label": "Notable NPCs", | |||
"type": "string", | |||
"description": "A list of notable NPCs." | |||
}, | |||
"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}} | |||
<includeonly>{{basepage subpage| | |||
<!-- Categories below this line, please; interwikis at Wikidata --> | |||
{{DEFAULTSORT:Infobox adventure}} | |||
[[Category:All Templates]] | |||
[[Category:Infobox Templates]] | |||
}}</includeonly> | |||
Revision as of 14:08, 21 May 2022
| This is a documentation subpage for Template:Infobox Adventure. 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 adventures and one-shots.
Usage
| {{{name}}} | |
|---|---|
| {{{tag}}} | |
| {{{image}}} {{{caption}}} | |
| Dates | |
| Start Date | {{{start}}} |
| Date | {{{end}}} |
| Cast | |
| Characters | {{{characters}}} |
| Notable NPCs | {{{npcs}}} |
| BBEG | {{{bbeg}}} |
| Timeline | |
| First Session | {{{firstsession}}} |
| Session | {{{lastsession}}} |
| Setting | {{{setting}}} |
{{Infobox Adventure
| name =
| tag =
<!-- Images -->
| image =
| caption =
<!-- In Game Dates -->
| setting =
| status =
| start =
| end =
<!-- Characters -->
| characters =
| bbeg =
| npcs =
<!-- First and last/latest session -->
| firstsession =
| lastsession =
}}
Parameters
name- name of the campaign. If left blank, defaults to page name.
tag- tag for the campaign, if there is one
image- image for the campaign
caption- caption about the image
setting- the setting the campaign takes place in, this is also used for the dates to convert number dates to full dates
status- if the campaign is on-going, on-hold, or concluded
start- the in-game day the campaign started
end- if status is "Concluded", the in-game day the campaign ended. Otherwise uses the current date from the current dates template.
characters- list of characters, separated by the {{}} template
bbeg- the bbeg, if the campaign had one
npcs- list of notable NPCs
firstsession- name of the first session
lastsession- name of the last session. The header changes based on the status.
TemplateData
TemplateData documentation used by VisualEditor and other tools
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
TemplateData for Infobox Adventure No description.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||