Created page with "<noinclude>{{Item/doc}}</noinclude> <includeonly>{{ #ifeq: {{PAGENAME}} | {{{name}}} | Category:Item {{ #switch:{{{type}}} | adventuring = Category:Adventuring Gear'''Type:''' Adventuring Gear | wonderous = Category:Wonderous Item'''Type:''' Wonderous Item | weapon = Category:Weapon'''Type:''' Weapon | potion = Category:Potion'''Type:''' Potion | [[Category:{{{type}}}]]'''Type:''' {{{type}}..." Tag: wikieditor |
mNo edit summary Tag: wikieditor |
||
Line 5: | Line 5: | ||
{{ | {{ | ||
#switch:{{{type}}} | #switch:{{{type}}} | ||
| adventuring = [[Category:Adventuring Gear]]'''Type:''' Adventuring Gear | | adventuring = [[Category:Adventuring Gear]]::'''Type:''' Adventuring Gear | ||
| wonderous = [[Category:Wonderous Item]]'''Type:''' Wonderous Item | | wonderous = [[Category:Wonderous Item]]::'''Type:''' Wonderous Item | ||
| weapon = [[Category:Weapon]]'''Type:''' Weapon | | weapon = [[Category:Weapon]]::'''Type:''' Weapon | ||
| potion = [[Category:Potion]]'''Type:''' Potion | | potion = [[Category:Potion]]::'''Type:''' Potion | ||
| [[Category:{{{type}}}]]'''Type:''' {{{type}}} | | [[Category:{{{type}}}]]::'''Type:''' {{{type}}} | ||
}} | }} | ||
{{ | {{ | ||
#switch:{{{rarity}}} | #switch:{{{rarity}}} |
Revision as of 22:21, 23 January 2024
Usage
{{item
|name={{subst:PAGENAME}}
|type=
|rarity=
|attunement=
}}
Important
The |name=
parameter must be the same as the page name (underscore excluded, space works):
- Item Page URL: https://rp.klanen.org/wiki/kfp/Item_Name
- Template Parameter:
|name=Item Name
The following |type=
are recognized:
|type=adventuring
|type=armor
|type=dagger
|type=focus
|type=headgear
|type=potion
|type=wand
|type=weapon
|type=wondrous
Others can be used, but categories will be weird.
the following |rarity=
are recognized and automatically colored according to rarity standards:
|type=common
|type=uncommon
|type=rare
|type=very rare
|type=epic
|type=legendary
|attunement=
is optional.
If the item requires attunement you must put 1
as value. If the item requires a spellcaster to attune, put caster
as value.