Template:Infobox: Difference between revisions

127 bytes removed ,  22:25, 5 May 2023
Manually reverting - outlined in discussion page. Outstanding line break issue and reordering needs discussion
No edit summary
Tag: Reverted
(Manually reverting - outlined in discussion page. Outstanding line break issue and reordering needs discussion)
Tag: Undo
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:{{{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:{{{tags|}}}|{{#ifeq: {{{tags|}}}|none|[[Category:No Tags|No Tags]]|<nowiki/>
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Tags:
   {{!}} id="infobox-label" {{!}} Tags:
Line 340: Line 349:
   {{!}} id="infobox-label" {{!}} Secondary&nbsp;Default:
   {{!}} id="infobox-label" {{!}} Secondary&nbsp;Default:
   {{!}} id="infobox-detail" {{!}}  {{color|{{{defaultsecondarycolor|}}}}}
   {{!}} id="infobox-detail" {{!}}  {{color|{{{defaultsecondarycolor|}}}}}
}}{{#if:{{{pieces|}}}|<nowiki/>
}}{{#if:{{{environment|}}}|<nowiki/>
  {{!}}-
  {{!}} id="infobox-label" {{!}} 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:{{{environment|}}}|<nowiki/>
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Environment:
   {{!}} id="infobox-label" {{!}} Environment:
Line 363: Line 357:
           |wateronly=[[Category:Outdoor Only]][[:Category:Outdoor Only|Outdoor Only, On Water]]
           |wateronly=[[Category:Outdoor Only]][[:Category:Outdoor Only|Outdoor Only, On Water]]
           |#default=}}
           |#default=}}
}}
}}{{#if:{{{pieces|}}}|<nowiki/>
{{#if:{{{minfeedings|}}}|<nowiki/>
   {{!}}-
   {{!}}-
   {{!}} id="infobox-label" {{!}} Minimum Feedings:
   {{!}} id="infobox-label" {{!}} Pieces:
   {{!}} {{{minfeedings|}}}
   {{!}} {{{pieces|}}}
}}
}}
|}{{#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>