Шаблон:Popup предмета

Материал из Wiki The-West RU
Перейти к навигации
  • 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
ловк=Ловкость
снор=Сноровка
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
рем=Ремонт
lea=Leadership
tac=Tactics
торг=Торговля
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}}

Файл:Одето Золотой винчестер.png


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