4,595
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- 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 TTRPG campaigns. | This template can be used to add at-a-glance information on TTRPG campaigns. | ||
== Usage == | == Usage == | ||
{{Parameter names example | {{Parameter names example | ||
Line 22: | Line 20: | ||
|lastsession | |lastsession | ||
}} | }} | ||
<pre style="overflow:auto;"> | <pre style="overflow:auto;"> | ||
{{Infobox Campaign | {{Infobox Campaign | ||
Line 41: | Line 38: | ||
}} | }} | ||
</pre> | </pre> | ||
== Parameters == | == Parameters == | ||
; <code>name</code>: name of the campaign | ; <code>name</code>: name of the campaign | ||
; <code>tag</code>: | ; <code>tag</code>: tagline of the campaign | ||
; <code>image</code>: image | ; <code>image</code>: image representing the campaign | ||
; <code>caption</code>: caption about the image | ; <code>caption</code>: caption about the image | ||
; <code>setting</code>: | ; <code>setting</code>: setting the campaign takes place in | ||
; <code>start</code>: the in-game | ; <code>start</code>: the in-game date the campaign started | ||
; <code> | ; <code>current_end</code>: if the campaign has concluded, use end, otherwise use current | ||
; <code>status</code>: if the campaign is on-going, on-hold | ; <code>end</code>: in-game date the campaign ended | ||
; <code>characters</code>: list of characters | ; <code>status</code>: if the campaign is concluded, on-going, or on-hold | ||
; <code>bbeg</code>: the | ; <code>characters</code>: list of all player characters that appeared in the campaign | ||
; <code>firstsession</code>: | ; <code>bbeg</code>: the big bad evil guy of the campaign | ||
; <code>lastsession</code>: | ; <code>firstsession</code>: link to the first session page of this campaign | ||
; <code>latest_last</code>: if the campaign has concluded, use last, otherwise use latest | |||
; <code>lastsession</code>: link to the latest/last session page of this campaign | |||
==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 61: | Line 58: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"name": { | "name": { | ||
"label": "Name", | "label": "Name", | ||
"description": "name of the campaign", | |||
"type": "string", | "type": "string", | ||
" | "default": "{{PAGENAME}}" | ||
}, | }, | ||
"tag": { | "tag": { | ||
"label": "Tag", | "label": "Tag", | ||
" | "description": "tagline of the campaign", | ||
" | "type": "string" | ||
}, | }, | ||
"image": { | "image": { | ||
"label": "Image", | "label": "Image", | ||
" | "description": "image representing the campaign", | ||
" | "type": "wiki-file-name" | ||
}, | }, | ||
"caption": { | "caption": { | ||
"label": "Caption", | "label": "Caption", | ||
" | "description": "caption about the image", | ||
" | "type": "string" | ||
}, | }, | ||
"setting": { | "setting": { | ||
"label": "Setting", | "label": "Setting", | ||
" | "description": "setting the campaign takes place in", | ||
" | "type": "wiki-page-name" | ||
}, | }, | ||
"start": { | "start": { | ||
" | "label": "Start", | ||
" | "description": "the in-game date the campaign started", | ||
"type": " | "example": "{{Convert Date|01-24-1994|Eberron}}", | ||
"description": " | "type": "wiki-template-name" | ||
}, | |||
"current_end": { | |||
"label": "Current or End", | |||
"description": "if the campaign has concluded, use end, otherwise use current", | |||
"type": "string" | |||
}, | }, | ||
"end": { | "end": { | ||
" | "label": "End", | ||
" | "description": "in-game date the campaign ended", | ||
" | "example": "{{Convert Date|01-24-1994|Eberron}}", | ||
" | "type": "wiki-template-name" | ||
}, | }, | ||
"status": { | "status": { | ||
"label": "Status", | "label": "Status", | ||
"description": "if the campaign is concluded, on-going, or on-hold", | |||
"description": " | "type": "string" | ||
}, | }, | ||
"characters": { | "characters": { | ||
"label": "Characters", | "label": "Characters", | ||
" | "description": "list of all player characters that appeared in the campaign", | ||
" | "example": "{{hlist|[[Player1]]|[[Player2]]|[[Player3]]|[[Player4]]}}", | ||
"type": "wiki-template-name" | |||
}, | }, | ||
"bbeg": { | "bbeg": { | ||
"label": "BBEG", | "label": "BBEG", | ||
" | "description": "the big bad evil guy of the campaign", | ||
" | "example": "[[BBEG1]]", | ||
"type": "wiki-page-name" | |||
}, | }, | ||
"firstsession": { | "firstsession": { | ||
"label": "First Session", | "label": "First Session", | ||
"type": " | "description": "link to the first session page of this campaign", | ||
"description": " | "type": "wiki-page-name" | ||
}, | |||
"latest_last": { | |||
"label": "Latest or Last", | |||
"description": "if the campaign has concluded, use last, otherwise use latest", | |||
"type": "string" | |||
}, | }, | ||
"lastsession": { | "lastsession": { | ||
"label": "Last Session", | "label": "Last Session", | ||
" | "description": "link to the latest/last session page of this campaign", | ||
" | "type": "wiki-page-name" | ||
} | } | ||
} | } | ||
Line 139: | Line 138: | ||
</templatedata> | </templatedata> | ||
{{Collapse bottom}} | {{Collapse bottom}} | ||
<includeonly>{{basepage subpage| | <includeonly>{{basepage subpage| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
{{DEFAULTSORT:Infobox Campaign}} | {{DEFAULTSORT:Infobox Campaign}} | ||
}}</includeonly> | }}</includeonly> |