Template:MeritCost: Difference between revisions

From City of Heroes: Rebirth Wiki
Jump to navigation Jump to search
imported>Konoko
(test)
m (updating template so that it doesn't add the no buy tag to examples.)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="margin: 0.5em;">
<includeonly><div style="margin: 0.5em;">
{| width="100%" style="background-color: #F4F4F4; border: 1px solid #AAAAAA;"
{| width="100%" style="background-color: #F4F4F4; border: 1px solid #AAAAAA;"
| style="vertical-align: top; padding: 0.25em;" | [[Image:E ICON MeritToken.png]]
| style="vertical-align: top; padding: 0.25em;" | [[Image:E ICON MeritToken.png|32px]]
| style="width:100%; padding: 0.25em;" | '''[[Merit Vendor|Merit Vendor Purchase]]'''<br />
| style="width:100%; padding: 0.25em;" | '''[[Reward Merit Vendor|Reward Merit Purchase]]'''<br />
{{#switch: {{{1}}}|
{{#switch: {{{1}}} |
| 0 = This recipe cannot be purchased at a Merit Vendor.
| 0 = This recipe cannot be purchased at a Reward Merit Vendor.  
| 1 = The [[Special Salvage#Reward Merit{{!}}Reward Merit]] cost of this recipe is 1 Merit.
{{#if: {{{2|}}}||[[Category:No Reward Merit Purchase]]}}
| #default = The [[Special Salvage#Reward Merit{{!}}Reward Merit]] cost of this recipe is {{{1}}} Merits.}}
| 1 = The [[Special Salvage#Reward Merit|Reward Merit]] cost of this recipe is 1 Merit.
|}</div><includeonly></includeonly><noinclude>To be used on IO Enhancment pages such as [[Devastation: Accuracy/Damage]] to list the Reward Merit cost of the recipe.
| The [[Special Salvage#Reward Merit|Reward Merit]] cost of this recipe is {{{1}}} Merits.}}
 
|}</div></includeonly><noinclude>{{documentation}}</noinclude>
<nowiki>{{MeritCost|0}}</nowiki>
{{MeritCost|0}}
 
<nowiki>{{MeritCost|1}}</nowiki>
{{MeritCost|1}}
 
<nowiki>{{MeritCost|200}}</nowiki>
{{MeritCost|200}}
 
[[Category:Invention System Templates|{{PAGENAME}}]]
</noinclude>

Latest revision as of 19:19, 23 June 2021

[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.

Examples

{{MeritCost|0}}

E ICON MeritToken.png Reward Merit Purchase

This recipe cannot be purchased at a Reward Merit Vendor.

NOTE: This adds the recipe to the No Reward Merit Purchase category.

{{MeritCost|1}}

E ICON MeritToken.png Reward Merit Purchase

The Reward Merit cost of this recipe is 1 Merit.

{{MeritCost|200}}

E ICON MeritToken.png Reward Merit Purchase

The Reward Merit cost of this recipe is 200 Merits.

See also