Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Want to make the wiki better? Contribute towards getting larger projects done on our Patreon!

Difference between revisions of "Template:SemanticEnchantEffectData"

From Mabinogi World Wiki
Jump to: navigation, search
m
m (support for other designations, such as "Level 2" but makes the assumption that they're all properly incrementing numbers)
 
Line 43: Line 43:
 
       | Dan 2 = 18
 
       | Dan 2 = 18
 
       | Dan 3 = 19
 
       | Dan 3 = 19
       | #default = {{{enchantRequiredAmount}}}
+
       | #default = {{#replace:{{{enchantRequiredAmount|}}}|^\D*(\d+)\D*$|$1||t}}
 
     }}) * {{#replace:{{{enchantStatAmount|}}}|([+-])(?:\d+~)?(\d+).*$|$1$2||t}}}}{{#hashinclude:{{{enchantStat}}}_NeedsReq_Amts | {{{enchantRequirement}}}={{#hashvalue:{{{enchantStat}}}_NeedsReq_Amts|{{{enchantRequirement}}}|}},{{#switch:
 
     }}) * {{#replace:{{{enchantStatAmount|}}}|([+-])(?:\d+~)?(\d+).*$|$1$2||t}}}}{{#hashinclude:{{{enchantStat}}}_NeedsReq_Amts | {{{enchantRequirement}}}={{#hashvalue:{{{enchantStat}}}_NeedsReq_Amts|{{{enchantRequirement}}}|}},{{#switch:
 
     {{{enchantRequiredAmount}}}
 
     {{{enchantRequiredAmount}}}
Line 65: Line 65:
 
       | Dan 2 = 18
 
       | Dan 2 = 18
 
       | Dan 3 = 19
 
       | Dan 3 = 19
       | #default = {{{enchantRequiredAmount}}}
+
       | #default = {{#replace:{{{enchantRequiredAmount|}}}|^\D*(\d+)\D*$|$1||t}}
 
     }}}}
 
     }}}}
 
|{{#hashinclude:BaseStats|{{{enchantStat}}}={{#hashvalue:BaseStats|{{{enchantStat}}}|}}{{#replace:{{{enchantStatAmount|}}}|([+-])(?:\d+~)?(\d+).*$|$1$2||t}}}}
 
|{{#hashinclude:BaseStats|{{{enchantStat}}}={{#hashvalue:BaseStats|{{{enchantStat}}}|}}{{#replace:{{{enchantStatAmount|}}}|([+-])(?:\d+~)?(\d+).*$|$1$2||t}}}}
 
}} }} }} }}</includeonly>
 
}} }} }} }}</includeonly>

Latest revision as of 17:42, 9 January 2020

[edit]Template Documentation

This template holds the semantic data for enchant effects after being created or edited with Form:Enchant.

Below is an example of the data structure:

{{SemanticEnchantData
|enchantStat=
|enchantStatAmount=
|enchantStatType=
|enchantRequirementComparison=
|enchantNeedsTitle=
|enchantNeedsStatusEffect=
|enchantNeedsDay=
|enchantNeedsRace=
|enchantNeedsMisc=
|enchantRequirement=
|enchantRequiredAmount=
}}