Difference between revisions of "Template:TavernRestore"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 9: | Line 9: | ||
|example3 = <nowiki>{{TavernRestore|Lubricated I|Tonic|480|2}}</nowiki> | |example3 = <nowiki>{{TavernRestore|Lubricated I|Tonic|480|2}}</nowiki> | ||
|example3output = {{TavernRestore|Lubricated I|Tonic|480|2}} | |example3output = {{TavernRestore|Lubricated I|Tonic|480|2}} | ||
|example4 = <nowiki>{{TavernRestore| | |example4 = <nowiki>{{TavernRestore|Tasty Ham Oil|oil|50|1|True|Tasty Ham Juice}}</nowiki> | ||
|example4output = {{TavernRestore| | |example4output = {{TavernRestore|Tasty Ham Oil|oil|50|1|True|Tasty Ham Juice}} | ||
|parameter1name = Title | |parameter1name = Title | ||
|parameter1description = This is the title of the enchancement | |parameter1description = This is the title of the enchancement | ||
Line 23: | Line 23: | ||
|parameter4name=Time | |parameter4name=Time | ||
|parameter4description = The time frame the healing/restoring takes place. | |parameter4description = The time frame the healing/restoring takes place. | ||
|parameter5name=Anywhere? | |||
|parameter5description = Can this be used anywhere | |||
|parameter6name=Title | |||
|parameter6description = The title, if it is different than the default. | |||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{EnchTitle||{{{1}}}||True}}{{EnchBody|While in a tavern, you slowly recuperate hit points and spell points. This {{#switch: {{lc:{{{2|}}}}} | <onlyinclude>{{EnchTitle||{{{1}}}|{{{6|}}}|True}}{{EnchBody|{{#if: {{{5|}}}||While in a tavern, you slowly recuperate hit points and spell points. This }}{{#switch: {{lc:{{{2|}}}}} | ||
| food=food heals {{{3}}} hit points | | food={{#if: {{{6|}}}|{{{1}}}|food}} heals {{{3}}} hit points | ||
| drink=drink restores {{{3}}} spell points | | drink={{#if: {{{6|}}}|{{{1}}}|drink}} restores {{{3}}} spell points | ||
| tonic = tonic restores {{{3}}} spell points | | tonic = {{#if: {{{6|}}}|{{{1}}}|tonic}} restores {{{3}}} spell points | ||
| balm = balm heals {{{3}}} hit points | | balm = {{#if: {{{6|}}}|{{{1}}}|balm}} heals {{{3}}} hit points | ||
| oil={{#if: {{{6|}}}|{{{1}}}|oil}} repairs {{{3}}} hit points | |||
}} over {{{4}}} minute{{#ifexpr: {{{4}}} > 1|s}}.}} | }} over {{{4}}} minute{{#ifexpr: {{{4}}} > 1|s}}.}} | ||
</onlyinclude> | </onlyinclude> |
Revision as of 20:23, 20 October 2021
TavernRestore[edit]
This template is used food and drink available from within a tavern.
Example Usage | |
{{TavernRestore|Well Fed VII|Food|80|1}} | Well Fed VII: While in a tavern, you slowly recuperate hit points and spell points. Thisfood heals 80 hit points over 1 minute. |
{{TavernRestore|Quenched VIII|Drink|2400|2}} | Quenched VIII: While in a tavern, you slowly recuperate hit points and spell points. Thisdrink restores 2400 spell points over 2 minutes. |
{{TavernRestore|Lubricated I|Tonic|480|2}} | Lubricated I: While in a tavern, you slowly recuperate hit points and spell points. Thistonic restores 480 spell points over 2 minutes. |
{{TavernRestore|Tasty Ham Oil|oil|50|1|True|Tasty Ham Juice}} | Tasty Ham Juice: Tasty Ham Oil repairs 50 hit points over 1 minute. |
Usage[edit]
{{TavernRestore|(Title)|(Type)|(Points)|(Time)|(Anywhere?)|(Title)}}
Parameter Documentation | |
Title | This is the title of the enchancement |
Type | This is the type of food Possible Values:
|
Points | This is the points that are healed, restored, based on the type of food |
Time | The time frame the healing/restoring takes place. |
Anywhere? | Can this be used anywhere |
Title | The title, if it is different than the default. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{{1}}}: While in a tavern, you slowly recuperate hit points and spell points. This over {{{4}}} minuteExpression error: Unrecognized punctuation character "{"..