Template:Infobox: Difference between revisions

From Dreamlight Valley Wiki
Jump to navigation Jump to search
(fix automatically adding memory frame as category)
(Automatically add Meals category and X-Star Meals category)
Line 1: Line 1:
<includeonly>{| class=wikitable id="infobox"
<includeonly>{| class=wikitable id="infobox"
! colspan=2| {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}{{#if:{{{stars|}}}|<nowiki/>
! colspan=2| {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}{{#if:{{{stars|}}}|[[Category:{{{stars|}}}-Star Meals]]<nowiki/>
   {{!}}-
   {{!}}-
   {{!}} colspan=2 {{!}} <div id="navbox-stars">{{stars|{{{stars|}}}}}<br></div>
   {{!}} colspan=2 {{!}} <div id="navbox-stars">{{stars|{{{stars|}}}}}<br></div>
Line 69: Line 69:
   {{!}} id="infobox-label" {{!}} Type:
   {{!}} id="infobox-label" {{!}} Type:
   {{!}} <span id="nametemplate">{{#switch:{{{type|}}}
   {{!}} <span id="nametemplate">{{#switch:{{{type|}}}
           |Meal=[[File:Menu_Icon_Meals.png|22px|link=Cooking#Meals]] [[Cooking#Meals|Meal]]
           |Meal=[[File:Menu_Icon_Meals.png|22px|link=Cooking#Meals]] [[Cooking#Meals|Meal]] [[Category: Meals]]
           |Meals=[[File:Menu_Icon_Meals.png|22px|link=Cooking#Meals]] [[Cooking#Meals|Meal]]
           |Meals=[[File:Menu_Icon_Meals.png|22px|link=Cooking#Meals]] [[Cooking#Meals|Meal]]
           |Ingredient
           |Ingredient

Revision as of 19:32, 10 June 2023

For usage guidelines, please see: Template:Infobox/doc