Template:RecipeLink: Difference between revisions

From Foundry Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><span style="white-space:nowrap;">
<includeonly><span style="white-space:nowrap;">{{#switch: {{{1}}}
{{#switch: {{{1}}}
  | Advanced Xenoferrite-Ignium Ore Blend = [[Image:Item Advanced Xenoferrite-Ignium Ore Blend.png{{!}}48px{{!}}link={{{link|Recipe Advanced Xenoferrite-Ignium Ore Blend}}}{{!}}alt=]]
  | Advanced Xenoferrite-Ignium Ore Blend = [[Image:Item Advanced Xenoferrite-Ignium Ore Blend.png{{!}}48px{{!}}link={{{link|Recipe Advanced Xenoferrite-Ignium Ore Blend}}}{{!}}alt=]]
  | Air Intake Base = [[Image:Item Air Intake Base.png{{!}}48px{{!}}link={{{link|Recipe Air Intake Base}}}{{!}}alt=]]
  | Air Intake Base = [[Image:Item Air Intake Base.png{{!}}48px{{!}}link={{{link|Recipe Air Intake Base}}}{{!}}alt=]]
Line 206: Line 205:
  | Technum = [[Image:Item Molten Technum.png{{!}}48px{{!}}link={{{link|Recipe Technum}}}{{!}}alt=]]
  | Technum = [[Image:Item Molten Technum.png{{!}}48px{{!}}link={{{link|Recipe Technum}}}{{!}}alt=]]
  | Xenoferrite = [[Image:Item Molten Xenoferrite.png{{!}}48px{{!}}link={{{link|Recipe Xenoferrite}}}{{!}}alt=]]
  | Xenoferrite = [[Image:Item Molten Xenoferrite.png{{!}}48px{{!}}link={{{link|Recipe Xenoferrite}}}{{!}}alt=]]
| {{{1}}}
}}</includeonly>
}}</includeonly>
<noinclude>
<noinclude>

Revision as of 23:15, 9 May 2024


Template-info.png Documentation

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}}

1


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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Link1 link

no description

Page namerequired
Text2 text

no description

Default
{{{1}}}
Stringoptional
Imageimage

no description

Default
{{{1}}}.png
Fileoptional
Sizesize

no description

Stringoptional