Шаблон:Infobox: различия между версиями
Перейти к навигации
Перейти к поиску
Cimex (обсуждение | вклад) |
Cimex (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
− | < | + | <includeonly>{{#if: |
− | + | ||
− | + | {{#arraydefine:qualities|normal,silver,gold|,|unique}}<!-- Excludes iridium, as it is currently handled by {{{iridium}}}. --> | |
− | + | {{#arraydefine:qualities to show | |
− | + | | {{#switch:{{{quality|true}}} | |
− | + | | true = normal, silver, gold, {{#ifeq:{{{iridium|true}}}|true|iridium}} | |
− | + | | false = normal | |
− | + | | #default = normal, {{{quality|}}}, {{#ifeq:{{{iridium|true}}}|true|iridium}} | |
− | + | }} | |
− | + | |,|unique}} | |
− | + | {{#arraydiff:qualities to hide|qualities|qualities to show}} | |
− | + | ||
− | + | {{#arraydefine:name| {{{name|{{PAGENAME}}}}} |<nowiki/>}} | |
− | + | {{#arraydefine:image| {{#if:{{{eng|}}}|{{{image|{{{name|{{{eng|}}}}}}.png}}}|{{{image|{{{name|{{PAGENAME}}}}}.png}}}}} |<nowiki/>}} | |
− | + | {{#arraydefine:description| {{{description|}}} |<nowiki/>}} | |
+ | {{#arraydefine:ingredients| {{{ingredients|}}} |<nowiki/>}} | ||
+ | {{#arraydefine:edibility| {{{edibility|-300}}} |<nowiki/>}} | ||
+ | {{#arraydefine:buff| {{{buff|}}} |<nowiki/>}} | ||
+ | {{#arraydefine:recipe sources| {{{recipe|}}} |<nowiki/>}} | ||
+ | {{#arraydefine:price| {{{sellprice|}}} |<nowiki/>}} | ||
+ | |||
+ | }}<div id="infoboxborder"> | ||
{| id="infoboxtable" | {| id="infoboxtable" | ||
− | |colspan= | + | |colspan=2 id="infoboxheader"|{{{name|{{PAGENAME}}}}} |
|- | |- | ||
− | |colspan= | + | |colspan=2 style="padding-bottom:5px;"|<center>{{#if:{{{image|}}}|[[File:{{{image|}}}.png]]|{{#if:{{{eng|}}}|[[File:{{{eng|}}}.png]]|}}}}{{#if:{{{image2|}}}|[[File:{{{image2|}}}.png]]|}}{{#if:{{{image3|}}}|[[File:{{{image3|}}}.png]]|}}{{#if:{{{image4|}}}|[[File:{{{image4|}}}.png]]|}}</center> |
|- | |- | ||
− | |colspan= | + | |colspan=2 align="center" style="font-style:italic;" id="infoboxdetail"|{{{description|}}} |
|- | |- | ||
− | |colspan= | + | |colspan=2 id="infoboxsection" style="text-align:center;"|Информация{{#if:{{{source|}}}|<nowiki/> |
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxsection"{{!}} | + | {{!}}id="infoboxsection"{{!}}Источник: |
{{!}}id="infoboxdetail"{{!}}{{#ifexist:{{{source|}}}|[[{{{source|}}}]]|{{{source|}}}}} | {{!}}id="infoboxdetail"{{!}}{{#ifexist:{{{source|}}}|[[{{{source|}}}]]|{{{source|}}}}} | ||
|}}{{#if:{{{location|}}}|<nowiki/> | |}}{{#if:{{{location|}}}|<nowiki/> | ||
Строка 39: | Строка 46: | ||
|}}{{#if:{{{buff|}}}|<nowiki/> | |}}{{#if:{{{buff|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxsection"{{!}} | + | {{!}}id="infoboxsection"{{!}}Эффект: |
{{!}}id="infoboxdetail"{{!}}{{{buff|}}} | {{!}}id="infoboxdetail"{{!}}{{{buff|}}} | ||
− | |||
− | |||
− | |||
− | |||
|}}{{#if:{{{season|}}}|<nowiki/> | |}}{{#if:{{{season|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}}id="infoboxsection"{{!}}Время года: | {{!}}id="infoboxsection"{{!}}Время года: | ||
{{!}}id="infoboxdetail"{{!}}{{#switch:{{lc:{{{season|}}}}} | {{!}}id="infoboxdetail"{{!}}{{#switch:{{lc:{{{season|}}}}} | ||
− | | spring | summer | fall | winter = [[File:{{ucfirst:{{lc:{{{season}}}}}}}. | + | | spring | summer | fall | winter = [[File:{{ucfirst:{{lc:{{{season}}}}}}}.png|24px]] [[{{ucfirst:{{lc:{{{season}}}}}}}]] |
− | | all | any = | + | | all | any = Все |
− | | [[spring]] = [[File:Spring. | + | | [[spring]] = [[File:Spring.png|24px]] [[Весна]] |
− | | [[summer]] = [[File:Summer. | + | | [[summer]] = [[File:Summer.png|24px]] [[Лето]] |
− | | [[winter]] = [[File:Winter. | + | | [[winter]] = [[File:Winter.png|24px]] [[Зима]] |
− | | [[fall]] = [[File:Fall. | + | | [[fall]] = [[File:Fall.png|24px]] [[Осень]] |
| #default = {{{season|}}} | | #default = {{{season|}}} | ||
}}}}{{#if:{{{edibility|}}}|<nowiki/> | }}}}{{#if:{{{edibility|}}}|<nowiki/> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{!}}- | {{!}}- | ||
− | + | {{!}}id="infoboxsection"{{!}}Восстанавливает: | |
− | {{!}}id=" | + | {{!}}id="infoboxdetail"{{!}}{{#iferror:{{Edibility|{{{edibility|0}}}|quality={{{quality|true}}}|iridium={{{iridium|}}} }}|{{{edibility}}}|{{Edibility|{{{edibility|0}}}|quality={{{quality|true}}}|iridium={{{iridium|}}} }} }} |
− | + | }}{{#ifeq:{{#arrayprint:qualities to show}}|normal||{{#if:{{{profession|{{{type|}}}}}}|<nowiki/> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{!}}- | {{!}}- | ||
− | {{!}}colspan= | + | {{!}}colspan=2 id="infoboxsection" style="text-align:center;"{{!}}Цены продажи |
}}}} | }}}} | ||
− | + | |- | |
− | + | |id="infoboxsection"|{{#ifeq:{{#arrayprint:qualities to show}}|normal | |
|Цена продажи: | |Цена продажи: | ||
|{{#if:{{{profession|}}}|Базовая цена:|Цена продажи:}} | |{{#if:{{{profession|}}}|Базовая цена:|Цена продажи:}} | ||
− | }} | + | }} |
− | + | |id="infoboxdetail"|{{#if:{{{sellprice|}}} | |
| {{#iferror:{{#expr:{{{sellprice|0}}}>0}} | | {{#iferror:{{#expr:{{{sellprice|0}}}>0}} | ||
| {{{sellprice|}}} | | {{{sellprice|}}} | ||
| {{#ifeq:{{#arrayprint:qualities to show}}|normal | | {{#ifeq:{{#arrayprint:qualities to show}}|normal | ||
| {{price|{{{sellprice|0}}}}} | | {{price|{{{sellprice|0}}}}} | ||
− | | {{Qualityprice|{{{ | + | | {{Qualityprice|{{{image|{{#if:{{{eng|}}}|{{{eng|}}}|{{PAGENAME}}|}}}}}|{{{sellprice|}}}|{{#if:{{{iridium|}}}|iridium=true|}}|hide={{#arrayprint:qualities to hide}} }} |
}} | }} | ||
}} | }} | ||
| N/A | | N/A | ||
}}{{#if:{{{profession|}}} | }}{{#if:{{{profession|}}} | ||
− | | | + | | {{#arraydefine:professions|{{{profession|}}}|,|unique|sort=asc}} |
{{#arrayprint:professions||@@@ | {{#arrayprint:professions||@@@ | ||
| {{#arraydefine:prof_mod|{{#switch:{{lc:@@@}} | | {{#arraydefine:prof_mod|{{#switch:{{lc:@@@}} | ||
Строка 176: | Строка 97: | ||
}}}}<nowiki/> | }}}}<nowiki/> | ||
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxsection"{{!}} | + | {{!}}id="infoboxsection"{{!}}С профессией @@@:<br/>''(+{{#expr:{{#arrayprint:prof_mod}} *100}}% к цене продажи)'' |
− | |||
− | |||
− | |||
− | |||
{{!}}id="infoboxdetail"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal | {{!}}id="infoboxdetail"{{!}}{{#ifeq:{{#arrayprint:qualities to show}}|normal | ||
| {{price| {{#expr:trunc({{{sellprice|0}}}*(1+{{#arrayprint:prof_mod}}))}} }} | | {{price| {{#expr:trunc({{{sellprice|0}}}*(1+{{#arrayprint:prof_mod}}))}} }} | ||
− | | {{Qualityprice|{{{ | + | | {{Qualityprice|{{{image|{{#if:{{{eng|}}}|{{{eng|}}}|{{PAGENAME}}|}}}}}|{{#expr:trunc({{{sellprice|0}}}*(1+{{#arrayprint:prof_mod}}))}}|{{#if:{{{iridium|}}}|iridium=true|}}|hide={{#arrayprint:qualities to hide}} }} |
}} | }} | ||
}} | }} | ||
}} | }} | ||
− | |||
− | |||
− | |||
{{#switch:{{lc:{{{type|{{PAGENAME}}}}}}} | {{#switch:{{lc:{{{type|{{PAGENAME}}}}}}} | ||
− | |fruit|fruits|vegetable|vegetables|wheat|hops|honey= | + | |fruit|fruits|vegetable|vegetables|wheat|hops|coffee bean|honey= |
{{!}}- | {{!}}- | ||
{{!}}id="infoboxsection"{{!}}Базовая цена товаров: | {{!}}id="infoboxsection"{{!}}Базовая цена товаров: | ||
− | {{!}}id=" | + | {{!}}id="infoboxdetail"{{!}}{{Artisan|{{{type|{{#if:{{{eng|}}}|{{{eng|}}}|{{PAGENAME}}|}}}}}|{{{sellprice|0}}}}} |
{{!}}- | {{!}}- | ||
− | + | {{!}}id="infoboxsection"{{!}}Золотые руки:<br/>''(+40% к цене продажи)'' | |
− | + | {{!}}id="infoboxdetail"{{!}}{{Artisan|{{{type|{{#if:{{{eng|}}}|{{{eng|}}}|{{PAGENAME}}|}}}}}|{{{sellprice|0}}}|pro=1}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{!}}id="infoboxsection | ||
− | |||
− | |||
− | |||
− | {{!}}id="infoboxdetail"{{!}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
− | |||
− | |||
− | | | ||
− | {{ | ||
− | |||
− | { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}{{#if:{{{ingredients|}}}|<nowiki/> | }}{{#if:{{{ingredients|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
− | {{!}}colspan= | + | {{!}}colspan=2 id="infoboxsection" style="text-align:center;"{{!}}{{#ifeq:{{{craftingstation|}}}|Kitchen Stove|Cooking{{mainonly|[[Category:Recipes]]}}|Crafting{{mainonly|[[Category:Craftable items]]}}}} |
}}{{#if:{{{recipe|}}}|<nowiki/> | }}{{#if:{{{recipe|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
Строка 306: | Строка 121: | ||
}}{{#if:{{{craftingstation|}}}|<nowiki/> | }}{{#if:{{{craftingstation|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
− | {{!}}id="infoboxsection"{{!}} | + | {{!}}id="infoboxsection"{{!}}Станция: |
{{!}}id="infoboxdetail"{{!}}{{{craftingstation|}}} | {{!}}id="infoboxdetail"{{!}}{{{craftingstation|}}} | ||
− | |||
− | |||
− | |||
− | |||
}}{{#if:{{{ingredients|}}}|<nowiki/> | }}{{#if:{{{ingredients|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}}id="infoboxsection"{{!}}Состав: | {{!}}id="infoboxsection"{{!}}Состав: | ||
{{!}}id="infoboxdetail"{{!}}{{{ingredients|}}} | {{!}}id="infoboxdetail"{{!}}{{{ingredients|}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
+ | |- | ||
+ | |colspan=2 id="infoboxfooter"| | ||
|}{{InfoboxSEO}}{{#seo: | |}{{InfoboxSEO}}{{#seo: | ||
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | |og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | ||
− | }}</div></includeonly><noinclude> | + | }}</div></includeonly> |
+ | <noinclude>{{englishdoc}}</noinclude> |
Версия 10:15, 29 июля 2017
Для получения подробной информации о данном шаблоне обратитесь к документации на английском языке.
Применение
Этот шаблон можно использовать путем ввода следующего на соответствующей странице:
{{Infobox}}
Результаты в ...
Infobox | |
Информация | |
Цена продажи: | N/A |
Error: {{#seo:}} must contain at least one non-empty attribute.