Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Crop: Difference between revisions

Template page
Add crop infobox template
 
aaaaaaaaaaaaaa
Line 1: Line 1:
<includeonly>
<includeonly>
<infobox>
{| class="infobox" style="width: 25em; font-size: 90%; text-align: left; border: 1px solid #aaa; border-collapse: collapse; margin: 0 0 1em 1em; background-color: #f9f9f9;"
  <title source="crop"><default>{{PAGENAME}}</default></title>
! colspan="2" style="text-align:center; padding: 0.5em; background-color: #CCCCFF;" | <big>'''{{{crop|{{PAGENAME}}}}}'''</big>
  <panel>
 
    {{#if:{{{crop_image|}}}
{{!}} colspan="2" style="text-align: center; padding: 0.5em; background-color: #EFEFEF;" {{!}} '''Images'''
    | <section>
{{#if:{{{crop_image|}}}|
        <label>Crop</label>
|-
        <image source="crop_image"></image>
! style="padding: 0.3em; width: 30%;" | Crop
      </section>
| style="text-align: center; padding: 0.3em;" | [[File:{{{crop_image}}}|x100px|alt=Crop Image]]
    }}
}}
    {{#if:{{{seed_image|}}}
{{#if:{{{seed_image|}}}|
    | <section>
|-
        <label>Seed</label>
! style="padding: 0.3em;" | Seed
        <image source="seed_image"></image>
| style="text-align: center; padding: 0.3em;" | [[File:{{{seed_image}}}|x100px|alt=Seed Image]]
      </section>
}}
    }}
{{#if:{{{plant_image|}}}|
    {{#if:{{{plant_image|}}}
|-
    | <section>
! style="padding: 0.3em;" | Plant
        <label>Plant</label>
| style="text-align: center; padding: 0.3em;" | [[File:{{{plant_image}}}|x100px|alt=Plant Image]]
        <image source="plant_image"></image>
}}
      </section>
 
    }}
{{!}} colspan="2" style="text-align: center; padding: 0.5em; background-color: #CCCCFF;" {{!}} '''Info'''
  </panel>
{{#if:{{{rarity|}}}|
  <group>
|-
    <header>Info</header>
! style="padding: 0.3em;" | Rarity
    <data source="rarity">
| style="padding: 0.3em;" | {{{rarity}}}
      <label>Rarity</label>
}}
    </data>
{{#if:{{{multi_harvest|}}}|
    <data source="multi_harvest?">
|-
      <label>Multi-harvest?</label>
! style="padding: 0.3em;" | Multi-harvest?
    </data>
| style="padding: 0.3em;" | {{{multi_harvest}}}
    <data source="guild_exclusive?">
}}
      <label>Guild Exclusive?</label>
{{#if:{{{guild_exclusive|}}}|
    </data>
|-
    <data source="date_added">
! style="padding: 0.3em;" | Guild Exclusive?
      <label>Date Added</label>
| style="padding: 0.3em;" | {{{guild_exclusive}}}
    </data>
}}
    <header>Values</header>
{{#if:{{{date_added|}}}|
    <data source="seed_price">
|-
      <label>Seed Price</label>
! style="padding: 0.3em;" | Date Added
    </data>
| style="padding: 0.3em;" | {{{date_added}}}
    <data source="base_value">
}}
      <label>Base Value</label>
 
    </data>
{{!}} colspan="2" style="text-align: center; padding: 0.5em; background-color: #CCCCFF;" {{!}} '''Values'''
    <data source="base_weight">
{{#if:{{{seed_price|}}}|
      <label>Base Weight</label>
|-
    </data>
! style="padding: 0.3em;" | Seed Price
    <data source="max_weight">
| style="padding: 0.3em;" | {{{seed_price}}}
      <label>Max Weight</label>
}}
    </data>
{{#if:{{{base_value|}}}|
    <data source="base_grow_time">
|-
      <label>Base Grow Time</label>
! style="padding: 0.3em;" | Base Value
    </data>
| style="padding: 0.3em;" | {{{base_value}}}
    <data source="mature_time">
}}
      <label>Plant Mature Time</label>
{{#if:{{{base_weight|}}}|
    </data>
|-
    <data source="crop_slots">
! style="padding: 0.3em;" | Base Weight
      <label>Crop Slots</label>
| style="padding: 0.3em;" | {{{base_weight}}}
    </data>
}}
  </group>
{{#if:{{{max_weight|}}}|
</infobox>
|-
! style="padding: 0.3em;" | Max Weight
| style="padding: 0.3em;" | {{{max_weight}}}
}}
{{#if:{{{base_grow_time|}}}|
|-
! style="padding: 0.3em;" | Base Grow Time
| style="padding: 0.3em;" | {{{base_grow_time}}}
}}
{{#if:{{{mature_time|}}}|
|-
! style="padding: 0.3em;" | Plant Mature Time
| style="padding: 0.3em;" | {{{mature_time}}}
}}
{{#if:{{{crop_slots|}}}|
|-
! style="padding: 0.3em;" | Crop Slots
| style="padding: 0.3em;" | {{{crop_slots}}}
}}
|}
</includeonly>
</includeonly>
<includeonly>{{#ifeq: {{NAMESPACE}}|{{ns:0}}|[[Category:Crops]]}}</includeonly>
<includeonly>{{#ifeq: {{NAMESPACE}}|{{ns:0}}|[[Category:Crops]]}}</includeonly>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Revision as of 19:34, 16 October 2025