Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
If you make an edit, a temporary account will be created for you.

Template:Dish Infobox: Difference between revisions

Template page
Changed category to accept semicolon separated list. Storing "recipe" as "recipe_source" for bucket
Reverted category change. Instead: now accepts "removed" as a separate boolean parameter
Line 25: Line 25:
   --></span><!--
   --></span><!--
-->}}
-->}}
|Category = <!--
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
-->{{#if:{{#explode:{{{category}}}|;|1}}<!--
  -->|<ul>{{Array|{{{category}}}|;|<li>²{#ifeq:{item}¦Removed¦[[:Category:{item}|{item}]]¦[[{item}]]}²</li>|template=1}}</ul><!--
  -->|[[{{{category|}}}]]<!--
-->}}
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|<ul><li>{item}</li></ul><!---->}}}}
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|<ul><li>{item}</li></ul><!---->}}}}
|Cuisine = {{#if:{{{cuisine|}}}|{{Item|{{{cuisine}}} Cuisine}}|}}
|Cuisine = {{#if:{{{cuisine|}}}|{{Item|{{{cuisine}}} Cuisine}}|}}
Line 59: Line 55:
|+templateargs = number, quality, category, type, cuisine, kitchenware, strength, favorite, sell, description, source
|+templateargs = number, quality, category, type, cuisine, kitchenware, strength, favorite, sell, description, source
|page_id = {{PAGEID}}
|page_id = {{PAGEID}}
|category-delimiter = ;
|type-delimiter = ;
|type-delimiter = ;
|source-delimiter = ;
|source-delimiter = ;
|recipe_source = {{{recipe|}}}
|recipe_source = {{{recipe|}}}
|removed = {{{removed|0}}}
}}<!--
}}<!--


Line 78: Line 74:
-->{{#if:{{{number|}}}|[[Category:Dish by Number|{{{number}}}]]|[[Category:Dish by Number]][[Category:Dish Missing Number]]}}<!--
-->{{#if:{{{number|}}}|[[Category:Dish by Number|{{{number}}}]]|[[Category:Dish by Number]][[Category:Dish Missing Number]]}}<!--
   Category
   Category
-->{{#if:{{{category|}}}|{{Array|{{{category}}}|;|[[Category:{item}]]}}}}<!--
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
   Type
   Type
-->{{#if:{{{types|}}}|{{Array|{{{types}}}|;|[[Category:{item} Dishes]]}}}}<!--
-->{{#if:{{{types|}}}|{{Array|{{{types}}}|;|[[Category:{item} Dishes]]}}}}<!--