Template:KitIconLine

From NationStates Sports Wiki
Revision as of 09:48, 8 May 2024 by Osarius (talk | contribs) (Created page with "<includeonly>|- {{#ifeq: {{{club|}}} | Y | {{!}} style="text-align: left" {{!}} {{UICAclublt|{{{1|Unknown Club}}}|{{{2|XXX}}}}} {{!}}{{!}} {{{code|ABC}}} | {{!}} style="text-align: left" {{!}} {{fb|{{{1|Unknown Nation}}}}} {{!}}{{!}} {{{2|XXX}}} }} | {{#ifeq: {{{club|}}} | Y | {{#if: {{{3|}}} | [[File:{{{code|ABC}}}_{{{2|XXX}}} H.png]] | – }} | {{#if: {{{3|}}} | [[File:{{{2|XXX}}} H.png]] | – }} }} | {{#ifeq: {{{club|}}} | Y | {{#if: {{{4|}}} | File:{{{co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Easier way to create links to kit icons for the Lineup Builder Icon Gallery.

Pass the nation, trigramme, and whether there are home/away/third kits for that team. In that order. If there is a kit, put Y. If there is a kit and a GK kit, put GK.

For example, {{KitIconLine|Osarius|OSR|GK}} (home outfield and GK kits only) will produce the following:

Nation Code Home Away Home GK Away GK Third Third GK
 Osarius OSR

While {{KitIconLine|Cobrio|CBR|GK|GK}} (GK kits for both home and away) will produce the following:

Nation Code Home Away Home GK Away GK Third Third GK
 Cobrio CBR

And {{KitIconLine|Akach|AKC|GK|Y}} (home GK kit, regular away kit only) will produce the following:

Nation Code Home Away Home GK Away GK Third Third GK
 Akach AKC

The same template can be used for domestic clubs, just pass a club trigramme, unique for their nation (e.g. HMD for Hastmead Diamante) as the "code" parameter, and "club=Y" at the end. For example, {{KitIconLine|Hastmead Diamante|GK|Y|code=HMD|club=Y}} will produce the following:

Club Code Home Away Home GK Away GK Third Third GK
 Hastmead Diamante (OSR) HMD File:HMD OSR H.png File:HMD OSR A.png File:HMD OSR H GK.png