Template talk:Magic Item: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
}}</onlyinclude> | }}</onlyinclude> | ||
| | {{#vardefine:CostLevel| | ||
}} | |||
| | {{#vardefine:CostMultiple| | ||
}} | |||
{{#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 | <!-- Do not do anything with this field. Just include it. --> | ||
| CL = | | CL = |
Revision as of 22:17, 4 June 2017
Usage:
{{Template:Magic_Item | Name = | Slot=<onlyinclude>{{#ifeq:{{{transcludesection|Slot}}} | Slot| }}</onlyinclude> {{#vardefine:CostLevel| }} {{#vardefine:CostMultiple| }} {{#vardefine:Price|{{#number_format: {{#expr: {{Price-18|transcludesection={{#var:CostLevel}}}} * {{#var:CostMultiple|1}}}}|-2}} }} | Cost=<onlyinclude>{{#ifeq:{{{transcludesection|Cost}}} | Cost|{{#var:Price}} }}</onlyinclude> <!-- Do not do anything with this field. Just include it. --> | CL = | Aura=<onlyinclude>{{#ifeq:{{{transcludesection|Aura}}} | Aura| }}</onlyinclude> | Weight=<onlyinclude>{{#ifeq:{{{transcludesection|Weight}}} | Weight| }}</onlyinclude> | Description = | Requirements = | ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}} | ShortDesc| }}</onlyinclude> }}