Template:Infobox Item: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{infobox | <includeonly> | ||
{{infobox | |||
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}} | |above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}} | ||
| | |subheader = {{{tag|}}} | ||
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}|250px]]}} | |||
| | |caption = {{{caption|}}} | ||
| | |||
|label1 = Rarity | |label1 = Rarity | ||
|data1 = {{#if:{{{rarity|}}}|{{{rarity|}}}| | |data1 = {{#if:{{{rarity|}}}|[[:Category:{{{rarity|}}} Items|{{{rarity|}}}]]|[[:Category:Common Items|Common]]}} | ||
|label2 = Type | |label2 = Type | ||
|data2 = {{#if:{{{type|}}}|{{{type|}}}| | |data2 = {{#if:{{{type|}}}|[[:Category:{{{type|}}}s|{{{type|}}}]]}} | ||
|label3 = Attunement? | |||
|data3 = {{#if:{{{attunement|}}}|[[:Category:Items Requiring Attunement|Yes]]}} | |||
|label4 = Cursed? | |||
| | |data4 = {{#if:{{{cursed|}}}|[[:Category:Cursed Items|Yes]]}} | ||
|label4 = | |label5 = Value | ||
|data4 = {{#if:{{{ | |data5 = {{{value|}}} | ||
| | |label6 = Creator | ||
| | |data6 = {{#if:{{{creator|}}}|[[{{{creator|}}}]]}} | ||
| | |label7 = Current Location | ||
| | |data7 = {{{location|}}} | ||
| | |label8 = First Appearance | ||
| | |data8 = [[{{{firstappears|}}}]] | ||
| | |label9 = Latest Appearance | ||
|data9 = {{#if:{{{lastappears|}}}|[[{{{lastappears|}}}]]}} | |||
| | |||
| | |aboveclass = mergedtoprow name | ||
| | |subheaderrowclass1 = mergedbottomrow tag | ||
| | |imagerowclass1 = mergedtoprow mergedbottomrow | ||
| | |rowclass1 = mergedtoprow | ||
| | |rowclass2 = mergedrow | ||
|rowclass3 = mergedrow | |||
|rowclass4 = mergedrow | |||
|rowclass5 = mergedbottomrow | |||
|rowclass6 = mergedtoprow | |||
|rowclass7 = mergedbottomrow | |||
|rowclass8 = mergedtoprow | |||
|rowclass9 = mergedbottomrow | |||
}}</includeonly><noinclude> | |||
{{Documentation}} | |||
<!--Please add this template's categories to the /doc subpage, not here - thanks!--> | |||
</noinclude> |
Revision as of 09:29, 22 May 2022
This template uses Lua: |
This template can be used to add at-a-glance information on TTRPG items.
Usage
{{{name}}} | |
---|---|
{{{tag}}} | |
[[File:{{{image}}}|250px]] | |
Rarity | [[:Category:{{{rarity}}} Items|{{{rarity}}}]] |
Type | [[:Category:{{{type}}}s|{{{type}}}]] |
Attunement? | Yes |
Cursed? | Yes |
Value | {{{value}}} |
Creator | [[{{{creator}}}]] |
Current Location | {{{location}}} |
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.
|