Template:Character background icon: Difference between revisions
(Valmar, Kai, Skaarl, and Valor each have their own character entries in Minor Characters) |
1Dawn2Dusk3 (talk | contribs) m (New ImageLink syntax) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:otherCharacterConnection|{{#ifeq:{{{1|}}}|Lamb|Kindred|{{#ifeq:{{{1|}}}|Wolf|Kindred|{{#ifeq:{{{1|}}}|Atreus|Pantheon|{{#ifeq:{{{1|}}}|Powder|Jinx|{{#ifeq:{{{1|}}}|Violet|Vi|{{#ifeq:{{{1|}}}|Vander|Warwick|{{#ifeq:{{{1|}}}|Beatrice|Swain|{{#ifeq:{{{1|}}}|Tibbers|Tybaulk|{{#ifexist:Universe:{{{1|}}}|{{{1|}}}|Minor Characters}}}}}}}}}}}}}}}}}}}}{{#invoke: ImageLink | basic |
<includeonly>{{#vardefine:otherCharacterConnection|{{#ifeq:{{{1|}}}|Lamb|Kindred|{{#ifeq:{{{1|}}}|Wolf|Kindred|{{#ifeq:{{{1|}}}|Atreus|Pantheon|{{#ifeq:{{{1|}}}|Powder|Jinx|{{#ifeq:{{{1|}}}|Violet|Vi|{{#ifeq:{{{1|}}}|Vander|Warwick|{{#ifeq:{{{1|}}}|Beatrice|Swain|{{#ifeq:{{{1|}}}|Tibbers|Tybaulk|{{#ifexist:Universe:{{{1|}}}|{{{1|}}}|Minor Characters}}}}}}}}}}}}}}}}}}}}{{#invoke: ImageLink | basic |
||
| link = {{#if:{{{nolink|}}}|*none*|{{#if:{{{link|}}}|{{{link}}}|Universe:{{#var:otherCharacterConnection}}}}}} |
| link = {{#if:{{{nolink|}}}|*none*|{{#if:{{{link|}}}|{{{link}}}|Universe:{{#var:otherCharacterConnection}}}}}} |
||
| text = |
| text = {{{text|{{{2|{{{1|}}}}}}}}} |
||
| alttext = {{{alttext|}}} |
|||
| alttextfull = {{{alttextfull|}}} |
|||
| textonly = {{{textonly|}}} |
|||
| image = {{#if:{{{file|}}}|{{{file}}}|{{#if:{{{image|}}}|{{{image}}}|{{#ifexist:File:{{{1|}}}_OriginalSquare.png|{{{1|}}}_OriginalSquare.png|{{#ifexist:File:{{{1|}}}Square.png|{{{1|}}}Square.png|{{{1|}}}_OriginalSquare.png}}}}}}}} |
| image = {{#if:{{{file|}}}|{{{file}}}|{{#if:{{{image|}}}|{{{image}}}|{{#ifexist:File:{{{1|}}}_OriginalSquare.png|{{{1|}}}_OriginalSquare.png|{{#ifexist:File:{{{1|}}}Square.png|{{{1|}}}Square.png|{{{1|}}}_OriginalSquare.png}}}}}}}} |
||
| size = |
| size = {{{size|20}}} |
||
| width = {{{width|}}} |
| width = {{{width|}}} |
||
| height = {{{height|}}} |
| height = {{{height|}}} |
||
Line 10: | Line 13: | ||
| display = {{{display|}}} |
| display = {{{display|}}} |
||
| label = {{{label|}}} |
| label = {{{label|}}} |
||
| class = |
| class = {{{class|character-background-icon}}} |
||
| style = |
| style = {{{style|white-space:pre}}} |
||
| iconclass = {{{iconclass|}}} |
| iconclass = {{{iconclass|}}} |
||
| iconstyle = {{{iconstyle|}}} |
| iconstyle = {{{iconstyle|}}} |
Revision as of 18:53, 23 June 2025
Usage
Icon template used for champion and character background pages. Creates an icon and text which both link to the given page ("Character" by default).
Syntax
{{cbi|<character>|<displayname>}}
Supported Characters
All champions and the following NPCs are supported:
To add support for other characters, make sure the respective page and icon exists (Character
and File:Character_OriginalSquare.png
), then add them to this list.
Example
- Simple
- {{cbi|Cithria}}
- {{cbi|Garen}}
- Different Name
- {{cbi|Vrynna|Scarmother Vrynna}}
- {{cbi|Sejuani|The Winter's Wrath}}
- Weird Combinations
- {{cbi|Kalista|A tragic person|image=Ledros_OriginalSquare.png}}
- {{cbi|Kalista|A tragic person|link=Universe:Ledros}}
- {{cbi|Viego|The Ruined King|link=The Ruination|image=Sovereign's Domination.png}}
- {{cbi|LeBlanc|"Jarvan IV"|image=Jarvan IV OriginalSquare.png}}
- {{cbi|Jinx|image=Jinx ArcaneEnemySquare.png}}
Template Data
Creates a link to a character's background page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Character | 1 | The Champion or Character to create a background link for.
| String | required |
DisplayName | 2 text | The name or text that should be displayed in the link
| String | suggested |
Link | link | The page to link to.
| Page name | suggested |
File | file image | The icon to use.
| File | suggested |
No Link | nolink | Do not create a link to the page.
| Boolean | optional |
Icon Size | size | The height and width of the icon.
| Number | optional |
Icon Only | icononly | Only generate an icon, no text. | Boolean | optional |
class | class | See Module:ImageLink | Unknown | optional |
style | style | See Module:ImageLink | Unknown | optional |
width | width | See Module:ImageLink | Unknown | optional |
height | height | See Module:ImageLink | Unknown | optional |
border | border | See Module:ImageLink | Unknown | optional |
separator | separator | See Module:ImageLink | Unknown | optional |
display | display | See Module:ImageLink | Unknown | optional |
label | label | See Module:ImageLink | Unknown | optional |
iconclass | iconclass | See Module:ImageLink | Unknown | optional |
iconstyle | iconstyle | See Module:ImageLink | Unknown | optional |
labelclass | labelclass | See Module:ImageLink | Unknown | optional |
labelstyle | labelstyle | See Module:ImageLink | Unknown | optional |
possessive | possessive | See Module:ImageLink | Unknown | optional |
edit | edit | See Module:ImageLink | Unknown | optional |
editlink | editlink | See Module:ImageLink | Unknown | optional |
See also
The above documentation is transcluded from Template:Character background icon/doc. (edit | history) Please add categories to the documentation subpage only.
|