Difference between revisions of "Template:Infoicon/doc"
From Captain of Industry Wiki
Thadius856 (talk | contribs) m (typo) |
Thadius856 (talk | contribs) (update examples) |
||
Line 9: | Line 9: | ||
::<code>{{{1}}}</code> = image name</code> | ::<code>{{{1}}}</code> = image name</code> | ||
::<code>symbolonly = yes</code> (optional)(rare) | ::<code>symbolonly = yes</code> (optional)(rare) | ||
::<code>link = no</code> (optional). | ::<code>link = something</code> (optional). Changes the link's target to the specified value. If set to <code>no</code>, prevents linking. | ||
::<code>text = something</code> (optional). Changes the link's text to the specified value. | |||
::<code>plural = s</code> (optional). Generally "s" or "es" as a plural suffix. | ::<code>plural = s</code> (optional). Generally "s" or "es" as a plural suffix. | ||
:::For irregular plural suffixes like "knife" → "knives", instead use <code>symbolonly</code> and manually provide the link. | :::For irregular plural suffixes like "knife" → "knives", instead use <code>symbolonly</code> and manually provide the link. | ||
Line 16: | Line 17: | ||
;Examples | ;Examples | ||
* {{t|infoicon}} → {{infoicon}} | * {{t|infoicon}} → {{infoicon}} | ||
* {{t|infoicon|PCB}} → {{infoicon|PCB}} | * {{t|infoicon|PCB}} → {{infoicon|PCB}} | ||
* {{t|infoicon|PCB|3=icononly=yes}} → {{infoicon|PCB|icononly=yes}} | |||
* {{t|infoicon|PCB|3=plural=s}} → {{infoicon|PCB|plural=s}} | * {{t|infoicon|PCB|3=plural=s}} → {{infoicon|PCB|plural=s}} | ||
* {{t|infoicon|PCB|3=link=no | * {{t|infoicon|PCB|3=link=no}} → {{infoicon|PCB|plural=s|link=no}} | ||
* {{t|infoicon|PCB|3= | * {{t|infoicon|PCB|3=link=PCBWay}} → {{infoicon|PCB|link=PCBway}} | ||
* {{t|infoicon|Electronics II|3=text=Circuit City}} → {{infoicon|Electronics II|text=Circuit City}} | |||
* {{t|infoicon|Worker|3=ui=yes}} → {{infoicon|Worker|ui=yes}} | * {{t|infoicon|Worker|3=ui=yes}} → {{infoicon|Worker|ui=yes}} | ||
* {{t|infoicon|Worker|3=plural=s|4=ui=yes}} → {{infoicon|Worker|plural=s|ui=yes}} | * {{t|infoicon|Worker|3=plural=s|4=ui=yes}} → {{infoicon|Worker|plural=s|ui=yes}} |
Revision as of 07:03, 25 January 2022
- Purpose
- This template provides a method to rapidly include an icon and link inline with text, such as inside of a paragraph or in a bulleted list.
- Automations
- Automatically detects and corrects a handful of mismatches between image filenames and desired article names.
- Usage
- The template accepts the following parameters:
{{{1}}}
= image namesymbolonly = yes
(optional)(rare)link = something
(optional). Changes the link's target to the specified value. If set tono
, prevents linking.text = something
(optional). Changes the link's text to the specified value.plural = s
(optional). Generally "s" or "es" as a plural suffix.- For irregular plural suffixes like "knife" → "knives", instead use
symbolonly
and manually provide the link.
- For irregular plural suffixes like "knife" → "knives", instead use
ui = yes
(optional). Prevents the white glow which improves accessibility from being applied (useful for white UI elements)
- Examples
- {{infoicon}} → Infoicon: parameter {{{1}}} was not provided
- {{infoicon|PCB}} → PCB
- {{infoicon|PCB|icononly=yes}} →
- {{infoicon|PCB|plural=s}} → PCBs
- {{infoicon|PCB|link=no}} → PCBs
- {{infoicon|PCB|link=PCBWay}} → PCB
- {{infoicon|Electronics II|text=Circuit City}} → Circuit City
- {{infoicon|Worker|ui=yes}} → Worker
- {{infoicon|Worker|plural=s|ui=yes}} → Workers
- {{infoicon|Workers|ui=yes}} → Workers
- {{infoicon|Unity|ui=yes}} → Unity
- {{infoicon|Unity Large|ui=yes}} → Unity Large
- This is an example of an image which is too large and busy to display properly as an infoicon (see File:Unity Large.png).