Шаблон:Recipe list by discipline — различия между версиями
Материал из Guild Wars 2 wiki
Строка 1: | Строка 1: | ||
<includeonly>{{trim| | <includeonly>{{trim| | ||
− | {{#ifexpr:{{#ask:[[Has ingredient::?;{{{1|{{# | + | {{#ifexpr:{{#ask:[[Has ingredient::?;?;{{{1| {{#titleparts:{{{1|{{BASEPAGENAME}}}}} }}}}}]] [[Has recipe source::Mystic forge]] {{{other|}}}|format=count}} > 0 | |
− | + | === Mystic Forge === | |
− | {{recipe table|ingredient={{{1|{{# | + | {{recipe table|ingredient={{{1| {{#titleparts:{{{1|{{BASEPAGENAME}}}}} }}}}}|source=Mystic forge|limit={{{limit|200}}}|other={{{other|}}}}} |
}}<!-- end ifexpr for Mystic Forge --> | }}<!-- end ifexpr for Mystic Forge --> | ||
− | {{#ifexpr:{{#ask:[[Has ingredient::?;{{{1|{{# | + | {{#ifexpr:{{#ask:[[Has ingredient::?;?;{{{1| {{#titleparts:{{{1|{{BASEPAGENAME}}}}} }}}}}]] [[Discipline count::>2]] {{{other|}}}|format=count}} > 0 | |
− | + | === General === | |
{{recipe list header}} | {{recipe list header}} | ||
− | {{#ask: [[Has ingredient::?;{{{1|{{# | + | {{#ask: [[Has ingredient::?;?;{{{1| {{#titleparts:{{{1|{{BASEPAGENAME}}}}}}} }}}]] [[Discipline count::>2]] {{{other|}}} |
| ?Requires discipline | | ?Requires discipline | ||
| ?Requires rating | | ?Requires rating | ||
Строка 18: | Строка 18: | ||
| sort = Requires rating, Has canonical name | | sort = Requires rating, Has canonical name | ||
| sortorder = descending | | sortorder = descending | ||
− | | limit = 150 | + | | limit = {{{limit|150}}} |
}} | }} | ||
{{!}}} | {{!}}} | ||
}}<!-- end ifexpr for General --> | }}<!-- end ifexpr for General --> | ||
− | {{#arraymap:Armorsmith, Artificer, Chef, Huntsman, Jeweler, Leatherworker, Tailor, Weaponsmith|,|@@@|<!-- | + | {{#arraymap:Armorsmith, Artificer, Chef, Huntsman, Jeweler, Leatherworker, Scribe, Tailor, Weaponsmith|,|@@@|<!-- |
− | -->{{#ifexpr:{{#ask:[[Has ingredient::?;{{{1|{{# | + | -->{{#ifexpr:{{#ask:[[Has ingredient::?;?;{{{1| {{#titleparts:{{{1|{{BASEPAGENAME}}}}}}} }}}]] [[Requires discipline::@@@]] [[Discipline count::1]] {{{other|}}}|format=count}} > 0 | |
− | + | === {{@@@}} @@@ === | |
{{{!}} {{STDT|recipe sortable}} {{#vardefine:mysticforge}} | {{{!}} {{STDT|recipe sortable}} {{#vardefine:mysticforge}} | ||
! style="width:300px" {{!}} Item | ! style="width:300px" {{!}} Item | ||
Строка 31: | Строка 31: | ||
! style="min-width:375px" {{!}} Ingredients | ! style="min-width:375px" {{!}} Ingredients | ||
{{!}}- | {{!}}- | ||
− | {{#ask: [[Has ingredient::?;{{{1|{{# | + | {{#ask: [[Has ingredient::?;?;{{{1| {{#titleparts:{{{1|{{BASEPAGENAME}}}}}}} }}}]] [[Requires discipline::@@@]] [[Discipline count::1]] {{{other|}}} |
| ?Requires discipline | | ?Requires discipline | ||
| ?Requires rating | | ?Requires rating | ||
Строка 43: | Строка 43: | ||
| sort = Requires rating, Has canonical name | | sort = Requires rating, Has canonical name | ||
| sortorder = descending | | sortorder = descending | ||
− | | limit = 150 | + | | limit = {{{limit|150}}} |
}} | }} | ||
{{!}}} | {{!}}} | ||
Строка 60: | Строка 60: | ||
;Unnamed parameter 1 | ;Unnamed parameter 1 | ||
: Query term. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. | : Query term. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. | ||
+ | ;limit | ||
+ | : Maximum number of results to return. | ||
+ | ;other | ||
+ | : Additional query restrictions. Use sparingly. | ||
== Example == | == Example == | ||
− | <pre>{{recipe list by discipline| | + | <pre>{{recipe list by discipline|Copper Ore}}</pre> |
− | {{recipe list by discipline| | + | {{recipe list by discipline|Copper Ore}} |
[[Category:Recipe formatting templates]]</noinclude> | [[Category:Recipe formatting templates]]</noinclude> |
Текущая версия на 16:52, 3 апреля 2018
Usage[править]
Generates a list of recipes requiring the ingredient. The list is sectioned by discipline, including sections for Mystic Forge recipes and General recipes, with the intent of easing navigation in very long recipe lists. For short lists, use the simpler {{recipe list}}.
{{recipe list by discipline}} {{recipe list by discipline|<Item>}}
Parameters[править]
- Unnamed parameter 1
- Query term. Defaults to
{{PAGENAME}}
. - limit
- Maximum number of results to return.
- other
- Additional query restrictions. Use sparingly.
Example[править]
{{recipe list by discipline|Copper Ore}}
Mystic Forge
Item | Rarity | Ingredients |
---|---|---|
Iron Ore (x40) |
General
Item | Rarity | Discipline(s) | Rating | Ingredients |
---|---|---|---|---|
Bronze Ingot (x5) | 0 |
| ||
Copper Ingot | 0 | |||
Iron Ore (x40) | Mystic Forge | 0 |