User:BryghtShadow/recipe list result format

From Guild Wars 2 Wiki
Jump to navigationJump to search

This is a semantic result template for use in {{recipe list}}. 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. {{{#userparam}}} nodiscipline - skip rating columns

Used by[edit]

Example[edit]

{{#ask:[[Requires rating::>{{{min rating|0}}}]]
       [[Requires rating::<{{{max rating|500}}}]]
       {{#if:{{{discipline|}}}|[[Requires discipline::{{{discipline}}}]]}}
       {{#if:{{{type|}}}|[[Has recipe type::{{{type}}}]]}}
       {{#if:{{{ingredient|Philosopher's Stone}}}|[[Has ingredient::?;?;{{{ingredient|Philosopher's Stone}}}]]}}
       {{#if:{{{source|Mystic forge}}}|[[Has recipe source::{{{source|Mystic forge}}}]]}}
       {{#if:{{{sheet|}}}|[[Learned from recipe sheet::{{{sheet}}}]]}}
       {{#if:{{{item name|}}}|[[Has item data object.Has canonical name::~*{{{item name}}}*]]}}
       {{#if:{{{item type|}}}|[[Has item data object.Has item type::{{{item type}}}]]}}
       {{#if:{{{other|}}}|{{{other}}}}}
       {{#if:{{{timegate|}}}|[[Is time gated::Y]]}}
|?Requires discipline
|?Requires rating
|?Has ingredient
|?Has output quantity
|?Has item data object
| link = none
| format = template
| template = User:BryghtShadow/recipe list result format
| intro = {{Recipe list header|source={{{source|Mystic forge}}}|class={{{class|}}}}} <!-- Hides ratings for Mystic Forge source -->
| outro = {{!}}}
| sort = {{{sort|Requires rating, Has item data object}}} <!-- Mystic Forge recipes have rating of 0 generally -->
| sortorder = descending
| limit = {{{limit|200}}}
| default = No recipes found that match the constraints of the query.
}}
<!--
CPU time usage	16.441 seconds
Real time usage	19.525 seconds
Preprocessor visited node count	41709/1000000
Preprocessor generated node count	207196/1000000
Post-expand include size	888431/2097152 bytes
Template argument size	63296/2097152 bytes
Highest expansion depth	8/40
Expensive parser function count	0/100
-->
{{#ask:[[Requires rating::>{{{min rating|0}}}]]
       [[Requires rating::<{{{max rating|500}}}]]
       {{#if:{{{discipline|}}}|[[Requires discipline::{{{discipline}}}]]}}
       {{#if:{{{type|}}}|[[Has recipe type::{{{type}}}]]}}
       {{#if:{{{ingredient|Philosopher's Stone}}}|[[Has ingredient::?;?;{{{ingredient|Philosopher's Stone}}}]]}}
       {{#if:{{{source|Mystic forge}}}|[[Has recipe source::{{{source|Mystic forge}}}]]}}
       {{#if:{{{sheet|}}}|[[Learned from recipe sheet::{{{sheet}}}]]}}
       {{#if:{{{item name|}}}|[[Has item data object.Has canonical name::~*{{{item name}}}*]]}}
       {{#if:{{{item type|}}}|[[Has item data object.Has item type::{{{item type}}}]]}}
       {{#if:{{{other|}}}|{{{other}}}}}
       {{#if:{{{timegate|}}}|[[Is time gated::Y]]}}
|?Requires discipline
|?Requires rating
|?Has ingredient
|?Has output quantity
|?Has item data object
| link = none
| format = template
| template = User:BryghtShadow/recipe list result format
| intro = {{Recipe list header|source={{{source|Mystic forge}}}|class={{{class|}}}}} <!-- Hides ratings for Mystic Forge source -->
| outro = {{!}}}
| sort = {{{sort|Requires rating, Has item data object}}} <!-- Mystic Forge recipes have rating of 0 generally -->
| sortorder = descending
| limit = {{{limit|200}}}
| default = No recipes found that match the constraints of the query.
}}