Template:Infobox Session/doc: Difference between revisions

Jump to navigation Jump to search
no edit summary
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. If left blank, defaults to page name.
; <code>name</code>: name of the session
; <code>tag</code>: tag for the session, if there is one
; <code>tag</code>: tagline of the session
; <code>adventure</code>: what adventure the session is a part of
; <code>adventure</code>: adventure the session belongs to
; <code>campaign</code>: what campaign the session is a part of
; <code>campaign</code>: campaign the session belongs to
; <code>setting</code>: the setting the session takes place in, this is also used for the dates to convert number dates to full dates
; <code>image</code>: image representing the session
; <code>image</code>: image for the session
; <code>caption</code>: caption of the image
; <code>caption</code>: caption about the image
; <code>irldate</code>: the IRL date the session was played
; <code>irldate</code>: the IRL date the session was played
; <code>gamedate</code>: the starting in-game date of the session
; <code>gamedate</code>: the in-game date the session started on
; <code>characters</code>: list of characters, separated by the {{}} template
; <code>characters</code>: list of characters that played the session
; <code>npcs</code>: list of notable npcs in the session
; <code>npcs</code>: list of notable NPCs from the session
; <code>locations</code>: list of notable locations visited in the session
; <code>locations</code>: list of notable locations from the session
; <code>previoussession</code>: name of the preceding session
; <code>previoussession</code>: link to the previous session from an in-game perspective
; <code>nextsession</code>: name of the following session
; <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": "Name of the session. If left blank will default to pagename",
"description": "name of the session",
"type": "string",
"type": "string",
"autovalue": "{{PAGENAME}}"
"default": "{{PAGENAME}}"
},
},
"tag": {
"tag": {
"label": "Tag",
"label": "Tag",
"description": "Tag line for the session",
"description": "tagline of the session",
"type": "string"
"type": "string"
},
},
"adventure": {
"adventure": {
"label": "Adventure",
"label": "Adventure",
"description": "the adventure the session is part of",
"description": "adventure the session belongs to",
"type": "string",
"type": "wiki-page-name"
"suggested": true
},
"setting": {
"label": "Setting",
"description": "the setting the session takes place in",
"type": "string",
"suggested": true
},
},
"campaign": {
"campaign": {
"label": "Campaign",
"label": "Campaign",
"description": "the campaign the session is part of",
"description": "campaign the session belongs to",
"type": "string",
"type": "string"
"suggested": true
},
},
"image": {
"image": {
"label": "Image",
"label": "Image",
"description": "relevant image of the session",
"description": "image representing the session",
"type": "wiki-file-name"
"type": "wiki-file-name"
},
},
"caption": {
"caption": {
"label": "Caption",
"label": "Caption",
"description": "caption for the image",
"description": "caption of the image",
"type": "string"
"type": "string"
},
},
"irldate": {
"irldate": {
"label": "Real Life Date",
"label": "IRL Date",
"description": "the real life date the session was played",
"description": "the IRL date the session was played",
"example": "12-23-3456",
"example": "{{Convert Date|01-24-1994|IRL}}",
"type": "date"
"type": "wiki-template-name"
},
},
"gamedate": {
"gamedate": {
"label": "In-Game Date",
"label": "Game Date",
"description": "the in-game date the session started on",
"description": "the in-game date the session started on",
"example": "01-02-034",
"example": "{{Convert Date|01-24-1994|Eberron}}",
"type": "date"
"type": "wiki-template-name"
},
},
"characters": {
"characters": {
"label": "Player Characters",
"label": "Character",
"description": "list of all PCs that were in the session",
"description": "list of characters that played the session",
"type": "string"
"example": "{{hlist|[[Player1]]|[[Player2]]}}",
"type": "wiki-template-name"
},
},
"npcs": {
"npcs": {
"label": "Notable NPCs",
"label": "NPCs",
"description": "list of notable NPCs from the session",
"description": "list of notable NPCs from the session",
"type": "string"
"example": "{{hlist|[[NPC1]]|[[NPC2]]}}",
"type": "wiki-template-name"
},
},
"locations": {
"locations": {
"label": "Notable Locations",
"label": "Locations",
"description": "list of notable locations from the session",
"description": "list of notable locations from the session",
"type": "string"
"example": "{{hlist|[[Location1]]|[[Location2]]}}",
"type": "wiki-template-name"
},
},
"previoussession": {
"previoussession": {
"label": "Previous Session",
"label": "Previous Session",
"description": "name of the previous session",
"description": "link to the previous session from an in-game perspective",
"type": "string"
"type": "wiki-page-name"
},
},
"nextsession": {
"nextsession": {
"label": "Next Session",
"label": "Next Session",
"description": "name of the next session",
"description": "link to the next session from an in-game perspective",
"type": "string"
"type": "wiki-page-name"
},
"setting": {
"label": "Setting",
"description": "link to the setting page",
"type": "wiki-page-name"
}
}
},
}
"paramOrder": [
"name",
"tag",
"adventure",
"campaign",
"setting",
"image",
"caption",
"irldate",
"gamedate",
"characters",
"npcs",
"locations",
"previoussession",
"nextsession"
]
}
}
</templatedata>
</templatedata>

Navigation menu