Template:Infobox test/doc: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(31 intermediate revisions by the same user not shown)
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 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>

Latest revision as of 19:01, 15 February 2023

This template can be used to add at-a-glance information for continents.

Usage

{{{name}}}
{{{tag}}}
{{{image}}}
{{{caption}}}
5th Edition Statistics
Size{{{size5e}}}
Type{{{type5e}}}
Tag(s){{{tags5e}}}
Typical Alignment{{{alignment5e}}}
General Information
Patron Deity(s){{{deity}}}
Movement{{{movement}}}
Vision{{{vision}}}
Activity Cycle{{{sleep_cycle}}}
Diet{{{diet}}}
Average Lifespan{{{lifespan}}}
Homeland(s){{{homeland}}}
Intelligence{{{intelligence}}}
Language(s){{{language}}}
Subraces{{{subraces}}}
Favored Climate{{{favored_climate}}}
Favored Terrain{{{favored_terrain}}}
Appearance
Average Height{{{height}}}
Wingspan{{{wingspan}}}
Feather Color(s){{{feathers}}}
Eye Color(s){{{eye_color}}}
Build{{{build}}}
Distinctions{{{distinctions}}}
{{Infobox Race
| name = 
| tag = 
| image = 
| caption = 
| size5e = 
| type5e = 
| tags5e = 
| alignment5e = 
| deity = 
| movement = 
| vision = 
| sleep_cycle = 
| diet = 
| lifespan = 
| homeland = 
| intelligence = 
| language = 
| subraces = 
| favored_climate = 
| favored_terrain = 
| height = 
| wingspan = 
| weight = 
| skin_color = 
| hair_color = 
| feathers = 
| eye_color = 
| build = 
| distinctions = 
}}

Parameters

name
tag
image
caption
race
gender
class
height
weight
alignment
faith
born
died
cause_of_death
occupation
spouse
children
campaign
firstsession
lasesession
setting
character_sheet

TemplateData

TemplateData documentation used by VisualEditor and other tools

TemplateData for Infobox test

No description.

Template parameters

ParameterDescriptionTypeStatus
namename

no description

Unknownoptional
tagtag

no description

Unknownoptional
imageimage

no description

Unknownoptional
captioncaption

no description

Unknownoptional
date_foundeddate_founded

no description

Unknownoptional
activeactive

no description

Unknownoptional
allegianceallegiance

no description

Unknownoptional
typetype

no description

Unknownoptional
rolerole

no description

Unknownoptional
sizesize

no description

Unknownoptional
headquartersheadquarters

no description

Unknownoptional
nicknamesnicknames

no description

Unknownoptional
patronpatron

no description

Unknownoptional
membersmembers

no description

Unknownoptional
leader_titleleader_title

no description

Unknownoptional
first_leaderfirst_leader

no description

Unknownoptional
current_leadercurrent_leader

no description

Unknownoptional
last_leaderlast_leader

no description

Unknownoptional
settingsetting

no description

Unknownoptional