Шаблон:Recipe list result format — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
 
Строка 1: Строка 1:
 
<includeonly>|-  
 
<includeonly>|-  
| {{item icon|{{#sub:{{{6}}}|0|{{#pos:{{{6}}}|#}}}}|{{#show:{{{6}}}|?Has canonical name}}|large=+}} {{#ifexpr:{{{5|0}}}>1|(x{{{5}}})}}
+
| <span class="medium item-icon thumb-icon" style="display:inline-block;overflow:hidden;vertical-align:middle"><!--
 +
-->[[{{#show:{{{6}}}|?Has game icon|link=none}}|35x35px|bottom|link={{{6}}}]]</span> <!--
 +
-->[[{{{6}}}|{{#if:{{{name|}}}|{{{name}}}|{{#show:{{{6}}}|?Has canonical name|default={{{6}}}}}}}]] {{#ifexpr:{{{5|0}}}>1|(x{{{5}}})}} {{#ifeq: {{{7|}}} ||| <br><small>(Learned from: {{#ifeq: {{#len: {{{7}}} }} | {{#len: {{#replace:{{{7}}}|,|}} }} | [[{{{7}}}]] | multiple recipes }})</small> }}
 
| style="text-align:center" | {{rarity|{{#show:{{{6}}}|?Has item rarity}}}}
 
| style="text-align:center" | {{rarity|{{#show:{{{6}}}|?Has item rarity}}}}
 
{{#ifeq:{{#var:mysticforge}}|y|<!--skip discipline/rating columns-->|<!--
 
{{#ifeq:{{#var:mysticforge}}|y|<!--skip discipline/rating columns-->|<!--
 
   -->{{#ifeq:{{{userparam|x}}}|nodiscipline|<!--skip discipline column-->|
 
   -->{{#ifeq:{{{userparam|x}}}|nodiscipline|<!--skip discipline column-->|
{{!}} style="text-align:center" {{!}} {{#if: {{{2|}}} | {{#arraymap:{{{2}}}|,|@@@|<span style="display:none">@@@</span>{{@@@}}|}} | [[Mystic Forge]] }}<!--
+
{{!}} style="text-align:center" {{!}} {{#if: {{{2|}}} | {{#arraymap:{{{2}}}|,|@@@|<span style="display:none">@@@</span>[[File:@@@ tango icon 20px.png|link=@@@]]|}} | [[Mystic Forge]] }}<!--
 
   -->}}<!-- end ifeq nodiscipline -->
 
   -->}}<!-- end ifeq nodiscipline -->
 
{{!}} style="text-align:center" {{!}} {{{3}}}<!--
 
{{!}} style="text-align:center" {{!}} {{{3}}}<!--
 
-->}}<!-- end ifeq norating -->
 
-->}}<!-- end ifeq norating -->
 
| <div class="ingredients">{{#arraymap:{{#replace:{{{4|}}}|+|}},|),|@@@|<!-- Formatting the ingredients -->
 
| <div class="ingredients">{{#arraymap:{{#replace:{{{4|}}}|+|}},|),|@@@|<!-- Formatting the ingredients -->
;{{#explode:@@@| |0}}:{{#vardefine:recipe_ingredient|{{#sub:@@@|{{#expr:{{#pos:@@@| }}+2}}|{{#expr:{{#len:@@@}}-{{#pos:@@@| }}-2}}}}}}<span class="inline icon" style="width:20px; height:20px; vertical-align:middle;">[[{{#show:{{#var:recipe_ingredient}}|?Has game icon|link=none|default=File:Skill.png}}|link={{#var:recipe_ingredient}}|20x20px]]</span>&nbsp;[[{{#var:recipe_ingredient}}|{{#show:{{#var:recipe_ingredient}}|?Has canonical name}}]]
+
;{{#sub:{{#explode:@@@| |1}}|1|-1}}:{{#vardefine:recipe_ingredient|{{#sub:@@@|{{#expr:{{#pos:@@@| |2}} + 1}}}}}}<span class="small item-icon thumb-icon" style="width:20px; height:20px; vertical-align:middle;">[[{{#show:{{#var:recipe_ingredient}}|?Has game icon|link=none}}|link={{#var:recipe_ingredient}}|20x20px]]</span> [[{{#var:recipe_ingredient}}|{{#show:{{#var:recipe_ingredient}}|?Has canonical name|default={{#var:recipe_ingredient}}}}]]
|\n}}</div>
+
|\n}}
 +
</div>
 
</includeonly><noinclude>
 
</includeonly><noinclude>
This is a semantic result template for use in {{tl|recipe list}}.  The input parameters generated by the semantic query are:
+
This is a semantic result template for use in {{tl|recipe list}} '''and''' {{tl|Recipe table}} .  The input parameters generated by the semantic query are:
 
#Recipe subobject
 
#Recipe subobject
 
#Requires discipline
 
#Requires discipline
Строка 19: Строка 22:
 
#Has output quantity
 
#Has output quantity
 
#Has item data object
 
#Has item data object
 +
#Learned from recipe sheet
 
#{{{userparam}}} nodiscipline - skip rating columns
 
#{{{userparam}}} nodiscipline - skip rating columns
  
 
== Used by ==
 
== Used by ==
 
{{#dpl:
 
{{#dpl:
| namespace = Шаблон
+
| namespace = Template
 
| uses = Template:Recipe list result format
 
| uses = Template:Recipe list result format
 
}}
 
}}

Текущая версия на 14:42, 3 апреля 2018

This is a semantic result template for use in {{recipe list}} and {{Recipe table}} . The input parameters generated by the semantic query are:

  1. Recipe subobject
  2. Requires discipline
  3. Requires rating
  4. Has ingredient
  5. Has output quantity
  6. Has item data object
  7. Learned from recipe sheet
  8. {{{userparam}}} nodiscipline - skip rating columns

Used by[править]

Extension:DynamicPageList (DPL), version 2.3.0 : ОШИБКА: неправильный «namespace»-параметр: «Template»! Подсказка: <code>namespace= <i>пустая строка</i> (Основное) | Guild_Wars_2_wiki | MediaWiki | Категория | Концепция | Обсуждение | Обсуждение_Guild_Wars_2_wiki | Обсуждение_MediaWiki | Обсуждение_категории | Обсуждение_концепции | Обсуждение_свойства | Обсуждение_справки | Обсуждение_участника | Обсуждение_файла | Обсуждение_формы | Обсуждение_шаблона | Свойство | Справка | Участник | Файл | Форма | Шаблон</code>.