Template:Infobox Item: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{infobox | {{infobox | ||
|autoheaders = y | |||
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}} | |above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}} | ||
|subheader = {{{tag|}}} | |subheader = {{{tag|}}} | ||
|image = | |image = {{{image|}}} | ||
|caption = {{{caption|}}} | |caption = {{{caption|}}} | ||
| | |||
| | |header1 = 5e Statistics | ||
| | |label2 = Rarity | ||
| | |data2 = {{#if:{{{rarity|}}}|[[:Category:{{{rarity|}}} Items|{{{rarity|}}}]]|[[:Category:Common Items|Common]]}} | ||
| | |label3 = Type | ||
| | |data3 = {{#if:{{{type|}}}|[[:Category:{{{type|}}}s|{{{type|}}}]]}} | ||
| | |label4 = Attunement? | ||
| | |data4 = {{#if:{{{attunement|}}}|[[:Category:Items Requiring Attunement|Yes]]}} | ||
| | |label5 = Cursed? | ||
| | |data5 = {{#if:{{{cursed|}}}|[[:Category:Cursed Items|Yes]]}} | ||
| | |label6 = Value | ||
| | |data6 = {{{value|}}} | ||
| | |||
| | |header7 = Unique Item | ||
| | |label8 = Creator | ||
| | |data8 = {{{creator|}}} | ||
| | |label9 = Current Location | ||
| | |data9 = {{{location|}}} | ||
|header10 = Appearances | |||
|label11 = First Appearance | |||
|data11 = {{{firstappears|}}} | |||
|label12 = Latest Appearance | |||
|data12 = {{{lastappears|}}} | |||
|aboveclass = mergedtoprow name | |aboveclass = mergedtoprow name | ||
|subheaderrowclass1 = mergedbottomrow tag | |subheaderrowclass1 = mergedbottomrow tag | ||
|imagerowclass1 = mergedtoprow mergedbottomrow | |imagerowclass1 = mergedtoprow mergedbottomrow | ||
|rowclass1 = mergedtoprow | |rowclass1 = mergedtoprow item | ||
|rowclass2 = mergedrow | |rowclass2 = mergedrow | ||
|rowclass3 = mergedrow | |rowclass3 = mergedrow | ||
|rowclass4 = mergedrow | |rowclass4 = mergedrow | ||
|rowclass5 = | |rowclass5 = mergedrow | ||
|rowclass6 = | |rowclass6 = mergedbottomrow | ||
|rowclass7 = | |||
|rowclass8 = | |rowclass7 = mergedtoprow item | ||
|rowclass8 = mergedrow | |||
|rowclass9 = mergedbottomrow | |rowclass9 = mergedbottomrow | ||
|rowclass10 = mergedtoprow item | |||
|rowclass11 = mergedrow | |||
|rowclass12 = mergedbottomrow | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!--Please add this template's categories to the /doc subpage, not here - thanks!--> | <!--Please add this template's categories to the /doc subpage, not here - thanks!--> | ||
</noinclude> | </noinclude> |
Latest revision as of 09:28, 30 May 2022
This template uses Lua: |
This template can be used to add at-a-glance information on TTRPG items.
Usage
{{{name}}} | |
---|---|
{{{tag}}} | |
{{{image}}} | |
5e Statistics | |
Rarity | [[:Category:{{{rarity}}} Items|{{{rarity}}}]] |
Type | [[:Category:{{{type}}}s|{{{type}}}]] |
Attunement? | Yes |
Cursed? | Yes |
Value | {{{value}}} |
Unique Item | |
Creator | {{{creator}}} |
Current Location | {{{location}}} |
Appearances | |
First Appearance | {{{firstappears}}} |
Latest Appearance | {{{lastappears}}} |
{{Infobox Item | name = | tag = <!-- Images --> | image = | caption = <!-- 5e Stats --> | rarity = | type = | attunement = | cursed = | value = <!-- Unique --> | creator = | location = <!--Appearances--> | firstappears = | lastappears = }}
Parameters
name
- name of the item
tag
- tag line of the item
image
- image of the item
caption
- caption of the image
rarity
- rarity of the item
type
- the item type
attunement
- if the item requires attunement, input yes, otherwise leave blank
cursed
- if the item is cursed input yes, otherwise leave blank
value
- the price the item goes for
creator
- for unique items, who created the item
location
- for unique items, where is it currently if known
firstappears
- what session did the item first appear in
lastappears
- the latest session the item appeared in, if different from first appearance
TemplateData
TemplateData documentation used by VisualEditor and other tools
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TemplateData for Infobox Item No description.
|