Template:SpawningItemDescription: Difference between revisions

fixes to the conditionals if there's no respawn locations. Also I think it was just broken, my #defaults were missing #
No edit summary
(fixes to the conditionals if there's no respawn locations. Also I think it was just broken, my #defaults were missing #)
Line 1: Line 1:
<includeonly>{{#arraydefine:originalLocationsArray|{{{originalLocations|}}}}}{{#arraydefine:respawnLocationsArray|{{{respawnLocations|}}}}}'''{{PAGENAME}}''' is a spawning item that can be cleared to collect materials. {{#if:{{{originalLocations|}}}|Some appear by default at the beginning of the game in the {{#arrayprint: originalLocationsArray || arrayItem |[[arrayItem]]|print=pretty}}.|}} {{#if:{{{respawnLocations|}}}|{{#switch:{{{dailyRespawnLimit|}}}
<includeonly>{{#arraydefine:originalLocationsArray|{{{originalLocations|}}}}}{{#arraydefine:respawnLocationsArray|{{{respawnLocations|}}}}}'''{{PAGENAME}}''' is a spawning item that can be cleared to collect materials. {{#if:{{{originalLocations|}}}|Some appear by default at the beginning of the game in the {{#arrayprint: originalLocationsArray || arrayItem |[[arrayItem]]|print=pretty}}.|}} {{#if:{{{respawnLocations|}}}|{{#switch:{{{dailyRespawnLimit|}}}
|1=One will
|1=One will
|default=A few may}} spawn daily {{#switch:{{{respawnLocations|}}}
|#default=A few may}} spawn daily {{#switch:{{{respawnLocations|}}}
|anywhere outdoors=anywhere outdoors in the Valley.
|anywhere outdoors=anywhere outdoors in the Valley.
|Dazzle Beach=on [[Dazzle Beach]].
|Dazzle Beach=on [[Dazzle Beach]].
|default=in the {{#arrayprint: respawnLocationsArray || arrayItem |[[arrayItem]]|print=pretty}}.}}|.}}
|#default=in the {{#arrayprint: respawnLocationsArray || arrayItem |[[arrayItem]]|print=pretty}}.}}|}}


They can be cleared by using the {{{requiredTool|}}}. When cleared, they yield {{{yield|}}}.</includeonly><noinclude>
They can be cleared by using the {{{requiredTool|}}}. When cleared, they yield {{{yield|}}}.</includeonly><noinclude>
<hr>
{{SpawningItemDescription
|originalLocations=Sunlit Plateau
|respawnLocations=
|requiredTool=[[Shovel]] (upgrade 2)
|yield=[[Clay]]
}}
<hr>


Daily Moonstone Chest
Daily Moonstone Chest
moderator
27,647

edits