Template:Dish Infobox: Difference between revisions
Added auto-pluralization for type and source labels |
Moved quality class to affect entire infobox |
||
| Line 2: | Line 2: | ||
|kind = Dish | |kind = Dish | ||
|sep = ,, | |sep = ,, | ||
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}} | |||
|title = <!-- | |title = <!-- | ||
-->{{{title|<!-- | -->{{{title|<!-- | ||
-->{{#if:{{{number|}}}| | -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!-- | ||
-->{{{name|{{PAGENAME}}}}}<!-- | |||
-->{{{name|{{PAGENAME}}}}}<!-- | |||
-->}}} | -->}}} | ||
|subtitle = {{{subtitle|}}} | |subtitle = {{{subtitle|}}} | ||
| Line 19: | Line 16: | ||
|Information_collapsible = Yes | |Information_collapsible = Yes | ||
|Information = Quality,, Category,, Type,, Cuisine,, Kitchenware,, Strength,, Favorite<!--,, Folio Score,,--> Selling Price | |Information = Quality,, Category,, Type,, Cuisine,, Kitchenware,, Strength,, Favorite<!--,, Folio Score,,--> Selling Price | ||
|Quality = | |Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}} | ||
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}} | |Category = {{#if:{{{category|}}}|[[{{{category}}}]]}} | ||
|Type = {{#if:{{#explode:{{{type}}}|;|1}}|{{List|{{{type}}}}}|{{{type|}}}}} | |Type = {{#if:{{#explode:{{{type}}}|;|1}}|{{List|{{{type}}}}}|{{{type|}}}}} | ||