Template:Infobox Adventure/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
{{Lua|Module:Infobox|Module:Date Stuff}} | {{Lua|Module:Infobox|Module:Date Stuff}} | ||
This template can be used to add at-a-glance information on TTRPG adventures and one-shots. | This template can be used to add at-a-glance information on TTRPG adventures and one-shots. | ||
== Usage == | == Usage == | ||
{{Parameter names example | {{Parameter names example | ||
Line 10: | Line 9: | ||
| image | | image | ||
| caption | | caption | ||
| start | | start | ||
| current_end | |||
| end | | end | ||
| characters | | characters | ||
| npcs | |||
| bbeg | | bbeg | ||
| firstsession | | firstsession | ||
| latest_last | |||
| lastsession | | lastsession | ||
| setting | |||
}} | }} | ||
<pre style="overflow:auto;"> | <pre style="overflow:auto;"> | ||
{{Infobox Adventure | {{Infobox Adventure | ||
| name = | | name = | ||
| tag = | | tag = | ||
<!-- Images --> | <!-- Images --> | ||
| image = | | image = | ||
| caption = | | caption = | ||
<!-- | <!-- Dates --> | ||
| | | start = | ||
| | | current_end = | ||
| end = | |||
| end = | <!-- Cast --> | ||
<!-- | | characters = | ||
| characters = | | bbeg = | ||
| bbeg = | | npcs = | ||
| npcs = | <!--Timeline --> | ||
<!-- | |||
| firstsession = | | firstsession = | ||
| lastsession = | | latest_last = | ||
| lastsession = | |||
<!-- Setting --> | |||
| setting = | |||
}} | }} | ||
</pre> | </pre> | ||
== Parameters == | == Parameters == | ||
; <code>name</code>: name of the | ; <code>name</code>: name of the adventure | ||
; <code>tag</code>: | ; <code>tag</code>: tagline of the adventure | ||
; <code>image</code>: image | ; <code>image</code>: image that represents the adventure | ||
; <code>caption</code>: caption about the image | ; <code>caption</code>: caption about the image | ||
; <code> | ; <code>start</code>: in-game date the adventure started | ||
; <code> | ; <code>current_end</code>: depending on if the adventure is concluded, on-going, or on-hold | ||
; <code> | ; <code>end</code>: in-game date the adventure ended/currently is on | ||
; <code> | ; <code>characters</code>: list of all characters that were part of the adventure | ||
; <code> | ; <code>npcs</code>: list of notable NPCs from the adventure | ||
; <code>bbeg</code>: the | ; <code>bbeg</code>: big bad evil guy of the adventure | ||
; <code> | ; <code>firstsession</code>: link to the first session of the adventure | ||
; <code> | ; <code>latest_last</code>: depending on if the adventure is concluded, on-going, or on-hold | ||
; <code>lastsession</code>: | ; <code>lastsession</code>: link to the latest/last session of the adventure | ||
==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 62: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"name": { | "name": { | ||
"label": "Name", | "label": "Name", | ||
"description": "name of the adventure", | |||
"type": "string", | "type": "string", | ||
" | "required": true | ||
}, | }, | ||
"tag": { | "tag": { | ||
"label": "Tag", | "label": "Tag", | ||
" | "description": "tagline of the adventure", | ||
" | "type": "string" | ||
}, | }, | ||
"image": { | "image": { | ||
"label": "Image", | "label": "Image", | ||
" | "description": "image that represents the adventure", | ||
" | "type": "wiki-file-name" | ||
}, | }, | ||
"caption": { | "caption": { | ||
"label": "Caption", | "label": "Caption", | ||
" | "description": "caption about the image", | ||
" | "type": "string" | ||
}, | }, | ||
" | "start": { | ||
" | "label": "Start", | ||
" | "description": "in-game date the adventure started", | ||
" | "example": "{{Convert Date|01-24-1994|Eberron}}", | ||
" | "type": "wiki-template-name" | ||
}, | }, | ||
" | "current_end": { | ||
"label": "Current or End", | |||
"label": " | "description": "depending on if the adventure is concluded, on-going, or on-hold", | ||
"type": "string" | |||
"description": " | |||
"type": " | |||
}, | }, | ||
"end": { | "end": { | ||
" | "label": "End", | ||
" | "description": "in-game date the adventure ended/currently is on", | ||
" | "example": "{{Convert Date|01-24-1994|Eberron}}", | ||
" | "type": "wiki-template-name" | ||
}, | }, | ||
"characters": { | "characters": { | ||
"label": "Characters", | "label": "Characters", | ||
"type": " | "description": "list of all characters that were part of the adventure", | ||
"description": " | "example": "{{hlist|[[Player1]]|[[Player2]]}}", | ||
"type": "wiki-template-name" | |||
}, | |||
"npcs": { | |||
"label": "NPCs", | |||
"description": "list of notable NPCs from the adventure", | |||
"example": "{{hlist|[[NPC1]]|[[NPC2]]|[[NPC3]]}}", | |||
"type": "wiki-template-name" | |||
}, | }, | ||
"bbeg": { | "bbeg": { | ||
"label": "BBEG", | "label": "BBEG", | ||
"description": "big bad evil guy of the adventure", | |||
"description": " | "type": "wiki-page-name" | ||
"type": " | |||
}, | }, | ||
"firstsession": { | "firstsession": { | ||
"label": "First Session", | "label": "First Session", | ||
"type": " | "description": "link to the first session of the adventure", | ||
"description": " | "type": "wiki-page-name" | ||
}, | |||
"latest_last": { | |||
"label": "Latest or Last", | |||
"description": "depending on if the adventure is concluded, on-going, or on-hold", | |||
"type": "string" | |||
}, | }, | ||
"lastsession": { | "lastsession": { | ||
"label": "Last Session", | "label": "Last Session", | ||
" | "description": "link to the latest/last session of the adventure", | ||
" | "type": "wiki-page-name" | ||
} | } | ||
} | } | ||
Line 145: | Line 137: | ||
</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 | {{DEFAULTSORT:Infobox Adventure}} | ||
}}</includeonly> | }}</includeonly> |
Latest revision as of 10:36, 30 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}}} | |
Dates | |
Start Date | {{{start}}} |
{{{current_end}}} Date | {{{end}}} |
Cast | |
Characters | {{{characters}}} |
Notable NPCs | {{{npcs}}} |
BBEG | {{{bbeg}}} |
Timeline | |
First Session | {{{firstsession}}} |
{{{latest_last}}} Session | {{{lastsession}}} |
Setting | {{{setting}}} |
{{Infobox Adventure | name = | tag = <!-- Images --> | image = | caption = <!-- Dates --> | start = | current_end = | end = <!-- Cast --> | characters = | bbeg = | npcs = <!--Timeline --> | firstsession = | latest_last = | lastsession = <!-- Setting --> | setting = }}
Parameters
name
- name of the adventure
tag
- tagline of the adventure
image
- image that represents the adventure
caption
- caption about the image
start
- in-game date the adventure started
current_end
- depending on if the adventure is concluded, on-going, or on-hold
end
- in-game date the adventure ended/currently is on
characters
- list of all characters that were part of the adventure
npcs
- list of notable NPCs from the adventure
bbeg
- big bad evil guy of the adventure
firstsession
- link to the first session of the adventure
latest_last
- depending on if the adventure is concluded, on-going, or on-hold
lastsession
- link to the latest/last session of the adventure
TemplateData
TemplateData documentation used by VisualEditor and other tools
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TemplateData for Infobox Adventure No description.
|