Template:Character background icon: Difference between revisions

From League of Legends Wiki, LoL Wiki
Jump to navigation Jump to search
Content added Content deleted
(Valmar, Kai, Skaarl, and Valor each have their own character entries in Minor Characters)
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 = {{#if:{{{icononly|}}}|*none*|{{#if:{{{text|}}}|{{{text}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1|}}}}}}}}}
| 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 = {{#if:{{{size|}}}|{{{size}}}|20}}
| size = {{{size|20}}}
| width = {{{width|}}}
| width = {{{width|}}}
| height = {{{height|}}}
| height = {{{height|}}}
Line 10: Line 13:
| display = {{{display|}}}
| display = {{{display|}}}
| label = {{{label|}}}
| label = {{{label|}}}
| class = {{#if:{{{class|}}}|{{{class}}}|character-background-icon}}
| class = {{{class|character-background-icon}}}
| style = {{#if:{{{style|}}}|{{{style}}}|white-space:pre}}
| style = {{{style|white-space:pre}}}
| iconclass = {{{iconclass|}}}
| iconclass = {{{iconclass|}}}
| iconstyle = {{{iconstyle|}}}
| iconstyle = {{{iconstyle|}}}

Revision as of 18:53, 23 June 2025

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

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}}
An icon representing Universe:Cithria Cithria
{{cbi|Garen}}
An icon representing Universe:Garen Garen
Different Name
{{cbi|Vrynna|Scarmother Vrynna}}
An icon representing Universe:Vrynna Scarmother Vrynna
{{cbi|Sejuani|The Winter's Wrath}}
An icon representing Universe:Sejuani The Winter's Wrath
Weird Combinations
{{cbi|Kalista|A tragic person|image=Ledros_OriginalSquare.png}}
An icon representing Universe:Kalista A tragic person
{{cbi|Kalista|A tragic person|link=Universe:Ledros}}
An icon representing Universe:Ledros A tragic person
{{cbi|Viego|The Ruined King|link=The Ruination|image=Sovereign's Domination.png}}
An icon representing The Ruination The Ruined King
{{cbi|LeBlanc|"Jarvan IV"|image=Jarvan IV OriginalSquare.png}}
An icon representing Universe:LeBlanc "Jarvan IV"
{{cbi|Jinx|image=Jinx ArcaneEnemySquare.png}}
An icon representing Universe:Jinx Jinx

Template Data

Creates a link to a character's background page.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Character1

The Champion or Character to create a background link for.

Example
Cithria, Garen
Stringrequired
DisplayName2 text

The name or text that should be displayed in the link

Default
Character
Example
Cithria of Cloudfield, Garen Crownguard
Stringsuggested
Linklink

The page to link to.

Default
Character
Page namesuggested
Filefile image

The icon to use.

Default
Character_OriginalSquare.png
Filesuggested
No Linknolink

Do not create a link to the page.

Default
False
Auto value
True
Booleanoptional
Icon Sizesize

The height and width of the icon.

Default
20
Numberoptional
Icon Onlyicononly

Only generate an icon, no text.

Booleanoptional
classclass

See Module:ImageLink

Unknownoptional
stylestyle

See Module:ImageLink

Unknownoptional
widthwidth

See Module:ImageLink

Unknownoptional
heightheight

See Module:ImageLink

Unknownoptional
borderborder

See Module:ImageLink

Unknownoptional
separatorseparator

See Module:ImageLink

Unknownoptional
displaydisplay

See Module:ImageLink

Unknownoptional
labellabel

See Module:ImageLink

Unknownoptional
iconclassiconclass

See Module:ImageLink

Unknownoptional
iconstyleiconstyle

See Module:ImageLink

Unknownoptional
labelclasslabelclass

See Module:ImageLink

Unknownoptional
labelstylelabelstyle

See Module:ImageLink

Unknownoptional
possessivepossessive

See Module:ImageLink

Unknownoptional
editedit

See Module:ImageLink

Unknownoptional
editlinkeditlink

See Module:ImageLink

Unknownoptional

See also