Template:BundleDescription: Difference between revisions

add support for exact item counts in description
No edit summary
(add support for exact item counts in description)
Line 1: Line 1:
<includeonly><b>{{{1|}}}</b><!--'''{{PAGENAME}}'''--> {{#switch:{{{type|}}}
<includeonly>{{#arraydefine:itemArray|{{{items|}}}}}<b>{{{1|}}}</b><!--'''{{PAGENAME}}'''--> {{#switch:{{{type|}}}
     |Premium Bundle=is a [[Premium Shop|Premium Bundle]] that contains one or more {{#switch:{{{category|}}}
     |Premium Bundle=is a [[Premium Shop|Premium Bundle]] that contains {{#switch:{{#arraysize:itemArray}}
           |Companion=[[Companions#Premium Companions|Companion]]
          |1=one
           |Character Dream Style=
          |2=two
           |House Dream Style=
          |3=three
           |Tool Dream Style=
          |4=four
           |Clothing
          |5=five
           |Furniture
          |6=six
           |#default=[[{{{category|}}}]]}} items
          |7=seven
          |8=eight
          |#default={{#arraysize:itemArray}}}} {{#switch:{{{category|}}}
           |Companion=[[Companions#Premium Companions|Companion{{#ifeq:{{#arraysize:itemArray}}|1||s}}]]
           |Character Dream Style=[[Dream Styles#Character Dream Styles|Character Dream Style]] {{#if:{{{character|}}}|which changes the appearance of [[{{{character}}}]]|}}
           |House Dream Style=[[Dream Styles#House Dream Styles|Player House Dream Style]], which a fully upgraded [[Player House|player house]] can be transformed into, or the style can be placed in the valley as a separate [[Player House|player house]].
           |Tool Dream Style=[[Dream Styles#Tool Dream Styles|Tool Dream Style]] which unlocks alternative appearances for the player's [[tools]].
           |Clothing=[[Clothing]] item{{#ifeq:{{#arraysize:itemArray}}|1||s}}
           |Furniture=[[Clothing]] item{{#ifeq:{{#arraysize:itemArray}}|1||s}}
           |#default=[[{{{category|}}}]] item{{#ifeq:{{#arraysize:itemArray}}|1||s}}}}
     |#default= is an item}}.<!--/type-->
     |#default= is an item}}.<!--/type-->


Line 17: Line 26:
==Included Items==
==Included Items==
<ul class="gallery mw-gallery-traditional linked-gallery">
<ul class="gallery mw-gallery-traditional linked-gallery">
{{#arraydefine:itemArray|{{{items|}}}}}
 
{{#arrayprint:itemArray |&nbsp;| @@@@ | {{Gallery|@@@@|caption='''[[@@@@]]'''|link=@@@@}} }}</ul>}}
{{#arrayprint:itemArray |&nbsp;| @@@@ | {{Gallery|@@@@|caption='''[[@@@@]]'''|link=@@@@}} }}</ul>}}


Line 25: Line 34:
<h3>Note</h3>
<h3>Note</h3>
{{{note|}}}|}}<!--/note--></includeonly><noinclude>
{{{note|}}}|}}<!--/note--></includeonly><noinclude>
 
<!--{{BundleDescription
<!--
{{BundleDescription
|Divider Shelf
|Divider Shelf
|type=Premium Bundle
|type=Premium Bundle
Line 40: Line 47:
}}
}}
1.6 - Changed name from ''Princesses Room Divider Shelf''.}}
1.6 - Changed name from ''Princesses Room Divider Shelf''.}}


{{BundleDescription
{{BundleDescription
Line 54: Line 60:
* 2023-07-05 - 2023-07-12
* 2023-07-05 - 2023-07-12
}}
}}
1.5 Updated image for Whimsical Pink Companion Pack 1
1.5 Updated image for Whimsical Pink Companion Pack 1--></noinclude>
-->
</noinclude>