Template:Custom content icon

From League of Legends Wiki, LoL Wiki
(Redirected from Template:Cci)
Jump to navigation Jump to search
[view] [edit] [history] [purge] Template documentation

Usage[edit source]

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[edit source]

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[edit source]

Champion Icon[edit source]

Code

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

Result
An icon representing Vayne Garen, the Serpent Queen

Ability Icon[edit source]

Code

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

Result
An icon representing Ryze#Spell Flux Noxious Binding

Custom Icon[edit source]

There is a variant syntax that automatically sets border=false

Code

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

Result
An icon representing Yordle Yordle

Resources[edit source]