5,761 Pages

[view] [edit] [history] [purge] Template documentation

Usage

This template creates a custom content icon, using any image and customizable text. It is a shorthand alternative to the Mediawiki syntax that may be ideal so long as the resources are established.

  • Icons are hyperlinked to the page specified instead of the actual file.

Syntax

Name Accepted parameters Notes
image
file
{{{1}}}
custom string (filename) Indicates the icon to render in prefix to the text.
image# custom string (filename) Extra icons that follow the first. Currently supports slots 2–3.
icononly true Indicates whether not to render text.
link
{{{2}}}
custom string Indicates a hyperlink to the indicated wiki page. Prints the text if text is undefined.
text
{{{3}}}
custom string Writes the display text. This is disabled if icononly is enabled.
size custom integer Indicates size of icon. Defaults to 20px.
width custom integer Indicates width of icon, consequently scaling the image.
height custom integer TBD
border true
false
Indicates whether border is drawn. Defaults to true.
separator custom string Writes text separating the icon from the display text. Leaving this empty will result in a whitespace.
display custom character Indicates whether to line break the text from the icon.
possessive true Indicates whether to write possessive suffix.
edit true Indicates whether to provide an edit superscript hyperlink.
editlink custom string Indicates edit page to link. Requires edit to be enabled.

Examples

Champion Icon

Code

{{Cci|Syndra OriginalSquare.png|Vayne/Background|Garen, the Serpent Queen}}

Result
Syndra OriginalSquare Garen, the Serpent Queen

Ability Icon

Code

{{Cci|Orb of Deception.png|Ryze#Spell Flux|Noxious Binding}}

Result
Orb of Deception Noxious Binding

Custom Icon

There is a variant syntax that automatically sets border=false

Code

{{Ccib|Gnar (Mega) OriginalCircle.png|Yordle}}

Result
Gnar (Mega) OriginalCircle Yordle

Resources

Community content is available under CC-BY-SA unless otherwise noted.