Difference between revisions of "Template:TavernRestore"

From DDO Compendium
(Created page with "<noinclude>{{TemplateDocumentation |name = TavernRestore |description = This template is used food and drink available from within a tavern. |category=Item Enchantment Templat...")
 
Line 5: Line 5:
|example1 = <nowiki>{{TavernRestore|Well Fed VII|Food|80|1}}</nowiki>
|example1 = <nowiki>{{TavernRestore|Well Fed VII|Food|80|1}}</nowiki>
|example1output = {{TavernRestore|Well Fed VII|Food|80|1}}
|example1output = {{TavernRestore|Well Fed VII|Food|80|1}}
|example2 = <nowiki>{{TavernRestore|Classic|10}}</nowiki>
|example2 = <nowiki>{{TavernRestore|Quenched VIII|Drink|2400|2}}</nowiki>
|example2output = {{TavernRestore|Classic|10}}
|example2output = {{TavernRestore|Quenched VIII|Drink|2400|2}}
|example3 = <nowiki>{{TavernRestore||10}}</nowiki>
|example3 = <nowiki>{{TavernRestore|Lubricated I|Tonic|480|2}}</nowiki>
|example3output = {{TavernRestore||10}}
|example3output = {{TavernRestore|Lubricated I|Tonic|480|2}}
|example4 = <nowiki>{{TavernRestore|Custom|2||3}}</nowiki>
|example4 = <nowiki>{{TavernRestore|Oiled I|balm|90|3}}</nowiki>
|example4output = {{TavernRestore|Custom|2||3}}
|example4output = {{TavernRestore|Oiled I|balm|90|3}}
|parameter1name = Title
|parameter1name = Title
|parameter1description = This is the title of the enchancement
|parameter1description = This is the title of the enchancement
Line 25: Line 25:
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{EnchTitle||{{{1}}}|||False}}{{EnchBody|While in a tavern, you slowly recuperate hit points and spell points. This {{#switch: {{lc:{{{2|}}}
<onlyinclude>{{EnchTitle||{{{1}}}||True}}{{EnchBody|While in a tavern, you slowly recuperate hit points and spell points. This {{#switch: {{lc:{{{2|}}}}}
| food=food heals {{{3}}} hit points
| food=food heals {{{3}}} hit points
| drink=drink restores {{{3}}} spell points
| drink=drink restores {{{3}}} spell points
| tonic = tonic restores {{{3}}} spell points
| tonic = tonic restores {{{3}}} spell points
| balm = balm heals {{{3}}} hit points
}} over {{{4}}} minute{{#ifexpr: {{{4}}} > 1|s}}.}}
}} over {{{4}}} minute{{#ifexpr: {{{4}}} > 1|s}}.}}
</onlyinclude>
</onlyinclude>

Revision as of 17:45, 31 July 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. This food 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. This drink 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. This tonic restores 480 spell points over 2 minutes.
{{TavernRestore|Oiled I|balm|90|3}}Oiled I: While in a tavern, you slowly recuperate hit points and spell points. This balm heals 90 hit points over 3 minutes.

Usage[edit]

{{TavernRestore|(Title)|(Type)|(Points)|(Time)}}

Parameter Documentation
TitleThis is the title of the enchancement
TypeThis is the type of food
Possible Values:
  • Food
  • Drink
  • Tonic
PointsThis is the points that are healed, restored, based on the type of food
TimeThe time frame the healing/restoring takes place.

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 "{"..