Difference between revisions of "Template:ItemRestrictedRace"
From DDO Compendium
m (UMD now only shows up when a UMD value is provided) |
MNDeveloper (talk | contribs) |
||
Line 7: | Line 7: | ||
|example2 = <nowiki>{{ItemRestrictedRace|Paladin|12}}</nowiki> | |example2 = <nowiki>{{ItemRestrictedRace|Paladin|12}}</nowiki> | ||
|example2output = {{ItemRestrictedRace|Paladin|12}} | |example2output = {{ItemRestrictedRace|Paladin|12}} | ||
|example3 = <nowiki>{{ItemRestrictedRace|Iron Defender||Wolf|True}}</nowiki> | |||
|example3output = {{ItemRestrictedRace|Iron Defender||Wolf|True}} | |||
|parameter1name = Race | |parameter1name = Race | ||
|parameter1description = This is the race that the item is restricted to | |parameter1description = This is the race that the item is restricted to | ||
|parameter2name = UMD Amount | |parameter2name = UMD Amount | ||
|parameter2description = This is the amount of UMD that is required to bypass the requirement. | |parameter2description = This is the amount of UMD that is required to bypass the requirement. | ||
| | |parameter3name = Race 2 | ||
|parameter3description = This is the second race that the item is restricted to | |||
|parameter4name = Race is Pet | |||
|parameter4description = If set, the race is a pet | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>'''Race {{#if:{{{2|}}}||Absolutely}} Required:''' [[{{{1}}}]] {{#if: {{{2|}}} | (UMD: {{{2}}}) | }}</onlyinclude> | <onlyinclude>'''{{#if: {{{4|}}}|Pet}} Race {{#if:{{{2|}}}||Absolutely}} Required:''' [[{{{1}}}]]{{#if:{{{3|}}}|, [[{{{3}}}]]}} {{#if: {{{2|}}} | (UMD: {{{2}}}) | }}</onlyinclude> |
Revision as of 03:06, 21 January 2019
ItemRestrictedRace[edit]
This template is used on equipment to add race requirements.
Example Usage | |
{{ItemRestrictedRace|Bladeforged}} | Race Absolutely Required: Bladeforged |
{{ItemRestrictedRace|Paladin|12}} | Race Required: Paladin (UMD: 12) |
{{ItemRestrictedRace|Iron Defender||Wolf|True}} | Pet Race Absolutely Required: Iron Defender, Wolf |
Usage[edit]
{{ItemRestrictedRace|(Race)|(UMD Amount)|(Race 2)|(Race is Pet)}}
Parameter Documentation | |
Race | This is the race that the item is restricted to |
UMD Amount | This is the amount of UMD that is required to bypass the requirement. |
Race 2 | This is the second race that the item is restricted to |
Race is Pet | If set, the race is a pet |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
Race Absolutely Required: [[{{{1}}}]]