Шаблон:Popup предмета: различия между версиями
мНет описания правки |
мНет описания правки |
||
Строка 1: | Строка 1: | ||
<includeonly> <div class="item_container {{{wear|}}} {{#if:{{{bg|}}}|{{#ifexpr:{{{bg|}}}=0|empty|}}|}}">{{#if:{{{wear|}}}|[[File:Одето_{{{1}}}.png|link=]]|{{#if:{{{img|}}}|[[File:{{{img}}}|link=]]|[[File:{{{1}}}.png|link=]]}}}}<div class="popup_window"><div class="popup_front"><div class="tw_bg_tl"></div><div class="tw_bg_tr"></div><div class="tw_bg_bl"></div><div class="tw_bg_br"></div></div><div class="popup_contents"> <div class="popup_image"> {{#if:{{{img|}}}|[[File:{{{img}}}|link=]]|{{Img|{{{1}}}}}}}</div>[[File:Divider.png|center|100px|link=]]<p class="popup_name">{{{1}}}</p><p class="popup_type">{{{2}}}</p><br/>{{#if:{{{урон|}}}|<p class="popup_dmg">{{{урон|;}}} Урон</p>{{#if:{{{dmglvl|}}}|<p class="popup_dmg">+<span class="calc" id="{{{dmglvl|;}}}">{{{dmglvl|;}}}</span> Damages <span class="per_level"></span></p><br/>|<br/>}}|}}<div class="popup_stats"> {{#if:{{{сила|}}}|<p class="popup_attribute">{{Popup бонус|{{{сила}}}|Сила}}</p>|}} {{#if:{{{ловк|}}}|<p class="popup_attribute">{{Popup бонус|{{{ловк}}}|Ловкость}}</p>|}} {{#if:{{{снор|}}}|<p class="popup_attribute">{{Popup бонус|{{{снор}}}|Сноровка}}</p>|}} {{#if:{{{шарм|}}}|<p class="popup_attribute">{{Popup бонус|{{{шарм}}}|Шарм}}</p>|}} {{#if:{{{строит|}}}|<p class="popup_skill">{{Popup бонус|{{{строит}}}|Строительство}}</p>|}} {{#if:{{{удар|}}}|<p class="popup_skill">{{Popup бонус|{{{удар}}}|Удар}}</p>|}} {{#if:{{{tou|}}}|<p class="popup_skill">{{Popup bonus|{{{tou}}}|Toughness}}</p>|}} {{#if:{{{sta|}}}|<p class="popup_skill">{{Popup bonus|{{{sta}}}|Stamina}}</p>|}} {{#if:{{{hea|}}}|<p class="popup_skill">{{Popup bonus|{{{hea}}}|Health Points}}</p>|}} {{#if:{{{rspkt|}}}|<p class="popup_skill">{{Popup bonus|{{{rspkt}}}|Respecks}}</p>|}} {{#if:{{{rid|}}}|<p class="popup_skill">{{Popup bonus|{{{rid}}}|Horseback Riding}}</p>|}} {{#if:{{{ref|}}}|<p class="popup_skill">{{Popup bonus|{{{ref}}}|Reflex}}</p>|}} {{#if:{{{dod|}}}|<p class="popup_skill">{{Popup bonus|{{{dod}}}|Dodging}}</p>|}} {{#if:{{{hid|}}}|<p class="popup_skill">{{Popup bonus|{{{hid}}}|Hiding}}</p>|}} {{#if:{{{swi|}}}|<p class="popup_skill">{{Popup bonus|{{{swi}}}|Swimming}}</p>|}} {{#if:{{{метка|}}}|<p class="popup_skill">{{Popup бонус|{{{метка}}}|Меткость}}</p>|}} {{#if:{{{стрел|}}}|<p class="popup_skill">{{Popup бонус|{{{стрел}}}|Стрельба}}</p>|}} {{#if:{{{pit|}}}|<p class="popup_skill">{{Popup bonus|{{{pit}}}|Setting Traps}}</p>|}} {{#if:{{{fin|}}}|<p class="popup_skill">{{Popup bonus|{{{fin}}}|Fine Motor Skills}}</p>|}} {{#if:{{{rep|}}}|<p class="popup_skill">{{Popup bonus|{{{rep}}}|Repairing}}</p>|}} {{#if:{{{lea|}}}|<p class="popup_skill">{{Popup bonus|{{{lea}}}|Leadership}}</p>|}} {{#if:{{{tac|}}}|<p class="popup_skill">{{Popup bonus|{{{tac}}}|Tactics}}</p>|}} {{#if:{{{tra|}}}|<p class="popup_skill">{{Popup bonus|{{{tra}}}|Trading}}</p>|}} {{#if:{{{жив|}}}|<p class="popup_skill">{{Popup бонус|{{{жив}}}|Обращение с животными}}</p>|}} {{#if:{{{app|}}}|<p class="popup_skill">{{Popup bonus|{{{app}}}|Appearance}}</p>|}} </div><br/><div class="popup_fb_stats">{{#if:{{{fbdef|}}}|<p>+{{{fbdef|;}}} <b>Defense</b> (Fort battle bonus)</p>|}}{{#if:{{{fboff|}}}|<p>+{{{fboff|;}}} <b>Attack</b> (Fort battle bonus)</p>|}}{{#if:{{{fbres|}}}|<p>+{{{fbres|;}}} <b>Resistance</b> (Fort battle bonus)</p>|}}{{#if:{{{fbdefs|}}}|<p>+{{{fbdefs|;}}} <b>Defense</b> (Fort battle sector bonus)</p>|}}{{#if:{{{fboffs|}}}|<p>+{{{fboffs|;}}} <b>Attack</b> (Fort battle sector bonus)</p>|}}{{#if:{{{fbdmgs|}}}|<p>+{{{fbdmgs|;}}} <b>Damages</b> (Fort battle sector bonus)</p>|}}</div><div class="popup_text">{{#if:{{{t1|}}}|<br/><p>{{{t1|}}}</p>|}}{{#if:{{{t2|}}}|<p>{{{t2|}}}</p>|}}{{#if:{{{t3|}}}|<p>{{{t3|}}}</p>|}}{{#if:{{{t4|}}}|<p>{{{t4|}}}</p>|}}</div><div class="popup_bonus">{{#if:{{{b1|}}}|<br/><p>{{{b1|}}}</p>|}}{{#if:{{{b2|}}}|<p>{{{b2|}}}</p>|}}{{#if:{{{b3|}}}|<p>{{{b3|}}}</p>|}}{{#if:{{{b4|}}}|<p>{{{b4|}}}</p>|}}</div><br/>{{#if:{{{job1|}}}|<div style="text-align:center;"><table class="popup_job"><tr><td>{{Img|{{{job1|}}}}}</td><td><span> {{{job1|}}}</span></td></tr>{{#if:{{{job2|}}}|<tr><td>{{Img|{{{job2|}}}}}</td><td><span> {{{job2|}}}</span></td></tr>|}}{{#if:{{{job3|}}}|<tr><td>{{Img|{{{job3|}}}}}</td><td><span> {{{job3|}}}</span></td></tr>|}}</table></div>|}}{{#ifeq:{{{crafted|}}}|1|<div style="text-align:center;"><table class="popup_crafteditem"><tr><td>{{Img|{{{crafted_profession|}}}|}}</td><td><table><tr>{{#if:{{{crafted_m1|}}}|<td>{{Img|{{{crafted_m1|}}}|36}}</td>|}}{{#if:{{{crafted_m2|}}}|<td>{{Img|{{{crafted_m2|}}}|36}}</td>|}}{{#if:{{{crafted_m3|}}}|<td>{{Img|{{{crafted_m3|}}}|36}}</td>|}}{{#if:{{{crafted_m4|}}}|<td>{{Img|{{{crafted_m4|}}}|36}}</td>|}}{{#if:{{{crafted_m5|}}}|<td>{{Img|{{{crafted_m5|}}}|36}}</td>|}}</tr><tr>{{#if:{{{crafted_nb1|}}}|<td><span>x{{{crafted_nb1|}}}</span></td>|}}{{#if:{{{crafted_nb2|}}}|<td><span>x{{{crafted_nb2|}}}</span></td>|}}{{#if:{{{crafted_nb3|}}}|<td><span>x{{{crafted_nb3|}}}</span></td>|}}{{#if:{{{crafted_nb4|}}}|<td><span>x{{{crafted_nb4|}}}</span></td>|}}{{#if:{{{crafted_nb5|}}}|<td><span>x{{{crafted_nb5|}}}</span></td>|}}</tr></table></td></tr></table></div>|}}<div class="popup_infos">{{#if:{{{spd|}}}|<br/><p class="popup_speed">Speed: +{{{spd|;}}}%</p><br/>|}}{{#if:{{{набор|}}}|<p class="popup_set">{{{набор|;}}}</p><br/>|}}{{#if:{{{sp|}}}|{{Img|пок}}{{{bp|;}}} {{Img|прод}} {{{sp|;}}}|<i>Нельзя продать торговцу</i>}}<br/><br/>{{#if:{{{ур|}}}|Уровень <b>{{{ур|;}}}</b>|}}{{#if:{{{sex|}}}| {{#ifexpr:{{{sex|}}}=0|{{Img|Gender_m}}|}}{{#ifexpr:{{{пол|}}}=1|{{Img|Gender_f}}|}}|}} {{#if:{{{мод|}}}| <p class="popup_upgradeable">{{#ifexpr:{{{мод|}}}=0|<span class="popup_txtred">Нельзя модифицировать</span>|<span class="popup_txtgreen">Можно модифицировать</span>}}</p>|}}{{#if:{{{id|}}}|<p class="popup_id"><br/>ID: <b>{{{id|;}}}</b></p>|}}</div> </div></div>{{#if:{{{nb|}}}|<div class="item_number">{{{nb}}}</div>|}}</div></includeonly> <noinclude> | <includeonly> <div class="item_container {{{wear|}}} {{#if:{{{bg|}}}|{{#ifexpr:{{{bg|}}}=0|empty|}}|}}">{{#if:{{{wear|}}}|[[File:Одето_{{{1}}}.png|link=]]|{{#if:{{{img|}}}|[[File:{{{img}}}|link=]]|[[File:{{{1}}}.png|link=]]}}}}<div class="popup_window"><div class="popup_front"><div class="tw_bg_tl"></div><div class="tw_bg_tr"></div><div class="tw_bg_bl"></div><div class="tw_bg_br"></div></div><div class="popup_contents"> <div class="popup_image"> {{#if:{{{img|}}}|[[File:{{{img}}}|link=]]|{{Img|{{{1}}}}}}}</div>[[File:Divider.png|center|100px|link=]]<p class="popup_name">{{{1}}}</p><p class="popup_type">{{{2}}}</p><br/>{{#if:{{{урон|}}}|<p class="popup_dmg">{{{урон|;}}} Урон</p>{{#if:{{{dmglvl|}}}|<p class="popup_dmg">+<span class="calc" id="{{{dmglvl|;}}}">{{{dmglvl|;}}}</span> Damages <span class="per_level"></span></p><br/>|<br/>}}|}}<div class="popup_stats"> {{#if:{{{сила|}}}|<p class="popup_attribute">{{Popup бонус|{{{сила}}}|Сила}}</p>|}} {{#if:{{{ловк|}}}|<p class="popup_attribute">{{Popup бонус|{{{ловк}}}|Ловкость}}</p>|}} {{#if:{{{снор|}}}|<p class="popup_attribute">{{Popup бонус|{{{снор}}}|Сноровка}}</p>|}} {{#if:{{{шарм|}}}|<p class="popup_attribute">{{Popup бонус|{{{шарм}}}|Шарм}}</p>|}} {{#if:{{{строит|}}}|<p class="popup_skill">{{Popup бонус|{{{строит}}}|Строительство}}</p>|}} {{#if:{{{удар|}}}|<p class="popup_skill">{{Popup бонус|{{{удар}}}|Удар}}</p>|}} {{#if:{{{tou|}}}|<p class="popup_skill">{{Popup bonus|{{{tou}}}|Toughness}}</p>|}} {{#if:{{{sta|}}}|<p class="popup_skill">{{Popup bonus|{{{sta}}}|Stamina}}</p>|}} {{#if:{{{hea|}}}|<p class="popup_skill">{{Popup bonus|{{{hea}}}|Health Points}}</p>|}} {{#if:{{{rspkt|}}}|<p class="popup_skill">{{Popup bonus|{{{rspkt}}}|Respecks}}</p>|}} {{#if:{{{rid|}}}|<p class="popup_skill">{{Popup bonus|{{{rid}}}|Horseback Riding}}</p>|}} {{#if:{{{ref|}}}|<p class="popup_skill">{{Popup bonus|{{{ref}}}|Reflex}}</p>|}} {{#if:{{{dod|}}}|<p class="popup_skill">{{Popup bonus|{{{dod}}}|Dodging}}</p>|}} {{#if:{{{hid|}}}|<p class="popup_skill">{{Popup bonus|{{{hid}}}|Hiding}}</p>|}} {{#if:{{{swi|}}}|<p class="popup_skill">{{Popup bonus|{{{swi}}}|Swimming}}</p>|}} {{#if:{{{метка|}}}|<p class="popup_skill">{{Popup бонус|{{{метка}}}|Меткость}}</p>|}} {{#if:{{{стрел|}}}|<p class="popup_skill">{{Popup бонус|{{{стрел}}}|Стрельба}}</p>|}} {{#if:{{{pit|}}}|<p class="popup_skill">{{Popup bonus|{{{pit}}}|Setting Traps}}</p>|}} {{#if:{{{fin|}}}|<p class="popup_skill">{{Popup bonus|{{{fin}}}|Fine Motor Skills}}</p>|}} {{#if:{{{rep|}}}|<p class="popup_skill">{{Popup bonus|{{{rep}}}|Repairing}}</p>|}} {{#if:{{{lea|}}}|<p class="popup_skill">{{Popup bonus|{{{lea}}}|Leadership}}</p>|}} {{#if:{{{tac|}}}|<p class="popup_skill">{{Popup bonus|{{{tac}}}|Tactics}}</p>|}} {{#if:{{{tra|}}}|<p class="popup_skill">{{Popup bonus|{{{tra}}}|Trading}}</p>|}} {{#if:{{{жив|}}}|<p class="popup_skill">{{Popup бонус|{{{жив}}}|Обращение с животными}}</p>|}} {{#if:{{{app|}}}|<p class="popup_skill">{{Popup bonus|{{{app}}}|Appearance}}</p>|}} </div><br/><div class="popup_fb_stats">{{#if:{{{fbdef|}}}|<p>+{{{fbdef|;}}} <b>Defense</b> (Fort battle bonus)</p>|}}{{#if:{{{fboff|}}}|<p>+{{{fboff|;}}} <b>Attack</b> (Fort battle bonus)</p>|}}{{#if:{{{fbres|}}}|<p>+{{{fbres|;}}} <b>Resistance</b> (Fort battle bonus)</p>|}}{{#if:{{{fbdefs|}}}|<p>+{{{fbdefs|;}}} <b>Defense</b> (Fort battle sector bonus)</p>|}}{{#if:{{{fboffs|}}}|<p>+{{{fboffs|;}}} <b>Attack</b> (Fort battle sector bonus)</p>|}}{{#if:{{{fbdmgs|}}}|<p>+{{{fbdmgs|;}}} <b>Damages</b> (Fort battle sector bonus)</p>|}}</div><div class="popup_text">{{#if:{{{t1|}}}|<br/><p>{{{t1|}}}</p>|}}{{#if:{{{t2|}}}|<p>{{{t2|}}}</p>|}}{{#if:{{{t3|}}}|<p>{{{t3|}}}</p>|}}{{#if:{{{t4|}}}|<p>{{{t4|}}}</p>|}}</div><div class="popup_bonus">{{#if:{{{b1|}}}|<br/><p>{{{b1|}}}</p>|}}{{#if:{{{b2|}}}|<p>{{{b2|}}}</p>|}}{{#if:{{{b3|}}}|<p>{{{b3|}}}</p>|}}{{#if:{{{b4|}}}|<p>{{{b4|}}}</p>|}}</div><br/>{{#if:{{{job1|}}}|<div style="text-align:center;"><table class="popup_job"><tr><td>{{Img|{{{job1|}}}}}</td><td><span> {{{job1|}}}</span></td></tr>{{#if:{{{job2|}}}|<tr><td>{{Img|{{{job2|}}}}}</td><td><span> {{{job2|}}}</span></td></tr>|}}{{#if:{{{job3|}}}|<tr><td>{{Img|{{{job3|}}}}}</td><td><span> {{{job3|}}}</span></td></tr>|}}</table></div>|}}{{#ifeq:{{{crafted|}}}|1|<div style="text-align:center;"><table class="popup_crafteditem"><tr><td>{{Img|{{{crafted_profession|}}}|}}</td><td><table><tr>{{#if:{{{crafted_m1|}}}|<td>{{Img|{{{crafted_m1|}}}|36}}</td>|}}{{#if:{{{crafted_m2|}}}|<td>{{Img|{{{crafted_m2|}}}|36}}</td>|}}{{#if:{{{crafted_m3|}}}|<td>{{Img|{{{crafted_m3|}}}|36}}</td>|}}{{#if:{{{crafted_m4|}}}|<td>{{Img|{{{crafted_m4|}}}|36}}</td>|}}{{#if:{{{crafted_m5|}}}|<td>{{Img|{{{crafted_m5|}}}|36}}</td>|}}</tr><tr>{{#if:{{{crafted_nb1|}}}|<td><span>x{{{crafted_nb1|}}}</span></td>|}}{{#if:{{{crafted_nb2|}}}|<td><span>x{{{crafted_nb2|}}}</span></td>|}}{{#if:{{{crafted_nb3|}}}|<td><span>x{{{crafted_nb3|}}}</span></td>|}}{{#if:{{{crafted_nb4|}}}|<td><span>x{{{crafted_nb4|}}}</span></td>|}}{{#if:{{{crafted_nb5|}}}|<td><span>x{{{crafted_nb5|}}}</span></td>|}}</tr></table></td></tr></table></div>|}}<div class="popup_infos">{{#if:{{{spd|}}}|<br/><p class="popup_speed">Speed: +{{{spd|;}}}%</p><br/>|}}{{#if:{{{набор|}}}|<p class="popup_set">{{{набор|;}}}</p><br/>|}}{{#if:{{{sp|}}}|{{Img|пок}}{{{bp|;}}} {{Img|прод}} {{{sp|;}}}|<i>Нельзя продать торговцу</i>}}<br/><br/>{{#if:{{{ур|}}}|Уровень: <b>{{{ур|;}}}</b>|}}{{#if:{{{sex|}}}| {{#ifexpr:{{{sex|}}}=0|{{Img|Gender_m}}|}}{{#ifexpr:{{{пол|}}}=1|{{Img|Gender_f}}|}}|}} {{#if:{{{мод|}}}| <p class="popup_upgradeable">{{#ifexpr:{{{мод|}}}=0|<span class="popup_txtred">Нельзя модифицировать</span>|<span class="popup_txtgreen">Можно модифицировать</span>}}</p>|}}{{#if:{{{id|}}}|<p class="popup_id"><br/>ID: <b>{{{id|;}}}</b></p>|}}</div> </div></div>{{#if:{{{nb|}}}|<div class="item_number">{{{nb}}}</div>|}}</div></includeonly> <noinclude> | ||
:* To create a template, create a page entitled "Template:Item [Name]" containing this code : | :* To create a template, create a page entitled "Template:Item [Name]" containing this code : | ||
<code><nowiki><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></nowiki></code> | <code><nowiki><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></nowiki></code> |
Версия от 22:40, 18 апреля 2017
- 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...)
- 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}}
Золотой винчестер
Gun
+2 Defense (Fort battle bonus)
+20 Resistance (Fort battle bonus)
test
+20% health points
Файл:Felling trees.png | Felling trees |
Файл:Felling trees.png | Felling trees |
Файл:Felling trees.png | Felling trees |
ID: 50218000
NB: Remove . in <.noinclude></.noinclude>