Difference between revisions of "Template:Infoicon/doc"

From Captain of Industry Wiki
Jump to: navigation, search
(Creation)
 
(+plural param, clarification, improve examples)
Line 3: Line 3:


;Automations
;Automations
:Automatically detects a handful of filenames which should link to a differently-named article.
:Automatically detects and corrects a handful of mismatches between image filenames and desired article names.


;Usage
;Usage
:The template accepts up to two parameters:
: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|2=World Map|3=symbol_only=yes}} -> {{infoicon|World Map|symbol_only=yes}}
* {{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 name
symbolonly = yes (optional)
plural = s (optional)(recommend "s" or "es" or "esses")
Examples