Template:LoH/ForgeRecipe: Difference between revisions

From zoywiki.com
Jump to navigation Jump to search
No edit summary
(added in a "link" parameter to make life somewhat easier for forge recipes that aren't cards; will require some changing of existing recipes however.)
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"
|{{{display|{{LoH/CardLink|{{{card}}}}}}}}
|{{#switch:{{{link|card}}}
|card={{LoH/CardLink|{{{card}}}|{{{display|}}}}}
|craft='''[[LoH/crafting/{{{card}}}|{{{display|{{{card}}}}}}]]'''
|item='''[[LoH/items/{{{card}}}|{{{display|{{{card}}}}}}]]'''
|{{{card}}}}}
|{{{type}}}
|{{{type}}}
|
|
Line 10: Line 14:
This is the template used for displaying LoH forge recipes. Here's a quick rundown of the parameters:
This is the template used for displaying LoH forge recipes. Here's a quick rundown of the parameters:


* card: The name of the card produced by this recipe. Note that you should use this parameter even if what you're producing is an item, not a card.
* 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.
* display: If this recipe produces a card, leave this parameter out -- the template will automatically produce a link to the card. If this recipe produces an item, then set this to how you want the item to be displayed, including a link. For instance, <nowiki>display='''[[LoH/Legacy Coins|Legacy Coins]]''' x10</nowiki>
* 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).
* 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: The actual contents of the recipe. This should look something like this:
<pre><nowiki>
<pre><nowiki>
recipe={{LoH/ForgeItemListBegin}}
recipe={{LoH/ForgeItemListBegin}}
{{LoH/CraftingItem|Bust of Aloysius Zeroth}}
{{LoH/CraftingItem|Bust of Aloysius Zeroth}} x2
{{LoH/CraftingEnd}}
{{LoH/CraftingEnd}}
</nowiki></pre>
</nowiki></pre>

Revision as of 12:20, 12 September 2013

Forge Recipe: {{{card}}}
Card Recipe Type Recipe
[{{fullurl:LoH/cards/{{{card}}}}} {{{card}}}] {{{type}}}

{{{recipe}}}

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 {{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).