Template:Item: Difference between revisions

Template page
No edit summary
Tag: wikieditor
mNo edit summary
Tag: wikieditor
Line 1: Line 1:
<noinclude>{{Item/doc}}</noinclude>
<noinclude>{{Item/doc}}</noinclude>
<includeonly>{{
<includeonly>{{
    #ifeq: {{PAGENAME}} | {{{name}}}  
#ifeq: {{PAGENAME}} | {{{name}}}  
    | [[Category:Item]]
| [[Category:Item]]
    {{
{{
        #switch:{{{type}}}  
    #switch:{{{type}}}  
        | adventuring = [[Category:Adventuring Gear]]
    | adventuring = [[Category:Adventuring Gear]]
        | potion = [[Category:Potion]]
    | potion = [[Category:Potion]]
        | weapon = [[Category:Weapon]]
    | weapon = [[Category:Weapon]]
        | wondrous = [[Category:Wonderous Item]]
    | wondrous = [[Category:Wonderous Item]]
        | [[Category:{{{type}}}]]
    | [[Category:{{{type}}}]]
    }}
}}
    {{
{{
        #switch:{{{rarity}}}  
    #switch:{{{rarity}}}  
        | common = [[Catgory:Common Item]]
    | common = [[Catgory:Common Item]]
        | uncommon = [[Category:Uncommon Item]]
    | uncommon = [[Category:Uncommon Item]]
        | rare = [[Category:Rare Item]]
    | rare = [[Category:Rare Item]]
        | very rare = [[Category:Very Rare]]
    | very rare = [[Category:Very Rare]]
        | epic = [[Category:Epic Item]]
    | epic = [[Category:Epic Item]]
        | legendary = [[Category:Legendary Item]]
    | legendary = [[Category:Legendary Item]]
        | [[Category:{{{rarity}}}]]
    | [[Category:{{{rarity}}}]]
    }}
}}
}}
}}
<div class="item">{{
<div class="item">{{

Revision as of 00:34, 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.