Template:Infobox Session/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
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 on individual TTRPG sessions. | This template can be used to add at-a-glance information on individual TTRPG sessions. | ||
== Usage == | == Usage == | ||
{{Parameter names example | {{Parameter names example | ||
Line 22: | Line 20: | ||
| setting | | setting | ||
}} | }} | ||
<pre style="overflow:auto;"> | <pre style="overflow:auto;"> | ||
{{Infobox Session | {{Infobox Session | ||
Line 41: | Line 38: | ||
}} | }} | ||
</pre> | </pre> | ||
== Parameters == | == Parameters == | ||
; <code>name</code>: name of the session | ; <code>name</code>: name of the session | ||
; <code>tag</code>: | ; <code>tag</code>: tagline of the session | ||
; <code>adventure</code>: | ; <code>adventure</code>: adventure the session belongs to | ||
; <code>campaign</code>: | ; <code>campaign</code>: campaign the session belongs to | ||
; <code>image</code>: image representing the session | |||
; <code>image</code>: image | ; <code>caption</code>: caption of the image | ||
; <code>caption</code>: caption | |||
; <code>irldate</code>: the IRL date the session was played | ; <code>irldate</code>: the IRL date the session was played | ||
; <code>gamedate</code>: the | ; <code>gamedate</code>: the in-game date the session started on | ||
; <code>characters</code>: list of characters | ; <code>characters</code>: list of characters that played the session | ||
; <code>npcs</code>: list of notable | ; <code>npcs</code>: list of notable NPCs from the session | ||
; <code>locations</code>: list of notable locations | ; <code>locations</code>: list of notable locations from the session | ||
; <code>previoussession</code>: | ; <code>previoussession</code>: link to the previous session from an in-game perspective | ||
; <code>nextsession</code>: | ; <code>nextsession</code>: link to the next session from an in-game perspective | ||
; <code>setting</code>: link to the setting page | |||
==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 65: | Line 61: | ||
"name": { | "name": { | ||
"label": "Name", | "label": "Name", | ||
"description": " | "description": "name of the session", | ||
"type": "string", | "type": "string", | ||
" | "default": "{{PAGENAME}}" | ||
}, | }, | ||
"tag": { | "tag": { | ||
"label": "Tag", | "label": "Tag", | ||
"description": " | "description": "tagline of the session", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"adventure": { | "adventure": { | ||
"label": "Adventure", | "label": "Adventure", | ||
"description": " | "description": "adventure the session belongs to", | ||
"type": "wiki-page-name" | |||
"type": " | |||
}, | }, | ||
"campaign": { | "campaign": { | ||
"label": "Campaign", | "label": "Campaign", | ||
"description": " | "description": "campaign the session belongs to", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"image": { | "image": { | ||
"label": "Image", | "label": "Image", | ||
"description": " | "description": "image representing the session", | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
"caption": { | "caption": { | ||
"label": "Caption", | "label": "Caption", | ||
"description": "caption | "description": "caption of the image", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"irldate": { | "irldate": { | ||
"label": " | "label": "IRL Date", | ||
"description": "the | "description": "the IRL date the session was played", | ||
"example": " | "example": "{{Convert Date|01-24-1994|IRL}}", | ||
"type": " | "type": "wiki-template-name" | ||
}, | }, | ||
"gamedate": { | "gamedate": { | ||
"label": " | "label": "Game Date", | ||
"description": "the in-game date the session started on", | "description": "the in-game date the session started on", | ||
"example": "01- | "example": "{{Convert Date|01-24-1994|Eberron}}", | ||
"type": " | "type": "wiki-template-name" | ||
}, | }, | ||
"characters": { | "characters": { | ||
"label": " | "label": "Character", | ||
"description": "list of | "description": "list of characters that played the session", | ||
"type": " | "example": "{{hlist|[[Player1]]|[[Player2]]}}", | ||
"type": "wiki-template-name" | |||
}, | }, | ||
"npcs": { | "npcs": { | ||
"label": " | "label": "NPCs", | ||
"description": "list of notable NPCs from the session", | "description": "list of notable NPCs from the session", | ||
"type": " | "example": "{{hlist|[[NPC1]]|[[NPC2]]}}", | ||
"type": "wiki-template-name" | |||
}, | }, | ||
"locations": { | "locations": { | ||
"label": " | "label": "Locations", | ||
"description": "list of notable locations from the session", | "description": "list of notable locations from the session", | ||
"type": " | "example": "{{hlist|[[Location1]]|[[Location2]]}}", | ||
"type": "wiki-template-name" | |||
}, | }, | ||
"previoussession": { | "previoussession": { | ||
"label": "Previous Session", | "label": "Previous Session", | ||
"description": " | "description": "link to the previous session from an in-game perspective", | ||
"type": " | "type": "wiki-page-name" | ||
}, | }, | ||
"nextsession": { | "nextsession": { | ||
"label": "Next Session", | "label": "Next Session", | ||
"description": " | "description": "link to the next session from an in-game perspective", | ||
"type": " | "type": "wiki-page-name" | ||
}, | |||
"setting": { | |||
"label": "Setting", | |||
"description": "link to the setting page", | |||
"type": "wiki-page-name" | |||
} | } | ||
} | } | ||
} | } | ||
</templatedata> | </templatedata> |
Revision as of 17:19, 25 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 Session | name = | tag = | adventure = | campaign = | image = | caption = | irldate = | gamedate = | characters = | npcs = | locations = | previoussession = | nextsession = | setting = }}
Parameters
name
- name of the session
tag
- tagline of the session
adventure
- adventure the session belongs to
campaign
- campaign the session belongs to
image
- image representing the session
caption
- caption of the image
irldate
- the IRL date the session was played
gamedate
- the in-game date the session started on
characters
- list of characters that played the session
npcs
- list of notable NPCs from the session
locations
- list of notable locations from the session
previoussession
- link to the previous session from an in-game perspective
nextsession
- link to the next session from an in-game perspective
setting
- link to the setting page
TemplateData
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TemplateData for Infobox Session No description.
|