Template:Infobox: Difference between revisions
Jump to navigation
Jump to search
(add "none" as hidden value for functions (for use cases when it seems like an object should/might have functionality, but doesn't, like items with storage category or heavily cooking themed)) |
KingofFables (talk | contribs) No edit summary Tag: Reverted |
||
Line 95: | Line 95: | ||
{{!}} id="infobox-label" {{!}} Categories: | {{!}} id="infobox-label" {{!}} Categories: | ||
{{!}} {{#arraydefine:a-category|{{{category|}}}}}{{#arrayprint:a-category|<br/>|@@@@|<span id="nametemplate">{{category|@@@@}}</span>}} | {{!}} {{#arraydefine:a-category|{{{category|}}}}}{{#arrayprint:a-category|<br/>|@@@@|<span id="nametemplate">{{category|@@@@}}</span>}} | ||
}}{{#if:{{{tags|}}}|{{#ifeq: {{{tags|}}}|none|[[Category:No Tags|No Tags]]|<nowiki/> | }}{{#if:{{{tags|}}}|{{#ifeq: {{{tags|}}}|none|[[Category:No Tags|No Tags]]|<nowiki/> | ||
{{!}}- | {{!}}- | ||
Line 361: | Line 352: | ||
{{!}} id="infobox-label" {{!}} Pieces: | {{!}} id="infobox-label" {{!}} Pieces: | ||
{{!}} {{{pieces|}}} | {{!}} {{{pieces|}}} | ||
}}}}{{#if:{{{size|}}}|<nowiki/> | |||
{{!}}- | |||
{{!}} id="infobox-label" {{!}} {{#if:{{{placement|}}}|Placement:|Size:}} | |||
{{!}} <span style="letter-spacing: 5px; font-weight: bold;">{{{size|}}}</span> {{#if:{{{placement|}}}|{{#switch:{{{placement|}}} | |||
|surfaces=([[:Category:Surfaces|Surfaces]][[Category:Surfaces]]) | |||
|walls=([[:Category:Walls|Walls]][[Category:Walls]]) | |||
|ceilings=([[:Category:Ceilings|Ceilings]][[Category:Ceilings]]) | |||
|untiled= | |||
|#default=}}|}} | |||
}} | }} | ||
|}{{#if:{{{character|}}}|{{TOC Right}}|}}{{#if:{{{voice|}}}|{{TOC Right}}|}}{{SEO | |}{{#if:{{{character|}}}|{{TOC Right}}|}}{{#if:{{{voice|}}}|{{TOC Right}}|}}{{SEO | ||
|image={{#if:{{{image|}}}|{{{image|}}}|}} | |image={{#if:{{{image|}}}|{{{image|}}}|}} | ||
|keywords={{#if:{{{ingredients|}}}|recipe, cooking recipe, ingredients|}}{{#if:{{{recipe|}}}|recipe, crafting recipe, materials|}}{{#if:{{{favfood|}}}|critter, schedule, critter schedule, favorite, food, feed, catch|}}}}</includeonly><noinclude>[[Category:Infobox templates]]</noinclude> | |keywords={{#if:{{{ingredients|}}}|recipe, cooking recipe, ingredients|}}{{#if:{{{recipe|}}}|recipe, crafting recipe, materials|}}{{#if:{{{favfood|}}}|critter, schedule, critter schedule, favorite, food, feed, catch|}}}}</includeonly><noinclude>[[Category:Infobox templates]]</noinclude> |