Template talk:Magic Item: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Template:Magic Item |Slot= |Price= |CL= |Aura= |Weight= |Description= |Requirements= |Source= }}") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Template: | '''Usage:''' | ||
|Slot= | <pre> | ||
|Price= | {{Template:Magic_Item | ||
|CL= | |||
|Aura= | | Name = | ||
|Weight= | |||
|Description= | | Slot=<onlyinclude>{{#ifeq:{{{transcludesection|Slot}}} | ||
|Requirements= | | Slot| | ||
| | }}</onlyinclude> | ||
| Buy-At-Level = | |||
| Percent-Of-Total-Wealth = | |||
<!-- Values: integer between 0.01 and 1.00; percent of --> | |||
<!-- total wealth you must expend at the listed level --> | |||
<!-- to get the item. (e.g. "0.10" to set it to 10%) --> | |||
<!-- Typical values: --> | |||
<!-- weapon - 20% --> | |||
<!-- armor - 10% --> | |||
<!-- slotless - 20% --> | |||
<!-- wands - 10% --> | |||
<!-- other - 5% --> | |||
| Price=<onlyinclude>{{#ifeq:{{{transcludesection|Price}}} | |||
| Price|{{#number_format: {{#expr:{{Player-Total-Wealth|transcludesection={{{Buy-At-Level}}}}} * {{{Percent-Of-Total-Wealth}}}}}|-2}} | |||
}}</onlyinclude> | |||
<!-- Do not do anything with this field. Just include it in the template --> | |||
| CL = | |||
| Aura=<onlyinclude>{{#ifeq:{{{transcludesection|Aura}}} | |||
| Aura| | |||
}}</onlyinclude> | |||
| Weight=<onlyinclude>{{#ifeq:{{{transcludesection|Weight}}} | |||
| Weight| | |||
}}</onlyinclude> | |||
| Description = | |||
| Requirements = | |||
| ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}} | |||
| ShortDesc| | |||
}}</onlyinclude> | |||
}} | }} | ||
</pre> |
Revision as of 21:55, 4 June 2017
Usage:
{{Template:Magic_Item | Name = | Slot=<onlyinclude>{{#ifeq:{{{transcludesection|Slot}}} | Slot| }}</onlyinclude> | Buy-At-Level = | Percent-Of-Total-Wealth = <!-- Values: integer between 0.01 and 1.00; percent of --> <!-- total wealth you must expend at the listed level --> <!-- to get the item. (e.g. "0.10" to set it to 10%) --> <!-- Typical values: --> <!-- weapon - 20% --> <!-- armor - 10% --> <!-- slotless - 20% --> <!-- wands - 10% --> <!-- other - 5% --> | Price=<onlyinclude>{{#ifeq:{{{transcludesection|Price}}} | Price|{{#number_format: {{#expr:{{Player-Total-Wealth|transcludesection={{{Buy-At-Level}}}}} * {{{Percent-Of-Total-Wealth}}}}}|-2}} }}</onlyinclude> <!-- Do not do anything with this field. Just include it in the template --> | CL = | Aura=<onlyinclude>{{#ifeq:{{{transcludesection|Aura}}} | Aura| }}</onlyinclude> | Weight=<onlyinclude>{{#ifeq:{{{transcludesection|Weight}}} | Weight| }}</onlyinclude> | Description = | Requirements = | ShortDesc=<onlyinclude>{{#ifeq:{{{transcludesection|ShortDesc}}} | ShortDesc| }}</onlyinclude> }}