Difference between revisions of "Template:Infoicon/doc"
From Captain of Industry Wiki
Thadius856 (talk | contribs) (Creation) |
Thadius856 (talk | contribs) (+plural param, clarification, improve examples) |
||
Line 3: | Line 3: | ||
;Automations | ;Automations | ||
:Automatically detects a handful of filenames | :Automatically detects and corrects a handful of mismatches between image filenames and desired article names. | ||
;Usage | ;Usage | ||
:The template accepts up to | :The template accepts up to three parameters: | ||
::<code>{{{1}}}</code> = image name</code> | ::<code>{{{1}}}</code> = image name</code> | ||
::<code>symbolonly = yes</code> (optional) | ::<code>symbolonly = yes</code> (optional) | ||
::<code>plural = s</code> (optional)(recommend "s" or "es" or "esses") | |||
;Examples | ;Examples | ||
* {{t|infoicon}} -> {{infoicon}} | * {{t|infoicon}} -> {{infoicon}} | ||
* {{t|infoicon|World Map}} -> {{infoicon|World Map}} | * {{t|infoicon|World Map}} -> {{infoicon|World Map}} | ||
* {{t|infoicon| | * {{t|infoicon|World Map|3=symbol_only=yes}} -> {{infoicon|World Map|symbol_only=yes}} | ||
* {{t|infoicon|World Map|3=link=yes}} -> {{infoicon|World Map|link=yes}} | |||
* {{t|infoicon|Worker}} -> {{infoicon|Worker}} | * {{t|infoicon|Worker}} -> {{infoicon|Worker}} | ||
* {{t|infoicon|Worker|3=plural=s}} -> {{infoicon|Worker|plural=s}} | |||
* {{t|infoicon|Workers}} -> {{infoicon|Workers}} | * {{t|infoicon|Workers}} -> {{infoicon|Workers}} | ||
* {{t|infoicon|Unity}} -> {{infoicon|Unity}} | * {{t|infoicon|Unity}} -> {{infoicon|Unity}} |
Revision as of 22:53, 21 January 2022
- Purpose
- This template provides a method to rapidly include an icon and link inline with text, such as inside of a paragraph.
- Automations
- Automatically detects and corrects a handful of mismatches between image filenames and desired article names.
- Usage
- The template accepts up to three parameters:
{{{1}}}
= image namesymbolonly = yes
(optional)plural = s
(optional)(recommend "s" or "es" or "esses")
- Examples
- {{infoicon}} -> Infoicon: parameter {{{1}}} was not provided
- {{infoicon|World Map}} -> World Map
- {{infoicon|World Map|symbol_only=yes}} -> World Map
- {{infoicon|World Map|link=yes}} -> World Map
- {{infoicon|Worker}} -> Worker
- {{infoicon|Worker|plural=s}} -> Workers
- {{infoicon|Workers}} -> Workers
- {{infoicon|Unity}} -> Unity
- {{infoicon|Unity Large}} -> Unity Large