Predefinição:Popup Item

De Wiki The-West BR
Revisão de 20h24min de 28 de junho de 2017 por Letus (discussão | contribs)
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)
Ir para navegação
  • To create a template, create a page entitled "Template:Item [Name]" containing this code :

<includeonly>{{Popup Item|[Name]|[Type]|bg={{#if:{{{bg|}}}|{{{bg}}}|1}}|nb={{#if:{{{nb|}}}|{{{nb}}}|}}|[optional parameters]}}</includeonly><.noinclude>[[Category:[Category name]]]<center>{{Item [Name]}}</center></.noinclude>

  • Optional parameters : Only fill with values (no "+" before, etc...)

str=Strength
mob=Mobility
dex=Dexterity
cha=Charisma
con=Construction
vig=Vigor
tou=Toughness
sta=Stamina
hea=Health Points
rid=Horseback Riding
ref=Reflex
dod=Dodging
hid=Hiding
swi=Swimming
aim=Aiming
sho=Shooting
pit=Setting traps
fin=Fine Motor Skills
rep=Repairing
lea=Leadership
tac=Tactics
tra=Trading
ani=Animal Instinct
app=Appearance
dmg=Damages (min-max)
dmglvl=Damages per Level
fbdef=Defense (FB)
fboff=Attack (FB)
fbres=Resistance (FB)
fbdefs=Defense (FB Sector)
fboffs=Attack (FB Sector)
fbdmgs=Damages (FB Sector)
t1=Free text 1
t2=Free text 2
t3=Free text 3
t4=Free text 4
spd=Speed
set=Set name
bp=Buy price
sp=Sell price
lvl=Required level
sex=(0=Male/1=Female)
upg=Upgradeable (0/1)
id=Item id
img=Image name

  • Example :

<includeonly>{{Popup Item|Lee's rifle|Gun|bg={{#if:{{{bg|}}}|{{{bg}}}|1}}|nb={{#if:{{{nb|}}}|{{{nb}}}|}}|mob=0.04|hid=0.08|aim=0.04|tac=0.04|dmglvl=2|dmg=20-40|lvl=1|upg=1|set=Robert Lee's weapons|id=50218000|img=oktoberfest_2016_fort_1|fbdef=2|fbres=20|t1=test}}</includeonly><.noinclude>[[Category:Guns]]<center>{{Item Lee's rifle}}</center></.noinclude>

  • Code to add the item on a page :

{{Item [Name]|[optional parameters]}}

These parameters are optional :
bg=Display background (0/1)
nb=Number of items

  • Example :

{{Item Lee's coat|nb=2|bg=0}}

Wear Lee's rifle.png


NB: Remove . in <.noinclude></.noinclude>