Deep Rock Galactic Wiki
(Changed the template to have it play nicer in tables.)
(Added an option to center the icon in a table.)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<div style="position: relative; width: 100px; height: 100px;"> <!-- Div created to allow the child images to relatively position themselves -->
+
<div style="position: relative; width: 100px; height: 100px; {{#ifeq: {{{3|}}}|Center|margin:auto;|}}"> <!-- Div created to allow the child images to relatively position themselves -->
 
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);">
 
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);">
 
[[File:Frame Overclock {{{1|Clean}}}.png|100px|link=]] <!-- Overclock base image (Clean/Balanced/Unstable) --->
 
[[File:Frame Overclock {{{1|Clean}}}.png|100px|link=]] <!-- Overclock base image (Clean/Balanced/Unstable) --->

Revision as of 15:33, 9 August 2020

Template-info.png Documentation

{{Icon overclock full}} is used to insert icon images of overclocks with their icons overlayed.

Usage

{{Icon overclock full|Clean}} creates

Frame Overclock Clean.png

{{Icon overclock full|Clean|Cold}} creates

Frame Overclock Clean.png

Icon Upgrade Cold.png

{{Icon overclock full|Balanced|Cold}} creates

Frame Overclock Balanced.png

Icon Upgrade Cold.png

{{Icon overclock full|Unstable|Cold}} creates

Frame Overclock Unstable.png

Icon Upgrade Cold.png

The option 'Center' can be added after the Icon Upgrade or Icon Overclock name to center the Icon in a table.

Upgrades

See Category:Overclock icons for list of icon images.

Use portion of filename between 'Icon Upgrade' or 'Icon Overclock' and '.png' for the template.

Notes

  • Size is 100px.
  • Image names are case sensitive.