Template:Custom content icon
(Redirected from Template:Cci)
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
Garen, the Serpent Queen
Ability Icon[edit source]
Code
{{Cci|Orb of Deception.png|Ryze#Spell Flux|Noxious Binding}}
Result
Noxious Binding
Custom Icon[edit source]
There is a variant syntax that automatically sets border=false
Code
{{Ccib|Gnar (Mega) OriginalCircle.png|Yordle}}
Result
Yordle
Resources[edit source]
The above documentation is transcluded from Template:Custom content icon/doc. (edit | history) Please add categories to the documentation subpage only.
|