Template:SuperPackPurchase: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
mNo edit summary
(broke out of fixed table layout, adjusted inner margins)
 
(9 intermediate revisions by one other user 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:{{#switch: {{{type}}}|HV=SuperPack-HV.png|RV=SuperPack-RV.png|LW=Salvage_Snowflake.png}}|32px]]
| style="width:100%; padding: 0.25em;" | '''[[Super Pack/{{#switch: {{{type}}}|HV=Heroes and Villains|RV=Rogues and Vigilantes|LW=Lords of Winter|''Error: no such super pack type {{{type|-blank-}}}''}}|Super Pack Purchase: {{#switch: {{{type}}}|HV=Heroes and Villains|RV=Rogues and Vigilantes|LW=Lords of Winter}}]]''' <br /> This enhancement is available as a random reward through the purchase of [[Super Pack/{{#switch: {{{type}}}|HV=Heroes and Villains|RV=Rogues and Vigilantes|LW=Lords of Winter}}|{{#switch: {{{type}}}|HV=Heroes and Villains|RV=Rogues and Vigilantes|LW=Lords of Winter}}]] [[Super Packs]]. [[Category:Super Pack Purchasable]]
|}</div></includeonly>
<noinclude>
The template requires a code for the super pack type. Code '''HV''' is used for Heroes and Villains superpacks, code '''RV''' for Rogues and Vigilantes, and '''LW''' for Lords of Winter. For example,


:<code><nowiki>{{SuperPackPurchase|type=HV}}</nowiki></code>
<div style="position: absolute; left: 0.5em; top: 0.6em;">[[File:{{#switch: {{{type}}}|HV=SuperPack-HV.png|RV=SuperPack-RV.png|LW=Salvage_Snowflake.png}}|32px|link=|alt=]]</div>


will produce the following:
<div style="margin: 0.5em 0; font-weight: bold;">[[Super Pack/{{#switch: {{{type}}}|HV=Heroes and Villains|RV=Rogues and Vigilantes|LW=Lords of Winter|''Error: no such super pack type {{{type|-blank-}}}''}}|Super Pack Purchase: {{#switch: {{{type}}}|HV=Heroes and Villains|RV=Rogues and Vigilantes|LW=Lords of Winter}}]]</div>


<div style="margin: 0.5em;">
<p style="margin: 0.5em 0;">
{| width="100%" style="background-color: #F4F4F4; border: 1px solid #AAAAAA;"
This enhancement is available as a random reward through the purchase of [[Super Pack/{{#switch: {{{type}}}|HV=Heroes and Villains|RV=Rogues and Vigilantes|LW=Lords of Winter}}|{{#switch: {{{type}}}|HV=Heroes and Villains|RV=Rogues and Vigilantes|LW=Lords of Winter}}]] [[Super Packs]].
| style="vertical-align: top; padding: 0.25em;" | [[Image:SuperPack-HV.png|32px]]
</p>
| style="width:100%; padding: 0.25em;" | '''[[Super Pack/Heroes and Villains|Super Pack Purchase: Heroes and Villains]]''' <br /> This enhancement is available as a random reward through the purchase of [[Super Pack/Heroes and Villains|Heroes and Villains]] [[Super Packs]]. [[Category:Super Pack Purchasable]]
</div>[[Category:Super Pack Purchasable]]</includeonly><noinclude>{{Documentation}}</noinclude>
|}</div></noinclude>
<noinclude>[[Category:ATO Templates]]</noinclude>

Latest revision as of 07:52, 13 May 2022

[edit] [purge] Documentation

Usage

The template requires one parameter named type which is a code for the super pack type. Valid codes are:

  • HV for Heroes and Villains super packs
  • RV for Rogues and Vigilantes super packs
  • LW for Lords of Winter super packs

For example,

{{SuperPackPurchase|type=HV}}

will produce the following:

This enhancement is available as a random reward through the purchase of Heroes and Villains Super Packs.

See also