Template:Infobox Session/doc: Difference between revisions

Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Lua|Module:Infobox|Module:Date Stuff}} This template can be used to add at-a-glance information on individual TTRPG sessions. == Usage == {{Parameter names example | name | tag | adventure | campaign | setting | image | caption | irldate | gamedate | characters | npcs | locations | previoussession | nextsession }} <pre style="overflow:auto...")
 
 
(11 intermediate revisions by the same user not shown)
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|Module:Date Stuff}}
{{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 11: Line 9:
| adventure
| adventure
| campaign
| campaign
| setting
| image
| image
| caption
| caption
Line 18: Line 15:
| characters
| characters
| npcs
| npcs
| cities
| locations
| locations
| previoussession
| previoussession
| nextsession
| nextsession
| setting
}}
}}
<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{Infobox Campaign
{{Infobox Session
| name =  
| name           =  
| tag =  
| tag             =  
<!-- Images -->
<!-- Campaign  -->
| image =  
| adventure      =
| caption =  
| campaign        =
<!-- In Game Dates -->
<!--  Images   -->
| setting =  
| image           =  
| start =  
| caption         =  
| end =  
<!--   Dates   -->
| status =  
| irldate        =
<!-- Characters -->
| gamedate        =
| characters =  
<!--    Cast    -->
| bbeg =  
| characters      =  
<!-- First and last/latest session -->
| npcs            =  
| firstsession =
| cities          =  
| lastsession =  
| locations      =  
<!-- Timeline  -->
| previoussession =  
| nextsession    =  
<!-- Setting  -->
| setting        =  
}}
}}
</pre>
</pre>
== Parameters ==
; <code>name</code>: name of the session
; <code>tag</code>: tagline of the session
; <code>adventure</code>: adventure the session belongs to
; <code>campaign</code>: campaign the session belongs to
; <code>image</code>: image representing the session
; <code>caption</code>: caption of the image
; <code>irldate</code>: the IRL date the session was played
; <code>gamedate</code>: the in-game date the session started on
; <code>characters</code>: list of characters that played the session
; <code>npcs</code>: list of notable NPCs from the session
; <code>cities</code>: list of notable cities from the session
; <code>locations</code>: list of notable locations from the session
; <code>previoussession</code>: link to the previous session from an in-game perspective
; <code>nextsession</code>: link to the next session from an in-game perspective
; <code>setting</code>: link to the setting page
==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",
"type": "string",
"default": "{{PAGENAME}}"
},
"tag": {
"label": "Tag",
"description": "tagline of the session",
"type": "string"
},
"adventure": {
"label": "Adventure",
"description": "adventure the session belongs to",
"type": "wiki-page-name"
},
"campaign": {
"label": "Campaign",
"description": "campaign the session belongs to",
"type": "string"
},
"image": {
"label": "Image",
"description": "image representing the session",
"type": "wiki-file-name"
},
"caption": {
"label": "Caption",
"description": "caption of the image",
"type": "string"
},
"irldate": {
"label": "IRL Date",
"description": "the IRL date the session was played",
"example": "{{Convert Date|01-24-1994|IRL}}",
"type": "wiki-template-name"
},
"gamedate": {
"label": "Game Date",
"description": "the in-game date the session started on",
"example": "{{Convert Date|01-24-1994|Eberron}}",
"type": "wiki-template-name"
},
"characters": {
"label": "Character",
"description": "list of characters that played the session",
"example": "{{hlist|[[Player1]]|[[Player2]]}}",
"type": "wiki-template-name"
},
"npcs": {
"label": "NPCs",
"description": "list of notable NPCs from the session",
"example": "{{hlist|[[NPC1]]|[[NPC2]]}}",
"type": "wiki-template-name"
},
"locations": {
"label": "Locations",
"description": "list of notable locations from the session",
"example": "{{hlist|[[Location1]]|[[Location2]]}}",
"type": "wiki-template-name"
},
"previoussession": {
"label": "Previous Session",
"description": "link to the previous session from an in-game perspective",
"type": "wiki-page-name"
},
"nextsession": {
"label": "Next Session",
"description": "link to the next session from an in-game perspective",
"type": "wiki-page-name"
},
"setting": {
"label": "Setting",
"description": "link to the setting page",
"type": "wiki-page-name"
}
}
}
</templatedata>
{{Collapse bottom}}
<includeonly>{{basepage subpage|
<!-- Categories below this line, please; interwikis at Wikidata -->
{{DEFAULTSORT:Infobox Session}}
}}</includeonly>

Navigation menu