Actions

Template

Difference between revisions of "Entity"

From Crea Wiki

m (Reverted edits by Smile (talk) to last revision by Overlord)
 
(44 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable entity-table" colspan="6"
+
<includeonly>{| class="wikitable entity-table" colspan="6" style="margin-bottom:0px !important;"
 
|-
 
|-
 
! colspan="12" class="entity-main-title" | {{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}
 
! colspan="12" class="entity-main-title" | {{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}
Line 29: Line 29:
 
{{!}} colspan="8" {{!}} [[Has subcategory::{{{subcategory|}}}]] }}
 
{{!}} colspan="8" {{!}} [[Has subcategory::{{{subcategory|}}}]] }}
 
|-
 
|-
 +
{{#if: {{{types|}}}|
 +
! style="width:20%" colspan="4" class="entity-title" {{!}} Type:
 +
{{!}} colspan="8" {{!}} {{{types|}}}
 +
{{!}}- }}
 +
{{#if: {{{Material_Type|}}}|
 +
! style="width:20%" colspan="4" class="entity-title" {{!}} Material Sub-Type:
 +
{{!}} colspan="8" {{!}} [[Has Material_Type::{{{Material_Type|}}}]]
 +
{{!}}- }}
 
{{#if: {{{effect|}}}|
 
{{#if: {{{effect|}}}|
 
! style="width:20%" colspan="4" class="entity-title" {{!}} Effect
 
! style="width:20%" colspan="4" class="entity-title" {{!}} Effect
Line 85: Line 93:
 
{{!}} colspan="8" {{!}} [[Has Armor_Special::{{{Armor_Special|}}}]]
 
{{!}} colspan="8" {{!}} [[Has Armor_Special::{{{Armor_Special|}}}]]
 
{{!}}- }}
 
{{!}}- }}
{{#if: {{{Armor_Potential|}}} |
+
                        {{#if: {{{Armor_Potential|}}} |
! colspan="4" class="entity-title" {{!}} Potential Attributes
+
! class="entity-title" colspan="4" {{!}} Potential Attributes
{{!}} colspan="8" {{!}}  [[Has Armor_Potential::{{{Armor_Potential|}}}]]
+
{{!}} colspan="8" {{!}} [[Has Armor_Potential::{{{Armor_Potential|}}}]]
 +
{{!}}- }}
 +
{{#if: {{{enchantments|}}} |
 +
! colspan="4" class="entity-title" {{!}} Enchantment Slots
 +
{{!}} colspan="8" {{!}}  [[Has enchantments::{{{enchantments|}}}]]
 
{{!}}- }} }}
 
{{!}}- }} }}
  
{{#if: {{{power|}}} {{{Weapon_Potential|}}} {{{Weapon_Special|}}} {{{useTime|}}}  {{{cooldown_duration|}}} |
+
{{#if: {{{power|}}} {{{Weapon_Potential|}}} {{{Weapon_Special|}}} {{{useTime|}}}  {{{cooldown_duration|}}} |
 
! colspan="12" class="entity-section-title" style="width:100%" {{!}} Weapon Stats
 
! colspan="12" class="entity-section-title" style="width:100%" {{!}} Weapon Stats
 
{{!}}-
 
{{!}}-
Line 101: Line 113:
 
{{!}} colspan="8" {{!}} [[Has Weapon_Special::{{{Weapon_Special|}}}]]
 
{{!}} colspan="8" {{!}} [[Has Weapon_Special::{{{Weapon_Special|}}}]]
 
{{!}}- }}
 
{{!}}- }}
{{#if: {{{Weapon_Potential|}}} |  
+
                        {{#if: {{{Weapon_Potential|}}} |  
 
! class="entity-title" colspan="4" {{!}} Potential Attributes
 
! class="entity-title" colspan="4" {{!}} Potential Attributes
 
{{!}} colspan="8" {{!}} [[Has Weapon_Potential::{{{Weapon_Potential|}}}]]
 
{{!}} colspan="8" {{!}} [[Has Weapon_Potential::{{{Weapon_Potential|}}}]]
 +
{{!}}- }}
 +
{{#if: {{{enchantments|}}} |
 +
! class="entity-title" colspan="4" {{!}} Enchantment Slots
 +
{{!}} colspan="8" {{!}} [[Has enchantments::{{{enchantments|}}}]]
 
{{!}}- }}
 
{{!}}- }}
 
{{#if: {{{useTime|}}}{{{cooldown_duration|}}} |  
 
{{#if: {{{useTime|}}}{{{cooldown_duration|}}} |  
Line 116: Line 132:
 
{{!}} colspan="8"  {{!}}  [[Has Equip_Level::{{{Equip_Level|}}}]]
 
{{!}} colspan="8"  {{!}}  [[Has Equip_Level::{{{Equip_Level|}}}]]
 
{{!}}- }}
 
{{!}}- }}
{{#if: {{{drop_item0|}}} |
+
 
! colspan="12" class="entity-section-title" {{!}} Drops
 
{{!}}-
 
! colspan="6" class="entity-title" {{!}} Item
 
! colspan="6" class="entity-title" {{!}} Quantity (% Chance)
 
{{#forargs: drop_item | drop_num | item |
 
{{!}}-
 
{{!}} colspan="6" {{!}} [[file: {{#var: item}}.png]] [[{{#var: item}}]]
 
{{!}} colspan="6" {{!}}
 
{{#forargs: drop{{#var: drop_num}}_chance | chance_num | chance |
 
{{#var:chance_num}} ({{#var:chance}}%)<br/>
 
}}
 
{{!}}-
 
}}
 
}}
 
{{!}}-
 
{{#ask: [[Has drop::{{BASEPAGENAME}}]][[Has image::+]] [[Has subpagename::!~*/* ]]
 
|?Has image
 
|?Has subpagename
 
|format=template
 
|headers=hide
 
|link=none
 
|template=Drop/Row
 
|introtemplate=Drop/Intro
 
|outrotemplate=
 
}}
 
<!-- {{#if: {{{loot0|}}}|
 
! colspan="12" class="entity-section-title" {{!}} Looted From
 
{{!}}-
 
{{#forargs: loot | loot_num | loot_name |
 
{{!}}-
 
{{!}} colspan="12" {{!}} {{{loot{{#var: loot_num}}} | [[file:{{#var: loot_name}}.png]] |}}} [[{{{loot{{#var: loot_num}} | {{#var: loot_name}} | }}}]]
 
{{!}}-
 
}}
 
}} -->
 
 
{{#if: {{{materials0|}}}|
 
{{#if: {{{materials0|}}}|
 
! colspan="12" class="entity-section-title" {{!}} Crafting
 
! colspan="12" class="entity-section-title" {{!}} Crafting
Line 180: Line 162:
 
{{!}} colspan="4" {{!}} {{{experience|}}}
 
{{!}} colspan="4" {{!}} {{{experience|}}}
 
{{!}} colspan="4" {{!}} {{{isResearchable|}}}
 
{{!}} colspan="4" {{!}} {{{isResearchable|}}}
}}{{#set:Has biome={{{biome0|}}}
+
}}
 +
{{#ask: [[Has drop::{{BASEPAGENAME}}]][[Has image::+]] [[Has subpagename::!~*/* ]]
 +
|?Has image
 +
|?Has subpagename
 +
|format=template
 +
|headers=hide
 +
|link=none
 +
|template=Drop/Row
 +
|introtemplate=Drop/Intro
 +
|outrotemplate=
 +
}}
 +
|}{{#if: {{{drop_item11|}}} |
 +
{{{!}} class="mw-collapsible mw-collapsed wikitable entity-table" colspan="6"  style="margin-top:0px !important;"
 +
! colspan="12" class="entity-section-title" {{!}} Drops
 +
{{!}}-
 +
! colspan="8" class="entity-title" {{!}} Item
 +
! colspan="4" class="entity-title" {{!}} <small>Quantity (% Chance)</small>
 +
{{#forargs: drop_item | drop_num | item |
 +
{{!}}-
 +
{{!}} colspan="8" {{!}} [[file: {{#var: item}}.png]] [[{{#var: item}}]]
 +
{{!}} colspan="4" {{!}}
 +
{{#forargs: drop{{#var: drop_num}}_chance | chance_num | chance |
 +
{{#var:chance_num}} ({{#var:chance}}%)<br/>
 +
}}
 +
{{!}}-
 +
}}
 +
{{!}}} | {{#if: {{{drop_item0|}}} |
 +
{{{!}} class=" wikitable entity-table" colspan="6"  style="margin-top:0px !important;"
 +
! colspan="12" class="entity-section-title" {{!}} Drops
 +
{{!}}-
 +
! colspan="8" class="entity-title" {{!}} Item
 +
! colspan="4" class="entity-title" {{!}} <small>Quantity (% Chance)</small>
 +
{{#forargs: drop_item | drop_num | item |
 +
{{!}}-
 +
{{!}} colspan="8" {{!}} [[file: {{#var: item}}.png]] [[{{#var: item}}]]
 +
{{!}} colspan="4" {{!}}
 +
{{#forargs: drop{{#var: drop_num}}_chance | chance_num | chance |
 +
{{#var:chance_num}} ({{#var:chance}}%)<br/>
 +
}}
 +
{{!}}-
 +
}}
 +
{{!}}} }}
 +
}}
 +
{{#set:Has biome={{{biome0|}}}
 
|Has biome={{{biome1|}}}
 
|Has biome={{{biome1|}}}
 
|Has biome={{{biome2|}}}
 
|Has biome={{{biome2|}}}
Line 217: Line 242:
 
|Has loot_drop={{{loot8|}}}
 
|Has loot_drop={{{loot8|}}}
 
|Has loot_drop={{{loot9|}}}
 
|Has loot_drop={{{loot9|}}}
}}{{#set:Has drop={{{drop_item0|}}}  
+
}}
 +
{{#if: {{{drop_item0|}}} {{{drop_item1|}}} |
 +
{{#set:Has drop={{{drop_item0|}}}  
 
|{{{drop_item1|}}}  
 
|{{{drop_item1|}}}  
 
|{{{drop_item2|}}}  
 
|{{{drop_item2|}}}  
Line 268: Line 295:
 
|{{{drop_item49|}}}  
 
|{{{drop_item49|}}}  
 
|{{{drop_item50|}}}  
 
|{{{drop_item50|}}}  
}}
+
|{{{drop_item51|}}}
|}
+
|{{{drop_item52|}}}
 +
|{{{drop_item53|}}}
 +
|{{{drop_item54|}}}
 +
|{{{drop_item55|}}}
 +
|{{{drop_item56|}}}
 +
|{{{drop_item57|}}}
 +
|{{{drop_item58|}}}
 +
|{{{drop_item59|}}}
 +
|{{{drop_item60|}}}
 +
|{{{drop_item61|}}}
 +
|{{{drop_item62|}}}
 +
|{{{drop_item63|}}}
 +
|{{{drop_item64|}}}
 +
|{{{drop_item65|}}}
 +
|{{{drop_item66|}}}
 +
|{{{drop_item67|}}}  
 +
|{{{drop_item68|}}}
 +
|{{{drop_item69|}}}
 +
|{{{drop_item70|}}}
 +
|{{{drop_item71|}}}
 +
|{{{drop_item72|}}}
 +
|{{{drop_item73|}}}
 +
|{{{drop_item74|}}}
 +
|{{{drop_item75|}}}
 +
|{{{drop_item76|}}}
 +
|{{{drop_item77|}}}
 +
|{{{drop_item78|}}}
 +
|{{{drop_item79|}}}
 +
|{{{drop_item80|}}}
 +
|{{{drop_item81|}}}
 +
|{{{drop_item82|}}}
 +
|{{{drop_item83|}}}
 +
|{{{drop_item84|}}}
 +
|{{{drop_item85|}}}
 +
|{{{drop_item86|}}}
 +
|{{{drop_item87|}}}
 +
|{{{drop_item88|}}}
 +
|{{{drop_item89|}}}
 +
|{{{drop_item90|}}}
 +
|{{{drop_item91|}}}
 +
|{{{drop_item92|}}}
 +
|{{{drop_item93|}}}
 +
|{{{drop_item94|}}}
 +
|{{{drop_item95|}}}
 +
|{{{drop_item96|}}}
 +
|{{{drop_item97|}}}
 +
|{{{drop_item98|}}}
 +
|{{{drop_item99|}}}
 +
|{{{drop_item100|}}}
 +
}} }}
 
{{Clear}}
 
{{Clear}}
<div class="row"><div class="large-12 columns">{{{description|}}}</div></div>
+
<div class="row" style="margin-top:15px;"><div class="large-12 columns">{{{description|}}}</div></div>
{{#if: {{{Loot_Source|}}} |
 
{{Item/Table
 
|category={{PAGENAME}}
 
|type=drops
 
}} }}
 
 
{{#set:Has subpagename={{FULLPAGENAME}} }}
 
{{#set:Has subpagename={{FULLPAGENAME}} }}
 
<span style="display:none">{{#arraymap:{{{types|}}}|,|x|[[Is type::x]] }}</span> </includeonly><noinclude>
 
<span style="display:none">{{#arraymap:{{{types|}}}|,|x|[[Is type::x]] }}</span> </includeonly><noinclude>
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 23:44, 26 June 2017