Final Fantasy Brave Exvius Wiki

Template:Sprite

Template-info.png Documentation

Description[edit source]

Construct a sprite based on certain unit and rarity.

Parameters[edit source]

  • First Parameter
    • lowest = Lowest rarity.
    • highest = Highest rarity (default).
    • specific(1-5).
  • size
    • big = Double the size of the sprite without blurring the image.
  • link
    • empty = Link to the unit page (default).
    • file = Link to the file, which should pop up as a lightbox in this wiki.
    • none = Does not link.

Usage[edit source]

{{Sprite|Exdeath|highest|size=big}}

Exdeath

Code[edit source]

Define array of all units, with base rarity and max rarity.
{{#arraydefine:Rain|2,6}}
{{#arraydefine:Lasswell|2,6}}
{{#arraydefine:Fina|2,5}}
{{#arraydefine:Rizer|1,2}}
{{#arraydefine:Leah|1,2}}
{{#arraydefine:Tronn|1,2}}
{{#arraydefine:Eldin|1,2}}
{{#arraydefine:Baurg|1,2}}
{{#arraydefine:Gimlee|1,2}}
{{#arraydefine:Maxell|1,2}}
{{#arraydefine:Liza|1,2}}
{{#arraydefine:Wedge|2,3}}
{{#arraydefine:Biggs|2,3}}
{{#arraydefine:Paul|2,3}}
{{#arraydefine:Anastasis|2,3}}
{{#arraydefine:Sarah|2,3}}
{{#arraydefine:King Giott|2,3}}
{{#arraydefine:Shiki|2,3}}
{{#arraydefine:Mizell|2,3}}
{{#arraydefine:Ronaldo|2,3}}
{{#arraydefine:Mel|2,3}}
{{#arraydefine:Vivi|3,4}}
{{#arraydefine:Penelo|3,5}}
{{#arraydefine:Maria|3,5}}
{{#arraydefine:Sabin|3,4}}
{{#arraydefine:Shadow|3,4}}
{{#arraydefine:Krile|3,5}}
{{#arraydefine:Kain|3,5}}
{{#arraydefine:Edgar|3,4}}
{{#arraydefine:Fran|3,4}}
{{#arraydefine:Shantotto|3,5}}
{{#arraydefine:Rydia|3,5}}
{{#arraydefine:Cyan|3,4}}
{{#arraydefine:Clyne|3,4}}
{{#arraydefine:Anzelm|3,4}}
{{#arraydefine:Luna|3,4}}
{{#arraydefine:Bedile|3,4}}
{{#arraydefine:Garland|3,6}}
{{#arraydefine:Exdeath|3,6}}
{{#arraydefine:Kuja|3,5}}
{{#arraydefine:Cloud of Darkness|3,6}}
{{#arraydefine:Cecil|3,6}}
{{#arraydefine:Terra|3,5}}
{{#arraydefine:Magitek Armor Terra|3,4}}
{{#arraydefine:Bartz|3,6}}
{{#arraydefine:Firion|3,6}}
{{#arraydefine:Zidane|3,5}}
{{#arraydefine:Vaan|3,6}}
{{#arraydefine:Duane|3,5}}
{{#arraydefine:Cerius|3,6}}
{{#arraydefine:Roselia|3,5}}
{{#arraydefine:Medius|3,6}}
{{#arraydefine:Sarai|1,2}}
{{#arraydefine:Paula|2,3}}
{{#arraydefine:Kenyu|2,3}}
{{#arraydefine:Ollie|2,3}}
{{#arraydefine:Carrie|2,3}}
{{#arraydefine:Skaha|2,3}}
{{#arraydefine:Montana|2,3}}
{{#arraydefine:Russell|3,4}}
{{#arraydefine:Miyuki|3,5}}
{{#arraydefine:Golbez|3,5}}
{{#arraydefine:Galuf|3,5}}
{{#arraydefine:Xiao|3,6}}
{{#arraydefine:Metal Minituar|1,1}}
{{#arraydefine:Metal Cactuar|2,2}}
{{#arraydefine:Metal Gigantuar|3,3}}
{{#arraydefine:Artemios|3,5}}
{{#arraydefine:Locke|3,5}}
{{#arraydefine:Leo|3,5}}
{{#arraydefine:Mini Gil Snapper|1,1}}
{{#arraydefine:Gil Snapper|2,2}}
{{#arraydefine:King Gil Snapper|3,3}}
{{#arraydefine:Gilbert|3,5}}
{{#arraydefine:Celes|3,5}}
{{#arraydefine:Kefka|3,5}}
{{#arraydefine:Rakshasa|3,5}}
{{#arraydefine:Chizuru|4,6}}
{{#arraydefine:Hayate|3,6}}
{{#arraydefine:Warrior of Light|4,6}}
{{#arraydefine:Lenna|3,5}}
{{#arraydefine:Tellah|3,5}}
{{#arraydefine:Amarant|3,5}}
{{#arraydefine:Lani|3,4}}
{{#arraydefine:Garnet|4,5}}
{{#arraydefine:Freya|3,5}}
{{#arraydefine:Lid|3,5}}
{{#arraydefine:Mini Tough Pot|3,3}}
{{#arraydefine:Tough Pot|4,4}}
{{#arraydefine:King Tough Pot|5,5}}
{{#arraydefine:Mini Magi Pot|3,3}}
{{#arraydefine:Magi Pot|4,4}}
{{#arraydefine:King Magi Pot|5,5}}
{{#arraydefine:Mini Power Pot|3,3}}
{{#arraydefine:Power Pot|4,4}}
{{#arraydefine:King Power Pot|5,5}}
{{#arraydefine:Mini Shield Pot|3,3}}
{{#arraydefine:Shield Pot|4,4}}
{{#arraydefine:King Shield Pot|5,5}}
{{#arraydefine:Mini Smart Pot|3,3}}
{{#arraydefine:Smart Pot|4,4}}
{{#arraydefine:King Smart Pot|5,5}}
{{#arraydefine:Mini Soul Pot|3,3}}
{{#arraydefine:Soul Pot|4,4}}
{{#arraydefine:King Soul Pot|5,5}}
{{#arraydefine:Mini Burst Pot|3,3}}
{{#arraydefine:Burst Pot|4,4}}
{{#arraydefine:King Burst Pot|5,5}}
{{#arraydefine:Trust Moogle|3,5}}
{{#arraydefine:Samatha|3,4}}
{{#arraydefine:Adel|3,4}}
{{#arraydefine:Karl|4,5}}
{{#arraydefine:Seria|4,5}}
{{#arraydefine:Tilith|4,5}}
{{#arraydefine:Charlotte|3,6}}
{{#arraydefine:Ludmille|3,5}}
{{#arraydefine:Lightning|5,6}}
{{#arraydefine:Ramza|5,6}}
{{#arraydefine:Delita|5,6}}
{{#arraydefine:Agrias|4,6}}
{{#arraydefine:Alma|3,5}}
{{#arraydefine:Gaffgarion|4,6}}
{{#arraydefine:Mustadio|3,5}}
{{#arraydefine:Snow|4,6}}
{{#arraydefine:Vanille|4,5}}
{{#arraydefine:Sazh|3,5}}
{{#arraydefine:Hope|4,5}}
{{#arraydefine:Fang|3,5}}
{{#arraydefine:Juggler|4,5}}
{{#arraydefine:Thief|4,5}}
{{#arraydefine:Fencer|4,5}}
{{#arraydefine:Rosa|4,5}}
{{#arraydefine:Dark Knight Cecil|5,6}}
{{#arraydefine:Edge|3,5}}
{{#arraydefine:Demon Rain|5,6}}
{{#arraydefine:Dracu Lasswell|5,6}}
{{#arraydefine:White Witch Fina|4,6}}
{{#arraydefine:Black Cat Lid|3,6}}
{{#arraydefine:Nichol|3,5}}
{{#arraydefine:Ace|5,6}}
{{#arraydefine:Trey|3,5}}
{{#arraydefine:Jack|3,5}}
{{#arraydefine:Seven|4,6}}
{{#arraydefine:Arc|3,5}}
{{#arraydefine:Ingus|3,5}}
{{#arraydefine:Refia|4,6}}
{{#arraydefine:Luneth|5,6}}
{{#arraydefine:Popoi|3,6}}
{{#arraydefine:Primm|4,6}}
{{#arraydefine:Randi|5,6}}
{{#arraydefine:Faris|3,5}}
{{#arraydefine:Gilgamesh|5,6}}
{{#arraydefine:Mercedes|4,6}}
{{#arraydefine:Cinque|3,5}}
{{#arraydefine:Eight|3,5}}
{{#arraydefine:Nine|4,6}}
{{#arraydefine:Queen|5,6}}
{{#arraydefine:Elle|3,5}}
{{#arraydefine:Luka|4,6}}
{{#arraydefine:Dark Fina|5,6}}
{{#arraydefine:Elza|5,6}}
{{#arraydefine:Maxwell|5,5}}
{{#arraydefine:Jake|3,5}}
{{#arraydefine:Sakura|3,5}}
{{#arraydefine:Orlandeau|5,6}}
{{#arraydefine:Ovelia|3,5}}
{{#arraydefine:Lawrence|3,5}}
{{#arraydefine:Soleil|4,6}}
{{#arraydefine:Noctis|5,6}}
{{#arraydefine:Santa Roselia|4,6}}
{{#arraydefine:White Knight Noel|5,6}}
{{#arraydefine:Guy|3,5}}
{{#arraydefine:Shera|3,5}}
{{#arraydefine:Leon|4,5}}
{{#arraydefine:Shine|4,6}}
{{#arraydefine:Marie|5,6}}
{{#arraydefine:Emperor|5,6}}
{{#arraydefine:Sice|3,5}}
{{#arraydefine:Heltich|3,5}}
{{#arraydefine:Ulrica|3,5}}
{{#arraydefine:Sozhe|4,6}}
{{#arraydefine:Aileen|5,6}}
{{#arraydefine:King|4,6}}
{{#arraydefine:Rem|5,6}}
{{#arraydefine:Dangerous Ariana|4,6}}
{{#arraydefine:Yun|5,6}}
{{#arraydefine:Ling|4,6}}
{{#arraydefine:Ashe|4,6}}
{{#arraydefine:Rasler|4,6}}
{{#arraydefine:Rikku|4,6}}
{{#arraydefine:Wakka|3,5}}
{{#arraydefine:Gil Snapper Family|4,4}}
{{#arraydefine:Tidus|5,6}}
{{#arraydefine:Amelia|4,6}}
{{#arraydefine:Olive|5,6}}
{{#arraydefine:Fohlen|5,6}}
{{#arraydefine:Vargas|5,6}}
{{#arraydefine:Moogle|4,6}}
{{#arraydefine:Y'shtola|5,6}}
{{#arraydefine:Minfilia|4,6}}
{{#arraydefine:Thancred|3,5}}
{{#arraydefine:King Metal Minituar|4,4}}
{{#arraydefine:Ayaka|5,6}}
{{#arraydefine:Zargabaath|5,6}}
{{#arraydefine:Artisan Lid|4,5}}
{{#arraydefine:Lunera|5,6}}
{{#arraydefine:Bran|4,6}}
{{#arraydefine:Helena|4,6}}
{{#arraydefine:Ruggles|3,5}}
{{#arraydefine:Mercenary Ramza|5,6}}
{{#arraydefine:Knight Delita|5,6}}
{{#arraydefine:Meliadoul|4,6}}
{{#arraydefine:Orran|4,6}}
{{#arraydefine:Veritas of the Dark|5,6}}
{{#arraydefine:Veritas of the Flame|5,6}}
{{#arraydefine:Veritas of the Earth|4,6}}
{{#arraydefine:Victoria|4,6}}
{{#arraydefine:Timothy|3,5}}
{{#arraydefine:2B|5,6}}
{{#arraydefine:A2|5,6}}
{{#arraydefine:Adam|4,6}}
{{#arraydefine:Eve|4,6}}
{{#arraydefine:9S|4,6}}
{{#arraydefine:21O|3,5}}
{{#arraydefine:Chic Ariana|4,6}}
{{#arraydefine:Veritas of the Light|5,6}}
{{#arraydefine:Veritas of the Heavens|4,6}}
{{#arraydefine:Veritas of the Waters|4,6}}
{{#arraydefine:Onion Knight|5,6}}
{{#arraydefine:Desch|4,6}}
{{#arraydefine:Aria|4,6}}
{{#arraydefine:Sara|3,5}}
{{#arraydefine:Swordsman Lasswell|4,5}}
{{#arraydefine:Prishe|5,6}}
{{#arraydefine:Werei|4,6}}
{{#arraydefine:Kupipi|3,5}}
{{#arraydefine:Goken|4,6}}
{{#arraydefine:Silvia|4,6}}
{{#arraydefine:Kamui|3,5}}
{{#arraydefine:Yuri|3,5}}
{{#arraydefine:Nyx|5,6}}
{{#arraydefine:Crowe|4,6}}
{{#arraydefine:Glauca|4,6}}
{{#arraydefine:Libertus|3,5}}
{{#arraydefine:Grim Lord Sakura|5,6}}
{{#arraydefine:Pirate Jake|4,6}}
{{#arraydefine:Illusionist Nichol|4,6}}
{{#arraydefine:Loren|5,6}}
{{#arraydefine:Chloe|4,6}}
{{#arraydefine:Amy|3,5}}
{{#arraydefine:Barbariccia|5,6}}
{{#arraydefine:Rubicante|4,6}}
{{#arraydefine:Cagnazzo|4,6}}
{{#arraydefine:Scarmiglione|3,5}}
{{#arraydefine:Charming Kitty Ariana|5,6}}
{{#arraydefine:Sportive Ariana|4,6}}
{{#arraydefine:Maiden Sakura|4,5}}
{{#arraydefine:Gladiolus|5,6}}
{{#arraydefine:Cor|4,6}}
{{#arraydefine:Iris|3,5}}
{{#arraydefine:Duke|5,6}}
{{#arraydefine:Olif|4,6}}
{{#arraydefine:Mystea|4,6}}
{{#arraydefine:Charie|3,5}}
{{#arraydefine:Ryunan|3,5}}
{{#arraydefine:Roy|5,6}}
{{#arraydefine:Aura|4,6}}
{{#arraydefine:Guromu|3,5}}
{{#arraydefine:Ashteroze|4,6}}
{{#arraydefine:Sandee|4,6}}
{{#arraydefine:Nyalu|4,6}}
{{#arraydefine:Kupolkan|4,6}}
{{#arraydefine:Grinfield|4,6}}
{{#arraydefine:Cowboy Jake|4,5}}
{{#arraydefine:Cloud|5,6}}
{{#arraydefine:Elfreeda|5,6}}
{{#arraydefine:William|4,6}}
{{#arraydefine:Conrad|3,5}}

If lowest, rarity = lowest. If highest = rarity highest. If empty, rarity = highest. Else rarity = itself.
{{#switch: {{{2|}}}
| lowest = {{#vardefine:rarity|{{#arrayindex:{{{1}}}|0}}}}
| highest = {{#vardefine:rarity|{{#arrayindex:{{{1}}}|-1}}}}
| = {{#vardefine:rarity|{{#arrayindex:{{{1}}}|-1}}}}
| {{#vardefine:rarity|{{{2}}}}}
}}

If size is big then add class big-pixelate
{{#ifeq: {{{size|}}} | big
| {{#vardefine:class|{{!}}class=big-pixelate}}
| {{#vardefine:class|}}
}}

If link = file, link to the file page. If none = link to nothing. If empty, link to the unit page.
{{#switch: {{{link|}}}
| file = {{#vardefine:link|}}
| none = {{#vardefine:link|{{!}}link=}}
| = {{#vardefine:link|{{!}}link={{{1|}}}}}
| {{#vardefine:link|{{!}}link={{{1|}}}}}
}}

Print file if unit name is not empty
{{#if: {{{1|}}} | [[File:Unit-{{{1}}}-{{#var:rarity}}.png|{{{1}}}{{#var:link}}{{#var:class}}]] |}}