Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
(clause to prevent Hairstyle Hairstyle category) |
(add Facial Hair along with Hairstyle condition to auto-create Trait + Hairstyle and Tag + Hairstyle categories for facial hair items) |
||
Line 235: | Line 235: | ||
{{!}}- | {{!}}- | ||
{{!}} id="infobox-label" {{!}} Tags: | {{!}} id="infobox-label" {{!}} Tags: | ||
{{!}} {{#arraydefine:a-tag|{{{tags|}}}}}{{#arrayprint:a-tag| |@@@@| {{tag|@@@@|{{{type|}}}|category=yes}} {{# | {{!}} {{#arraydefine:a-tag|{{{tags|}}}}}{{#arrayprint:a-tag| |@@@@| {{tag|@@@@|{{{type|}}}|category=yes}} {{#switch:{{{category|}}} | ||
|Hairstyle | |||
|Facial Hair={{#ifeq:@@@@|Hairstyle|<!--Do not create Hairstyle Hairstyle Category-->|[[Category:@@@@ Hairstyle]]<!--Also use Hairstyle Categories for Facial Hair-->}} | |||
|#default=}} }} {{#if:{{{eventTokens|}}}|{{tag|starpath|{{#switch:{{{from|}}} | |||
|Pixar Fest Star Path=Pixar Fest | |Pixar Fest Star Path=Pixar Fest | ||
|Villains' Star Path=Villains | |Villains' Star Path=Villains | ||
Line 288: | Line 291: | ||
|Crafted Furniture | |Crafted Furniture | ||
|Furniture=[[Category: @@@@ Furniture]] | |Furniture=[[Category: @@@@ Furniture]] | ||
|Clothing=[[Category: @@@@ Clothing]] {{# | |Clothing=[[Category: @@@@ Clothing]] {{#switch:{{{category|}}} | ||
|Hairstyle | |||
|Facial Hair=[[Category:@@@@ Hairstyle]]<!--Also use Hairstyle Categories for Facial Hair--> | |||
|#default=}} | |||
|#default=[[Category: @@@@]]}} }} | |#default=[[Category: @@@@]]}} }} | ||
}}}}{{#if:{{{seed|}}}|<nowiki/> | }}}}{{#if:{{{seed|}}}|<nowiki/> |
Revision as of 01:04, 9 April 2024
For usage guidelines, please see: Template:Infobox/doc