Template:ResearchLink/doc

From Foundry Wiki
< Template:ResearchLink
Revision as of 19:32, 9 May 2024 by Erkle64 (talk | contribs) (Created page with "{{doc/start}} 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 research. ==Usage== <pre> {{ResearchLink|Assembler I}} {{ResearchLink|1|2}} </pre> {{ResearchLink|Assembler I}} {{ResearchLink|1|2}} ===Parameters=== * <code>1</code> defines the name and im...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 research.

Usage

{{ResearchLink|Assembler I}}
{{ResearchLink|1|2}}

 Assembler I

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

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.