Template:Resource/doc

From Cosmoteer Wiki
Jump to navigation Jump to search

A far more simplified template for inserting resource icons into articles. No need to include the icon file name or target link page anymore, simply invoke the template and the required resource. For example

{{Resource|Steel}}

Results in: Steel Icon.pngSteel

These icons can even be used in-line, for example we can write about Steel Icon.pngSteel like this, or say that an experimental new part needs 10,000 Hyper-Coils Icon.pngHyper-Coils to construct.

List of Available Resources

The following is a list of current available icons:

Using Named Resource Parameter

{{Resource|resource=Tri-Steel}}

Result: Tri-Steel Icon.pngTri-Steel

Using "omit label" Parameter

By default, only a few resources have their labels omitted. If this option is present in any way (enabled/disabled), it overrides the default behaviour.

CalloutIconTip.pngTip
To see what resource labels are omitted by default check out the parameter description.

Examples:

  • {{Resource|resource=Tri-Steel|omit label=0}}Tri-Steel Icon.pngTri-Steel - no effect, label is present by default.
  • {{Resource|resource=Tri-Steel|omit label=1}}Tri-Steel Icon.png - label is omitted.
  • {{Resource|resource=Credits|omit label=0}}Credits Icon.pngCredits - label is displayed instead of being omitted by default.
  • {{Resource|resource=Credits|omit label=1}}Credits Icon.png - no effect, label is omitted by default.