Template:ItemDestroyable: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
No edit summary
(Improve layout)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>|-
<onlyinclude><includeonly>
|style="border-right: 0px; border-bottom: 0px;"|{{{image}}}
|- {{#if:{{{location|}}}|style="border-bottom-width: 0;"}}
|style="border-left: 0px; border-bottom: 0px;"|{{{name}}}
| style="{{#if:1|<!--
|style="border-bottom: 0px;"|
--> border-right-width: 0;<!--
{{{items}}}{{#if:{{{unlockDrops|}}}|  
--> {{#if:{{{location|}}}|border-bottom-width: 0;}}}}<!--
{{{!}} style="margin: 0px;" width="100%"
--> padding-right: 0;<!--
{{!-}}
--> min-width: 48px;<!--
{{!}}style="border: 0px; border-left: 2px solid #AAAAAA; border-bottom: 2px solid #AAAAAA;"{{!}}
--> width: 10%;<!--
{{!}}rowspan="2" style="border: 0px; text-align:center; color: #AAAAAA; font-size: 9pt;" nowrap="nowrap" width="1px" height="1px" {{!}} {{{unlockDrops}}} to unlock
--> text-align: center;<!--
{{!}}style="border: 0px; border-right: 2px solid #AAAAAA; border-bottom: 2px solid #AAAAAA;"{{!}}
--> vertical-align: middle;<!--
{{!-}}
-->" | {{#ifeq:[[{{#sub:{{{image}}}|2|-2}}]]|{{#sub:{{{image}}}}}
{{!}}style="border: 0px;" height="1px" {{!}}
| {{{image}}}
{{!}}style="border: 0px;" height="1px" {{!}}
| [[{{#if:{{#pos:{{{image}}}|:}}|{{{image}}}|File:{{{image}}}}}|frameless]]
{{!}}}
}}
| style="{{#if:1|border-left-width: 0; {{#if:{{{location|}}}|border-bottom-width: 0;}}}} vertical-align: middle;" | {{{name}}}
| style="{{#if:{{{location|}}}|border-bottom-width: 0; <nowiki/>}}width: 50%;" |
{{{items}}}{{#if:{{{unlockDrops|}}}|<nowiki/>
{{(!}} style="margin: 0px; width: 100% !important;"
{{!}}-
{{!}} style="border-width: 0; border-left: 2px solid #AAAAAA; border-bottom: 2px solid #AAAAAA;" {{!}}
{{!}} rowspan="2" style="border-width: 0; text-align:center; color: #AAAAAA; font-size: 9pt; width: 1px !important; height: 1px !important; white-space: nowrap; vertical-align: middle;" class="nowrap" {{!}} {{{unlockDrops}}} to unlock
{{!}} style="border-width: 0; border-right: 2px solid #AAAAAA; border-bottom: 2px solid #AAAAAA;"{{!}}
{{!}}-
{{!}} style="border-width: 0; height: 1px !important;" {{!}}
{{!}} style="border-width: 0; height: 1px !important;" {{!}}
{{!)}}
}}
}}
|-
{{#if:{{{location|}}}|
{{#if:{{{location|}}}|
{{!}}-
{{!}} colspan="3" style="border-top: 0px;" {{!}}
{{!}} colspan="3" style="border-top: 0px;" {{!}}
{{{!}} style="margin: 0px;" width="100%"
<div style="border-top: 2px dotted #AAA; padding: 1px; padding-top: 5px; margin: 2px;"
{{!-}}
>[[File:Loc-Icon.png]] {{{location}}}{{#if:{{{unlockLocation|}}}
{{!}} style="border: 0px; border-top: 2px dotted #AAAAAA; padding: 5px 1px 1px 1px;" width="100%" {{!}} [[File:Loc-Icon.png]] {{{location}}}{{#if:{{{unlockLocation|}}}| <sub>{{{unlockLocation}}} to unlock</sub>}}
|<nowiki/> <sub>{{nowrap|{{{unlockLocation}}} to unlock}}</sub>
{{!}}}
}}</div>}}
}}</includeonly><noinclude>
|-
Code:
</includeonly></onlyinclude>
<pre>
{{Doc}}
{| class="wikitable"
! colspan="2" style="text-align:center" | Destroyable
! Contents
{{ItemDestroyable|name=Alpha Ball Plant
|image=[[File:Autumn-Ground-1.png|center]]
|location=Commonly found everywhere.
|unlockLocation=x
|items=
* {{ItemLink|Autumn Leaves}} (12 %)
* {{ItemLink|Season Apples}} (8 %)
|unlockDrops=50}}
{{ItemDestroyable|name=Omega Ball Plant
|image=[[File:Autumn-Special.png|center]]
|unlockLocation=x
|items=
* {{ItemLink|Season Apples}} (70 %)
* {{ItemLink|Bear Cicada}} (30 %)
|unlockDrops=20}}
{{ItemDestroyable|name=Omega Water Blades
|image=[[File:Autumn-Water-Special.png|center]]
|location=Rarely found on hard to reach places near water.
|items=
* {{ItemLink|Twilight Dew}} (70 %)
* {{ItemLink|Azure Dragonfly}} (30 %)
|unlockDrops=20}}
{{ItemDestroyable|name=Alpha Feather Bush
|image=[[File:BergenTrail-Grass-1.png|center]]
|location=Commonly found everywhere where no snow falls.
|unlockLocation=x
|items=
* {{ItemLink|Feather Leaf}} (12 %)
* {{ItemLink|Rusty Bits}} (8 %)}}
|}
</pre>
Example:
{| class="wikitable"
! colspan="2" style="text-align:center" | Destroyable
! Contents
{{ItemDestroyable|name=Alpha Ball Plant
|image=[[File:Autumn-Ground-1.png|center]]
|location=Commonly found everywhere.
|unlockLocation=x
|items=
* {{ItemLink|Autumn Leaves}} (12 %)
* {{ItemLink|Season Apples}} (8 %)
|unlockDrops=50}}
{{ItemDestroyable|name=Omega Ball Plant
|image=[[File:Autumn-Special.png|center]]
|unlockLocation=x
|items=
* {{ItemLink|Season Apples}} (70 %)
* {{ItemLink|Bear Cicada}} (30 %)
|unlockDrops=20}}
{{ItemDestroyable|name=Omega Water Blades
|image=[[File:Autumn-Water-Special.png|center]]
|location=Rarely found on hard to reach places near water.
|items=
* {{ItemLink|Twilight Dew}} (70 %)
* {{ItemLink|Azure Dragonfly}} (30 %)
|unlockDrops=20}}
{{ItemDestroyable|name=Alpha Feather Bush
|image=[[File:BergenTrail-Grass-1.png|center]]
|location=Commonly found everywhere where no snow falls.
|unlockLocation=x
|items=
* {{ItemLink|Feather Leaf}} (12 %)
* {{ItemLink|Rusty Bits}} (8 %)}}
|}
</noinclude>

Latest revision as of 16:42, 23 May 2021

File:Template-info.svg Template Documentation
{| class="wikitable"
! colspan="2" style="text-align:center" | Destroyable
! Contents
{{ItemDestroyable
| name  = Alpha Ball Plant
| image = [[File:Autumn-Ground-1.png|center]]
| location = Commonly found everywhere.
| unlockLocation = x
| items =
* {{ItemLink|Autumn Leaves}} (12 %)
* {{ItemLink|Season Apples}} (8 %)
|unlockDrops = 50
}}
{{ItemDestroyable
| name  = Omega Ball Plant
| image = [[File:Autumn-Special.png|center]]
| unlockLocation = x
| items =
* {{ItemLink|Season Apples}} (70 %)
* {{ItemLink|Bear Cicada}} (30 %)
| unlockDrops = 20
}}
{{ItemDestroyable
| name  = Omega Water Blades
| image = [[File:Autumn-Water-Special.png|center]]
| location = Rarely found on hard to reach places near water.
| items =
* {{ItemLink|Twilight Dew}} (70 %)
* {{ItemLink|Azure Dragonfly}} (30 %)
| unlockDrops = 20
}}
{{ItemDestroyable
| name  = Alpha Feather Bush
| image = [[File:BergenTrail-Grass-1.png|center]]
| location = Commonly found everywhere where no snow falls.
| unlockLocation = x
| items =
* {{ItemLink|Feather Leaf}} (12 %)
* {{ItemLink|Rusty Bits}} (8 %)
}}
|}
Destroyable Contents
Alpha Ball Plant
50 to unlock
Commonly found everywhere. x to unlock
Omega Ball Plant
20 to unlock
Omega Water Blades
20 to unlock
Rarely found on hard to reach places near water.
Alpha Feather Bush
Commonly found everywhere where no snow falls. x to unlock
{| class="wikitable"
! colspan="2" style="text-align:center" | Destroyable
! Contents
{{ItemDestroyable|name=Alpha Ball Plant|image=Autumn-Ground-1.png|location=Commonly found everywhere.|unlockLocation=x|items=* {{ItemLink|Autumn Leaves}} (12 %)
* {{ItemLink|Season Apples}} (8 %)|unlockDrops=50}}{{ItemDestroyable|name=Omega Ball Plant|image=[[File:Autumn-Special.png|center]]|unlockLocation=x|items=* {{ItemLink|Season Apples}} (70 %)
* {{ItemLink|Bear Cicada}} (30 %)|unlockDrops=20}}{{ItemDestroyable|name=Omega Water Blades|image=Autumn-Water-Special.png|location=Rarely found on hard to reach places near water.|items=* {{ItemLink|Twilight Dew}} (70 %)
* {{ItemLink|Azure Dragonfly}} (30 %)|unlockDrops=20}}{{ItemDestroyable|name=Alpha Feather Bush|image=BergenTrail-Grass-1.png|location=Commonly found everywhere where no snow falls.|unlockLocation=x|items=* {{ItemLink|Feather Leaf}} (12 %)
* {{ItemLink|Rusty Bits}} (8 %)}}
|}
Destroyable Contents
Alpha Ball Plant
50 to unlock
Commonly found everywhere. x to unlock
Omega Ball Plant
20 to unlock
Omega Water Blades
20 to unlock
Rarely found on hard to reach places near water.
Alpha Feather Bush
Commonly found everywhere where no snow falls. x to unlock

TemplateData

Used to list destroyable objects on location pages.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Namename

The name of the destroyable object.

Contentrequired
Imageimage

no description

Filerequired
Itemsitems

Should use {{ItemLink}}

Contentrequired
Locationslocation

no description

Contentoptional
Needed to unlock dropsunlockDrops

no description

Numberoptional
Needed to unlock locationsunlockLocation

no description

Numberoptional