Template:RecipeLink: Difference between revisions
No edit summary |
No edit summary |
||
Line 203: | Line 203: | ||
| Xenoferrite Plates (Tier 2) = [[Image:Item Xenoferrite Plates.png|{{{size|{{#if:{{{size|}}}|{{{size}}}|x20}}}}}px|link={{{link|Recipe Xenoferrite Plates (Tier 2)}}}|alt=]] | | Xenoferrite Plates (Tier 2) = [[Image:Item Xenoferrite Plates.png|{{{size|{{#if:{{{size|}}}|{{{size}}}|x20}}}}}px|link={{{link|Recipe Xenoferrite Plates (Tier 2)}}}|alt=]] | ||
| Xenoferrite Plates (Tier 3) = [[Image:Item Xenoferrite Plates.png|{{{size|{{#if:{{{size|}}}|{{{size}}}|x20}}}}}px|link={{{link|Recipe Xenoferrite Plates (Tier 3)}}}|alt=]] | | Xenoferrite Plates (Tier 3) = [[Image:Item Xenoferrite Plates.png|{{{size|{{#if:{{{size|}}}|{{{size}}}|x20}}}}}px|link={{{link|Recipe Xenoferrite Plates (Tier 3)}}}|alt=]] | ||
| Technum = [[Image:Item Molten Technum.png|{{{size|{{#if:{{{size|}}}|{{{size}}}|x20}}}}}px|link={{{link|Recipe Technum}}}|alt=]] | | Molten Technum = [[Image:Item Molten Technum.png|{{{size|{{#if:{{{size|}}}|{{{size}}}|x20}}}}}px|link={{{link|Recipe Molten Technum}}}|alt=]] | ||
| Xenoferrite = [[Image:Item Molten Xenoferrite.png|{{{size|{{#if:{{{size|}}}|{{{size}}}|x20}}}}}px|link={{{link|Recipe Xenoferrite}}}|alt=]] | | Molten Xenoferrite = [[Image:Item Molten Xenoferrite.png|{{{size|{{#if:{{{size|}}}|{{{size}}}|x20}}}}}px|link={{{link|Recipe Molten Xenoferrite}}}|alt=]] | ||
}} [[{{{link|Recipe {{{1}}}}}}|{{{2|{{{text|{{{1}}}}}}}}}]]</includeonly> | }} [[{{{link|Recipe {{{1}}}}}}|{{{2|{{{text|{{{1}}}}}}}}}]]</includeonly> | ||
<noinclude> | <noinclude> |
Revision as of 11:06, 10 May 2024
Takes a single parameter and provides a link to something accompanied by a 20px image of it.
For this template to work, there must be a png image with the same name of the page you are trying to link to.
Optionally define a second parameter to change the name of the recipe.
Usage
{{RecipeLink|Assembler I}} {{RecipeLink|1|2}}
Parameters
1
defines the name and image, adding content equivalent to [[File:1.png|20x20px|link=1]] [[1]].2
(optional) provides alternate text on the link. If given, the template will instead add content equivalent to [[File:1.png|20x20px|link=1]] [[1|2]].
TemplateData
Creates a link to a recipe with an accompanying image.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Link | 1 link | no description | Page name | required |
Text | 2 text | no description
| String | optional |
Image | image | no description
| File | optional |
Size | size | no description | String | optional |
The above documentation is transcluded from Template:RecipeLink/doc. (edit | history)