Difference between revisions of "Template:PatronReceived"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 16: | Line 16: | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:PatronReceived||[[Category:{{{1}}} Gained Gear]]}}{{#switch: {{lc:{{#dplvar:vendorformat}}}} | <onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:PatronReceived||[[Category:{{{1}}} Gained Gear]]}}{{#switch: {{lc:{{#dplvar:vendorformat}}}} | ||
|table=<tr><td>{{PageLink|{{{1}}}|{{{3|}}}}}</td><td>{{#if: {{{4|}}}|{{{4}}}}}</td><td>1</td><td>{{{2}}} Favor</td><td></td></tr> | |table=<tr><td>{{PageLink|{{{1}}}|{{{3|}}}}}</td><td>{{#if: {{{4|}}}|{{RenderLink|{{{4}}}}}}}</td><td>1</td><td>{{{2}}} Favor</td><td></td></tr> | ||
|#default=Recieved for {{{2}}} favor from {{PageLink|{{{1}}}|{{{3|}}}}}}}</onlyinclude> | |#default=Recieved for {{{2}}} favor from {{PageLink|{{{1}}}|{{{3|}}}}}}}</onlyinclude> |
Revision as of 03:05, 24 July 2021
PatronReceived[edit]
This template is used on equipment to correctly format where that equipment is received as a patron reward
Example Usage | |
{{PatronReceived|The Harpers|250}} | Recieved for 250 favor from The Harpers |
Usage[edit]
{{PatronReceived|(Patron)|(favor)|(Title)|(Location)}}
Parameter Documentation | |
Patron | This is the page to link to for the patron |
favor | This is the amount of favor needed to get the item |
Title | This is the title of the patron, if it is different than the page name |
Location | This is the location of the patron |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
Recieved for {{{2}}} favor from [[{{{1}}}]]