Template talk:Magic Item: Difference between revisions

From Epic Path
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
}}</onlyinclude>
}}</onlyinclude>


{{#vardefine:CostLevel|
| Cost=<onlyinclude>{{#ifeq:{{{transcludesection|Cost}}}
}}
| Cost|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=
 
<!-- Level of expected purchase: -->
 
}} *


{{#vardefine:CostMultiple|
<!-- Multiple of weapon price:   -->
}}


{{#vardefine:Price|{{#number_format: {{#expr: {{Price-18|transcludesection={{#var:CostLevel}}}} * {{#var:CostMultiple|1}}}}|-2}}
}}}}
}}
     
| Cost=<onlyinclude>{{#ifeq:{{{transcludesection|Cost}}}
| Cost|{{#var:Price}}
}}</onlyinclude>
}}</onlyinclude>
  <!-- Do not do anything with this field. Just include it. -->


| CL =  
| CL =  

Revision as of 18:41, 5 June 2017

Usage:

{{Template:Magic_Item

| Name = 

| Slot=<onlyinclude>{{#ifeq:{{{transcludesection|Slot}}}
| Slot|
}}</onlyinclude>

| Cost=<onlyinclude>{{#ifeq:{{{transcludesection|Cost}}}
| Cost|{{#number_format: {{#expr: {{Magic-Item-Base-Price|transcludesection=

<!-- Level of expected purchase: --> 

}} * 

<!-- Multiple of weapon price:   --> 

}}}}
}}</onlyinclude>

| CL = 

| Aura=<onlyinclude>{{#ifeq:{{{transcludesection|Aura}}}
| Aura|
}}</onlyinclude>

| Weight=<onlyinclude>{{#ifeq:{{{transcludesection|Weight}}}
| Weight|
}}</onlyinclude>

| Description = 

| Requirements = 

| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}}
| ShortDesc|
}}</onlyinclude>

}}