Template:Infobox test/doc: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
 
(32 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 for continents.
This template can be used to add at-a-glance information on TTRPG campaigns.
 
== Usage ==
== Usage ==
{{Parameter names example
{{Parameter names example
Line 11: Line 9:
| image
| image
| caption
| caption
| rarity
| size5e
| type
| type5e
| attunement
| tags5e
| cursed
| alignment5e
| value
| deity
| creator
| movement
| location
| vision
| firstappears
| sleep_cycle
| lastappears
| diet
| lifespan
| homeland
| intelligence
| language
| subraces
| favored_climate
| favored_terrain
| height
| wingspan
| weight
| skin_color
| hair_color
| feathers
| eye_color
| build
| distinctions
}}
}}
<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{Infobox Campaign
{{Infobox Race
| name =  
| name =  
| tag =  
| tag =  
| image =  
| image =  
| caption =  
| caption =  
| setting =  
| size5e =  
| start =  
| type5e =  
| end =  
| tags5e =  
| status =  
| alignment5e =  
| characters =  
| deity =  
| bbeg =  
| movement =  
| firstsession =  
| vision =  
| lastsession =  
| sleep_cycle =
| diet =
| lifespan =
| homeland =
| intelligence =
| language =
| subraces =
| favored_climate =
| favored_terrain =
| height =
| wingspan =
| weight =
| skin_color =
| hair_color =
| feathers =
| eye_color =
| build =
| distinctions =  
}}
}}
</pre>
</pre>
== Parameters ==
== Parameters ==
; <code>name</code>: name of the campaign. If left blank, defaults to page name.
; <code>name</code>:  
; <code>tag</code>: tag for the campaign, if there is one
; <code>tag</code>:  
; <code>image</code>: image for the campaign
; <code>image</code>:  
; <code>caption</code>: caption about the image
; <code>caption</code>:  
; <code>setting</code>: the setting the campaign takes place in, this is also used for the dates to convert number dates to full dates
; <code>race</code>:
; <code>start</code>: the in-game day the campaign started
; <code>gender</code>:
; <code>end</code>: if status is "Concluded", the in-game day the campaign ended. Otherwise uses the current date from the current dates template.
; <code>class</code>:
; <code>status</code>: if the campaign is on-going, on-hold, or concluded
; <code>height</code>:
; <code>characters</code>: list of characters, separated by the {{}} template
; <code>weight</code>:
; <code>bbeg</code>: the bbeg, if the campaign had one
; <code>alignment</code>:
; <code>firstsession</code>: name of the first session
; <code>faith</code>:
; <code>lastsession</code>: name of the last session. The header changes based on the status.
; <code>born</code>:  
 
; <code>died</code>:  
; <code>cause_of_death</code>:  
; <code>occupation</code>:  
; <code>spouse</code>:  
; <code>children</code>:  
; <code>campaign</code>:
; <code>firstsession</code>:  
; <code>lasesession</code>:
; <code>setting</code>:  
; <code>character_sheet</code>:
==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 58: Line 96:
<templatedata>
<templatedata>
{
{
"format": "{{_\n| __________________ = _\n}}\n",
"params": {
"params": {
"name": {
"name": {},
"required": false,
"tag": {},
"label": "Name",
"image": {},
"type": "string",
"caption": {},
"description": "Name of the campaign. If left blank will default to pagename."
"date_founded": {},
},
"active": {},
"tag": {
"allegiance": {},
"required": false,
"type": {},
"label": "Tag",
"role": {},
"type": "string",
"size": {},
"description": "Tag line for the campaign."
"headquarters": {},
},
"nicknames": {},
"image": {
"patron": {},
"required": false,
"members": {},
"label": "Image",
"leader_title": {},
"type": "wiki-page-name",
"first_leader": {},
"description": "Image representing the campaign."
"current_leader": {},
},
"last_leader": {},
"caption": {
"setting": {}
"required": false,
"label": "Caption",
"type": "string",
"description": "Caption for the image."
},
"setting": {
"required": true,
"label": "Setting",
"type": "string",
"description": "The setting where the campaign takes place."
},
"start": {
"required": false,
"label": "Start Date",
"type": "date",
"description": "In-game start date of the campaign, in the MM-DD-YYYY form."
},
"end": {
"required": false,
"label": "End Date",
"type": "date",
"description": "In-game end date of the campaign, in the MM-DD-YYYY form. If left blank, will use the Current date template to get the current date in the setting."
},
"status": {
"required": true,
"label": "Status",
"type": "string",
"description": "The status of the campaign; on-going, on-hold, concluded."
},
"characters": {
"required": false,
"label": "Characters",
"type": "string",
"description": "List of all player characters in the campaign."
},
"bbeg": {
"required": false,
"label": "BBEG",
"type": "string",
"description": "The BBEG of the campaign, if there was one."
},
"firstsession": {
"required": false,
"label": "First Session",
"type": "string",
"description": "Title of the first session."
},
"lastsession": {
"required": false,
"label": "Last Session",
"type": "string",
"description": "Title of the latest/last session."
}
}
}
}
}
</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 test}}
}}</includeonly>
}}</includeonly>

Navigation menu