Template:ArcAward: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
m (moved Template:ArcReward to Template:ArcAward: doh. renaming to match similar existing templates)
m (fix parameters)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><div style="margin: 0.5em;">
<includeonly><div style="display: flow-root; border: 1px solid #AAAAAA; margin: 0.5em; background-color: #F4F4F4;">
{| width="100%" style="background-color: #F4F4F4; border: 1px solid #AAAAAA;"
|-
{{#if: {{{m|}}} |
{{#if: {{{m|}}} |
{{!}} style="vertical-align: top; padding: 0.25em;" {{!}} [[File:E ICON MeritToken.png|22px]]
<p style="position: relative; margin: 0.5em; padding-left: calc(22px + 0.5em);">
{{!}} style="width:100%; padding: 0.25em;" {{!}} [[Merit Rewards]]: {{#switch: {{{m}}}
<span style="position: absolute; left: 0;">[[File:E ICON MeritToken.png|22px|link=|alt=]]</span>[[Merit Rewards]]: {{#switch: {{{m}}}
   | 0 = There are no [[Special Salvage#Reward Merit|Reward Merits]] awarded for this activity
   | 0 = There are no [[Special Salvage#Reward Merit|Reward Merits]] awarded for this activity
   | 1 = This activity awards 1 [[Special Salvage#Reward Merit|Reward Merit]]
   | 1 = This activity awards 1 [[Special Salvage#Reward Merit|Reward Merit]]
   | This activity awards {{{m}}} [[Special Salvage#Reward Merit|Reward Merits]]
   | This activity awards {{{m}}} [[Special Salvage#Reward Merit|Reward Merits]]
}}{{#if: {{{fb|}}} | &nbsp;through [[Flashback]] only}}.
}}{{#if: {{{fb|}}} | &nbsp;through [[Flashback]] only}}.</p>
}}
}}{{#if: {{{component|}}} |
|-
<p style="position: relative; margin: 0.5em; padding-left: calc(22px + 0.5em);">
{{#if: {{{s|}}} |
<span style="position: absolute; left: 0;">{{IComponentImage|{{{component}}}|22px}}</span>[[Incarnate Component]]: Level 50 characters may choose 1 [[{{{component}}} Component|{{{component}}}]] instead of Reward Merits.</p>
{{!}} style="vertical-align: top; padding: 0.25em;" {{!}} [[File:Salvage FishScale.png|22px]]
}}{{#if: {{{s|}}} |
{{!}} style="width:100%; padding: 0.25em;" {{!}} [[Incarnate Component]]: {{#switch: {{{s}}}
<p style="position: relative; margin: 0.5em; padding-left: calc(22px + 0.5em);">
<span style="position: absolute; left: 0;">[[File:Salvage IncarnateShard.png|22px|link=|alt=]]</span>[[Incarnate Component]]: {{#switch: {{{s}}}
   | 0 = There are no [[Incarnate Shard Component]]s awarded for this activity
   | 0 = There are no [[Incarnate Shard Component]]s awarded for this activity
   | 1 = This activity awards 1 [[Incarnate Shard Component]]
   | 1 = This activity awards 1 [[Incarnate Shard Component]]
   | This activity awards {{{s}}} [[Incarnate Shard Component]]s
   | This activity awards {{{s}}} [[Incarnate Shard Component]]s
}}.
}}.</p>
}}{{#if: {{{t|}}} |
<p style="position: relative; margin: 0.5em; padding-left: calc(22px + 0.5em);">
<span style="position: absolute; left: 0;">[[File:Salvage incarnate thread.png|22px|link=|alt=]]</span>[[Incarnate Component]]: {{#switch: {{{t}}}
  | 0 = There are no [[Incarnate Thread Component]]s awarded for this activity
  | 1 = This activity awards 1 [[Incarnate Thread Component]]
  | This activity awards {{{t}}} [[Incarnate Thread Component]]s
}}.</p>
}}
}}
|}</div></includeonly><noinclude>{{documentation}}</noinclude>
</div></includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 23:04, 4 October 2023

[edit] [purge] Documentation

Usage

To be used on pages with activities that give Merit Rewards and/or Incarnate Shards, including Contacts, Task/Strike Forces, etc.

The template accepts three parameters.

m=
Specifies the number of Merit Rewards awarded. Omit or leave blank to omit mention of Merit Rewards entirely. Set to zero to explicitly mention that none are awarded.
fb=
Specifies whether Merit Rewards are only awarded through Flashbacks. Omit or leave blank to omit mention of Flashbacks. Use fb=1 to specify that Merit Rewards are only granted when the task is completed as a flashback.
component=
Specifies the name of an Incarnate Component which players can choose instead of Reward Merits. Omit or leave blank to omit mention of Incarnate Components entirely.
s=
Specifies the number of Incarnate Shard Components awarded. Omit or leave blank to omit mention of Incarnate Shards entirely. Set to zero to explicitly mention that none are awarded.
t=
Specifies the number of Incarnate Thread Components awarded. Omit or leave blank to omit mention of Incarnate Threads entirely. Set to zero to explicitly mention that none are awarded.

Examples

{{ArcAward|m=0}}

Merit Rewards: There are no Reward Merits awarded for this activity.

{{ArcAward|m=42}}

Merit Rewards: This activity awards 42 Reward Merits.

{{ArcAward|m=8|fb=1}}

Merit Rewards: This activity awards 8 Reward Merits through Flashback only.

{{ArcAward|m=26|component=Ancient Nictus Fragment}}

Merit Rewards: This activity awards 26 Reward Merits.

Incarnate Component: Level 50 characters may choose 1 Ancient Nictus Fragment instead of Reward Merits.

{{ArcAward|m=12|s=1}}

Merit Rewards: This activity awards 12 Reward Merits.

Incarnate Component: This activity awards 1 Incarnate Shard Component.

{{ArcAward|m=12|t=1}}

Merit Rewards: This activity awards 12 Reward Merits.

Incarnate Component: This activity awards 1 Incarnate Thread Component.

See also