Template:MeritCost: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Konoko (historical)
mNo edit summary
m (match padding to IOFlag)
 
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><div style="margin: 0.5em;">
<includeonly><div style="display: flow-root; position: relative; border: 1px solid #AAAAAA; margin: 0.5em; padding: 0.5em 0.5em 0.5em 48px; background-color: #F4F4F4;">
{| width="100%" style="background-color: #F4F4F4; border: 1px solid #AAAAAA;"
| style="vertical-align: top; padding: 0.25em;" | [[Image:E ICON MeritToken.png]]
| style="width:100%; padding: 0.25em;" | '''[[Merit Vendor|Merit Vendor Purchase]]'''<br />
{{#switch: {{{1|}}} |
| 0 = This recipe cannot be purchased at a Merit Vendor.
| 1 = The [[Special Salvage#Reward Merit|Reward Merit]] cost of this recipe is 1 Merit.
| The [[Special Salvage#Reward Merit|Reward Merit]] cost of this recipe is {{{1}}} Merits.}}
|}</div></includeonly><noinclude>To be used on IO Enhancment pages such as [[Devastation: Accuracy/Damage]] to list the Reward Merit cost of the recipe.


<nowiki>{{MeritCost|0}}</nowiki>
<div style="position: absolute; left: 0.5em; top: 0.6em;">[[File:E ICON MeritToken.png|32px|link=|alt=]]</div>
{{MeritCost|0}}


<nowiki>{{MeritCost|1}}</nowiki>
<div style="margin: 0.5em 0; font-weight: bold;">[[Reward Merit Vendor|Reward Merit Purchase]]</div>
{{MeritCost|1}}


<nowiki>{{MeritCost|200}}</nowiki>
<p style="margin: 0.5em 0;">
{{MeritCost|200}}
{{#switch: {{{1}}} |
 
| 0 = This {{#if: {{{2}}}|{{#switch: {{{2}}}|E=enhancement|recipe}}|recipe}} may not be purchased at a [[Reward Merit Vendor|Merit Vendor]].
[[Category:Invention System Templates|{{PAGENAME}}]]
| 1 = The [[Special Salvage#Reward Merit|Reward Merit]] cost of this {{#if: {{{2}}}|{{#switch: {{{2}}}|E=enhancement|recipe}}|recipe}} is 1 Merit.
</noinclude>
| The [[Special Salvage#Reward Merit|Reward Merit]] cost of this {{#if: {{{2}}}|{{#switch: {{{2}}}|E=enhancement|recipe}}|recipe}} is {{{1}}} Merits.}}
</p>
</div></includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 16:13, 20 April 2022

[edit] [purge] Documentation

Usage

To be used on IO Enhancement pages such as Ruin: Accuracy/Damage to list the Reward Merit cost of the recipe. An optional second positional argument can be used to describe reward merit purchases of items other than recipes. Currently recognized codes for the second positional argument are:

  • E for enhancement

Examples

{{MeritCost|0}}

This recipe may not be purchased at a Merit Vendor.

{{MeritCost|1}}

The Reward Merit cost of this recipe is 1 Merit.

{{MeritCost|200}}

The Reward Merit cost of this recipe is 200 Merits.

{{MeritCost|200|E}}

The Reward Merit cost of this enhancement is 200 Merits.

See also