Template:Infobox Campaign/doc: Difference between revisions
No edit summary |
No edit summary |
||
Line 56: | Line 56: | ||
; <code>lastsession</code>: name of the last session. The header changes based on the status. | ; <code>lastsession</code>: name of the last session. The header changes based on the status. | ||
==TemplateData== | |||
{{Collapse top|title=[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}} | |||
{{TemplateData header|noheader=1}} | |||
<templatedata> | |||
{ | |||
"format": "{{_\n| __________________ = _\n}}\n", | |||
"params": { | |||
"name": { | |||
"required": true, | |||
"label": "Name", | |||
"type": "string", | |||
"description": "Name of the Body of Water." | |||
}, | |||
"other_name": { | |||
"required": false, | |||
"label": "Other Name", | |||
"type": "string", | |||
"description": "Local, Alternative or Former Names" | |||
}, | |||
"image": { | |||
"required": false, | |||
"label": "Image", | |||
"type": "wiki-page-name", | |||
"description": "Image of the Body of Water" | |||
}, | |||
"alt": { | |||
"required": false, | |||
"label": "Image alternative text", | |||
"type": "string", | |||
"description": "Alt text to display if the image specified by image does not display for whatever reason" | |||
}, | |||
"caption": { | |||
"required": false, | |||
"label": "Image caption", | |||
"type": "string", | |||
"description": "Caption for the image." | |||
}, | |||
"image_bathymetry": { | |||
"required": false, | |||
"label": "Image Bathymetry", | |||
"type": "wiki-page-name", | |||
"description": "Bathymetry Image" | |||
}, | |||
"alt_bathymetry": { | |||
"required": false, | |||
"label": "Alt Bathymetry", | |||
"type": "string", | |||
"description": "Alternate text to display if image_bathymetry does not display for whatever reason" | |||
}, | |||
"caption_bathymetry": { | |||
"required": false, | |||
"label": "Caption Bathymetry", | |||
"type": "string", | |||
"description": "Image caption for image_bathymetry" | |||
}, | |||
"location": { | |||
"required": false, | |||
"label": "Location", | |||
"type": "string", | |||
"description": "Location of the Body of Water" | |||
}, | |||
"group": { | |||
"required": false, | |||
"label": "Group", | |||
"type": "string", | |||
"description": "Group of lakes that the body of water belongs to" | |||
}, | |||
"coordinates": { | |||
"required": false, | |||
"label": "Coordinates", | |||
"type": "number", | |||
"description": "Latitude and Longitude coordinates of the body of water", | |||
"aliases": ["coords"] | |||
}, | |||
"type": { | |||
"required": false, | |||
"label": "Type", | |||
"type": "string", | |||
"description": "Type of the Body of Water" | |||
}, | |||
"etymology": { | |||
"required": false, | |||
"label": "Etymology", | |||
"type": "string", | |||
"description": "person, event, or other entity body is named after" | |||
}, | |||
"part_of": { | |||
"required": false, | |||
"label": "Part of", | |||
"type": "string", | |||
"description": "Name of any parent basin or hydrology system" | |||
}, | |||
"inflow": { | |||
"required": false, | |||
"label": "Inflow", | |||
"type": "string", | |||
"description": "Major inflow sources — rivers, aquifers, glacial runoff, etc." | |||
}, | |||
"outflow": { | |||
"required": false, | |||
"label": "Outflow", | |||
"type": "string", | |||
"description": "Outflow Waterway Names e.g. evaporation" | |||
}, | |||
"catchment": { | |||
"required": false, | |||
"label": "Catchment", | |||
"type": "string", | |||
"description": "The area of catchment (in square kilometres) which includes the entire area of the drainage basin for that body of water." | |||
}, | |||
"basin_countries": { | |||
"required": false, | |||
"label": "Basin Countries", | |||
"type": "string", | |||
"description": "Which countries have drainage to/from or border the body of water." | |||
}, | |||
"date-built": { | |||
"required": false, | |||
"label": "Date Built", | |||
"type": "line", | |||
"description": "Date of construction of the body of water/reservoir started, if man-made." | |||
}, | |||
"date-flooded": { | |||
"required": false, | |||
"label": "Date Flooded", | |||
"type": "line", | |||
"description": "Date of the body of water/reservoir was first flooded, if man-made or otherwise recent." | |||
}, | |||
"agency": { | |||
"required": false, | |||
"label": "Agency", | |||
"type": "string", | |||
"description": "Managing or owning organisation" | |||
}, | |||
"length": { | |||
"required": false, | |||
"label": "Length", | |||
"type": "number", | |||
"description": "Maximum length of the body of water in km" | |||
}, | |||
"width": { | |||
"required": false, | |||
"label": "Width", | |||
"type": "number", | |||
"description": "Maximum width of the body of water in km" | |||
}, | |||
"area": { | |||
"required": false, | |||
"label": "Area", | |||
"type": "number", | |||
"description": "Total area of the body of water's surface in square kilometres" | |||
}, | |||
"depth": { | |||
"required": false, | |||
"label": "Depth", | |||
"type": "number", | |||
"description": "Average depth of the body of water in metres, fathoms, and/or feet" | |||
}, | |||
"max-depth": { | |||
"required": false, | |||
"label": "Max Depth", | |||
"type": "number", | |||
"description": "Maximum depth of the body of water in metres, fathoms, and/or feet." | |||
}, | |||
"volume": { | |||
"required": false, | |||
"label": "Volume", | |||
"type": "number", | |||
"description": "Total volume of the body of water (cubic metres, cubic kilometres, cubic miles [cu mi], and/or acre-feet)" | |||
}, | |||
"residence_time": { | |||
"required": false, | |||
"label": "Residence Time", | |||
"type": "number", | |||
"description": "Time spent by water in the body of water." | |||
}, | |||
"shore": { | |||
"required": false, | |||
"label": "Shore", | |||
"type": "number", | |||
"description": "Length of the shoreline in kilometres and statute miles this should not include values for waterways directly connected to the body of water, and should reflect the shore at average surface area." | |||
}, | |||
"elevation": { | |||
"required": false, | |||
"label": "Elevation", | |||
"type": "number", | |||
"description": "Elevation above sea-level in meters." | |||
}, | |||
"frozen": { | |||
"required": false, | |||
"label": "Frozen", | |||
"type": "string", | |||
"description": "Information about freezing: e.g. usual freezing date, months the body of water is frozen, last years the body of water was frozen, never, etc." | |||
}, | |||
"islands": { | |||
"required": false, | |||
"label": "Islands", | |||
"type": "number", | |||
"description": "Total number of islands in the body of water" | |||
}, | |||
"cities": { | |||
"required": false, | |||
"label": "Cities", | |||
"type": "number", | |||
"description": "Notable cities or settlements on or near the shore of the body of water." | |||
}, | |||
"reference": { | |||
"required": false, | |||
"label": "Reference", | |||
"type": "string", | |||
"description": "references for some or all of the values." | |||
} | |||
} | |||
} | |||
</templatedata> | |||
{{Collapse bottom}} | |||
<includeonly>{{basepage subpage| | <includeonly>{{basepage subpage| |
Revision as of 10:38, 21 May 2022
This is a documentation subpage for Template:Infobox Campaign. 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 campaigns.
Usage
{{{name}}} | |
---|---|
{{{tag}}} | |
{{{image}}} | |
Status | |
Setting | {{{setting}}} |
Start Date | {{{start}}} |
Date | {{{end}}} |
Status | {{{status}}} |
Cast | |
Characters | {{{characters}}} |
BBEG | {{{bbeg}}} |
Timeline | |
First Session | {{{firstsession}}} |
Session | {{{lastsession}}} |
{{Infobox Campaign | name = | tag = <!-- Images --> | image = | caption = <!-- In Game Dates --> | setting = | start = | end = | status = <!-- Characters --> | characters = | bbeg = <!-- First and last/latest session --> | firstsession = | lastsession = }}
Parameters
name
- name of the campaign. If left blank, defaults to page name.
tag
- tag for the campaign, if there is one
image
- image for the campaign
caption
- caption about the image
setting
- the setting the campaign takes place in, this is also used for the dates to convert number dates to full dates
start
- the in-game day the campaign started
end
- if status is "Concluded", the in-game day the campaign ended. Otherwise uses the current date from the current dates template.
status
- if the campaign is on-going, on-hold, or concluded
characters
- list of characters, separated by the {{}} template
bbeg
- the bbeg, if the campaign had one
firstsession
- name of the first session
lastsession
- name of the last session. The header changes based on the status.
TemplateData
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TemplateData for Infobox Campaign No description.
|