Template:LoH/ForgeRecipe: Difference between revisions
Jump to navigation
Jump to search
(doesn't work properly if I use the arg directly, so let's try using varpull...kinda ridiculous, but should work) |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{LoH/ForgeBegin|Forge Recipe: {{{card}}}}} | {{LoH/ForgeBegin|Forge Recipe: {{{card}}}}} | ||
|- style="color: #FFFFFF; background: #{{LoH/TableInnerColor}};" cellpadding="3" align="center" valign="middle" | |- style="color: #FFFFFF; background: #{{LoH/TableInnerColor}};" cellpadding="3" align="center" valign="middle" | ||
|{{LoH/CardLink|{{{card}}}}} | |{{#switch:{{{link|card}}} | ||
|card={{LoH/CardLink|{{{card}}}|{{{display|}}}}} | |||
|craft='''[[LoH/crafting/{{{card}}}|{{{display|{{{card}}}}}}]]''' | |||
|item='''[[LoH/items/{{{card}}}|{{{display|{{{card}}}}}}]]''' | |||
|{{{display|{{{card}}}}}}}} | |||
|{{{type}}} | |{{{type}}} | ||
|{{ | | | ||
{{LoH/ | {{{recipe}}} | ||
{{LoH/ForgeEnd}}<noinclude> | |||
==Documentation== | |||
This is the template used for displaying LoH forge recipes. Here's a quick rundown of the parameters: | |||
* card: The name of the card (or other item) produced by this recipe. Note that you should use this parameter even if what you're producing is an item, not a card. | |||
* link (defaults to "card"): How to link the item produced. If "card", will use <nowiki>{{LoH/CardLink}}</nowiki> to produce the link. For "craft" or "item", will link to <nowiki>[[LoH/crafting/{{{card}}}]]</nowiki> or <nowiki>[[LoH/items/{{{card}}}]]</nowiki> respectively. For "none", no link will be generated. Note that if you want to link to an item which is only part of <nowiki>{{{card}}}</nowiki>, leave this to "none" and set the "display" parameter appropriately. See [[LoH/forge/Legacy Coins x10]] for an example. | |||
* display: If the text to be displayed in the link isn't simply <nowiki>{{{card}}}</nowiki> (e.g. for cards which include numbers), set the text that you want to be displayed here. This can also be used to link in ways not already defined by the "link" parameter (see above). | |||
* type: The type of the forge recipe (Mission, Brawl, Packs, PvP, Other). | |||
* recipe: The actual contents of the recipe. This should look something like this: | |||
<pre><nowiki> | |||
recipe={{LoH/ForgeItemListBegin}} | |||
{{LoH/CraftingItem|Bust of Aloysius Zeroth}} x2 | |||
{{LoH/CraftingEnd}} | |||
</nowiki></pre> | |||
There is a family of templates that you can use for displaying the ingredients: | |||
* CraftingItem: for a recipe using a single item | |||
* CraftingRow: for a set of six colored items; specify the name of the item family (without any colors) as the parameter | |||
* CraftingCard: for a recipe using a single card | |||
* CraftingTwoItems, CraftingThreeItems, CraftingFourItems: for recipes using two, three, or four different items; specify the items as the parameters | |||
* CraftingEquipmentPlusItem: for recipes combining a piece of equipment with an item | |||
* CraftingCardPlusFive: for a recipe consisting of a card and five other items (currently only Turn Back the Clock, but there may be more). |
Latest revision as of 15:45, 12 September 2013
Forge Recipe: {{{card}}} |
Card | Recipe Type | Recipe |
---|---|---|
[{{fullurl:LoH/cards/{{{card}}}}} {{{card}}}] | {{{type}}} |
{{{recipe}}} |
Documentation[edit]
This is the template used for displaying LoH forge recipes. Here's a quick rundown of the parameters:
- card: The name of the card (or other item) produced by this recipe. Note that you should use this parameter even if what you're producing is an item, not a card.
- link (defaults to "card"): How to link the item produced. If "card", will use {{LoH/CardLink}} to produce the link. For "craft" or "item", will link to [[LoH/crafting/{{{card}}}]] or [[LoH/items/{{{card}}}]] respectively. For "none", no link will be generated. Note that if you want to link to an item which is only part of {{{card}}}, leave this to "none" and set the "display" parameter appropriately. See LoH/forge/Legacy Coins x10 for an example.
- display: If the text to be displayed in the link isn't simply {{{card}}} (e.g. for cards which include numbers), set the text that you want to be displayed here. This can also be used to link in ways not already defined by the "link" parameter (see above).
- type: The type of the forge recipe (Mission, Brawl, Packs, PvP, Other).
- recipe: The actual contents of the recipe. This should look something like this:
recipe={{LoH/ForgeItemListBegin}} {{LoH/CraftingItem|Bust of Aloysius Zeroth}} x2 {{LoH/CraftingEnd}}
There is a family of templates that you can use for displaying the ingredients:
- CraftingItem: for a recipe using a single item
- CraftingRow: for a set of six colored items; specify the name of the item family (without any colors) as the parameter
- CraftingCard: for a recipe using a single card
- CraftingTwoItems, CraftingThreeItems, CraftingFourItems: for recipes using two, three, or four different items; specify the items as the parameters
- CraftingEquipmentPlusItem: for recipes combining a piece of equipment with an item
- CraftingCardPlusFive: for a recipe consisting of a card and five other items (currently only Turn Back the Clock, but there may be more).