Template:Item: Difference between revisions

Template page
mNo edit summary
Tag: wikieditor
No edit summary
Tag: wikieditor
 
(7 intermediate revisions by the same user not shown)
Line 7: Line 7:
     | adventuring = [[Category:Adventuring Gear]]
     | adventuring = [[Category:Adventuring Gear]]
     | armor = [[Category:Armor]]
     | armor = [[Category:Armor]]
    | dagger = [[Category:Dagger]]
     | focus = [[Category:Spellcasting Focus]]
     | focus = [[Category:Spellcasting Focus]]
     | headgear = [[Category:Headgear]]
     | headgear = [[Category:Headgear]]
     | potion = [[Category:Potion]]
     | potion = [[Category:Potion]]
    | shield = [[Category:Shield]]
    | wand = [[Category:Wand]]
     | weapon = [[Category:Weapon]]
     | weapon = [[Category:Weapon]]
     | wondrous = [[Category:Wondrous Item]]
     | wondrous = [[Category:Wondrous Item]]
Line 29: Line 32:
     | adventuring = Adventuring Gear{{!}}Adventuring Gear  
     | adventuring = Adventuring Gear{{!}}Adventuring Gear  
     | armor = Armor{{!}}Armor  
     | armor = Armor{{!}}Armor  
    | dagger = Dagger{{!}}Dagger
     | focus = Spellcasting Focus{{!}}Spellcasting Focus
     | focus = Spellcasting Focus{{!}}Spellcasting Focus
     | headgear = Headgear{{!}}Headgear  
     | headgear = Headgear{{!}}Headgear  
     | potion = Potion{{!}}Potion  
     | potion = Potion{{!}}Potion  
    | shield = Shield{{!}}Shield
    | wand = Wand{{!}}Wand
     | weapon = Weapon{{!}}Weapon  
     | weapon = Weapon{{!}}Weapon  
     | wondrous = Wondrous Item{{!}}Wondrous Item
     | wondrous = Wondrous Item{{!}}Wondrous Item
     | {{{type}}}
     | {{{type}}}
}}]],
}}]], {{
{{
     #switch:{{{rarity}}}  
     #switch:{{{rarity}}}  
     | common = <span class="item common">Common</span>
     | common = <span class="item common">Common</span>
Line 45: Line 50:
     | legendary = <span class="item legendary">Legendary</span>
     | legendary = <span class="item legendary">Legendary</span>
     | {{{rarity}}}
     | {{{rarity}}}
}}{{#if:{{{attunement|}}}|<nowiki/> <span class="item attunement">Attunement</span>|}}</div><hr>
}}{{#if:{{{attunement|}}}|<nowiki/> <span class="item attunement">Attunement{{#ifeq:{{{attunement}}}|caster|<nowiki/> <span class="small italic">(by a spellcaster)</span>}}</span>|}}
</div><hr>
</includeonly>
</includeonly>

Latest revision as of 02:16, 24 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.