Template:Infobox Session/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 61: | Line 61: | ||
; <code>previoussession</code>: name of the preceding session | ; <code>previoussession</code>: name of the preceding session | ||
; <code>nextsession</code>: name of the following session | ; <code>nextsession</code>: name of the following session | ||
==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> | |||
{ | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"description": "Name of the session. If left blank will default to pagename", | |||
"type": "string", | |||
"autovalue": "{{PAGENAME}}" | |||
}, | |||
"tag": { | |||
"label": "Tag", | |||
"description": "Tag line for the session", | |||
"type": "string", | |||
"autovalue": "" | |||
}, | |||
"adventure": { | |||
"label": "Adventure", | |||
"description": "the adventure the session is part of", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"setting": { | |||
"label": "Setting", | |||
"description": "the setting the session takes place in", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"campaign": { | |||
"label": "Campaign", | |||
"description": "the campaign the session is part of", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "relevant image of the session", | |||
"type": "wiki-file-name" | |||
}, | |||
"caption": { | |||
"label": "Caption", | |||
"description": "caption for the image", | |||
"type": "string" | |||
}, | |||
"irldate": { | |||
"label": "Real Life Date", | |||
"description": "the real life date the session was played", | |||
"example": "12-23-3456", | |||
"type": "date" | |||
}, | |||
"gamedate": { | |||
"label": "In-Game Date", | |||
"description": "the in-game date the session started on", | |||
"example": "01-02-034", | |||
"type": "date" | |||
}, | |||
"characters": { | |||
"label": "Player Characters", | |||
"description": "list of all PCs that were in the session", | |||
"type": "string" | |||
}, | |||
"npcs": { | |||
"label": "Notable NPCs", | |||
"description": "list of notable NPCs from the session", | |||
"type": "string" | |||
}, | |||
"locations": { | |||
"label": "Notable Locations", | |||
"description": "list of notable locations from the session", | |||
"type": "string" | |||
}, | |||
"previoussession": { | |||
"label": "Previous Session", | |||
"description": "name of the previous session", | |||
"type": "string" | |||
}, | |||
"nextsession": { | |||
"label": "Next Session", | |||
"description": "name of the next session", | |||
"type": "string" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"name", | |||
"tag", | |||
"adventure", | |||
"campaign", | |||
"setting", | |||
"image", | |||
"caption", | |||
"irldate", | |||
"gamedate", | |||
"characters", | |||
"npcs", | |||
"locations", | |||
"previoussession", | |||
"nextsession" | |||
] | |||
} | |||
</templatedata> |
Revision as of 20:03, 21 May 2022
This is a documentation subpage for Template:Infobox Session. 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 individual TTRPG sessions.
Usage
{{{name}}} | |
---|---|
{{{tag}}} | |
{{{adventure}}} - {{{campaign}}} | |
{{{image}}} | |
Dates | |
Date Played | {{{irldate}}} |
Game Date | {{{gamedate}}} |
Cast | |
Characters | {{{characters}}} |
Notable NPCs | {{{npcs}}} |
Notable Locations | {{{locations}}} |
Timeline | |
Previous Session | {{{previoussession}}} |
Next Session | {{{nextsession}}} |
Setting | {{{setting}}} |
{{Infobox Campaign | name = | tag = | adventure = | campaign = | setting = <!-- Images --> | image = | caption = <!-- Game Dates --> | irldate = | gamedate = <!-- Characters, NPCs, and Locations --> | characters = | npcs = | locations = <!-- Previous and Next session --> | previoussession = | nextsession = }}
Parameters
name
- name of the session. If left blank, defaults to page name.
tag
- tag for the session, if there is one
adventure
- what adventure the session is a part of
campaign
- what campaign the session is a part of
setting
- the setting the session takes place in, this is also used for the dates to convert number dates to full dates
image
- image for the session
caption
- caption about the image
irldate
- the IRL date the session was played
gamedate
- the starting in-game date of the session
characters
- list of characters, separated by the {{}} template
npcs
- list of notable npcs in the session
locations
- list of notable locations visited in the session
previoussession
- name of the preceding session
nextsession
- name of the following session
TemplateData
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TemplateData for Infobox Session No description.
|