FANDOM


{{categorize}} is a tool for indexing the unit array and filtering desired results. It also can reference a class array for class placement information. The current commands that can be used are as follows

Commands

in:"Field"="value" <-- Include

This would do an exact match in the current field, for the value specified. So, in:Rarity=Black would only find units with ['Rarity'] = Black.

ex:"Field"="value" <-- Exclude

Same as in:, but instead it excludes them from the results. ex:Rarity=Bronze would show all units except bronze rarity.

in$:"Field"="value" and ex$:"Field"="value" <--Include/Exclude (Partial)

same as the above two, but instead of an exact match, it will allow a partial match using lua pattern matching or any form of plain text. "ex$:Name=Distant" would remove anyone with distant in their name.

Pre= and Suf= <-- Prefix/Suffix

Allows you to wrap the whole call into anything, really. Very useful for running this through into a template. Has special keywords.

  • {{!}} used to make a pipe ( | ). This isn't unique to this template, more of a reminder.
  • <DRCB/> "Double Right Curley Brackets. For calling templates, you can't use pipes or curlies, use these instead
  • <DLCB/> "Double Left Curley Brackets. same as above.

Pre=<DRCB/>IconCenter{{!}}<DRCB/>IconRow{{!}} and Suf={{!}}width=60<DLCB/><DLCB/> would make a centered icon row, for example, when used with the proper separators.

Sep= <-- Seperator

with the above example, you would use "Sep={{!}}" to put pipes inbetween each result, rather then having them join into one big string.

IPL="number" <-- Item per line

will set how many items appear before a new line is created. When used with prefix and suffixes, repeats them each line. works with suffixes, too.

Text= <-- Text (thanks, captain!) By default, nothing will appear. use special keywords and plain text to be displayed for each entry

  • <NAME/> will display the units literal name.
  • <PAGE/> will display a page tag in their array if they have one, otherwise defaults to <NAME/>.
  • <IMG/> will display a image tag in their array if they have one, otherwise defaults to <IMG/>.

Sort=

More of a filter for the first letter. Uses pattern matching. [A-G] would show only units with capital letters from A all the way to G. [^A-G] would do the opposite. Plain text works fine, too.

Start= and End=

If you need to transclude a bunch of pages each call, you can split the result up into multiple pages. Ie, one page has no start and an end set to 100, the second has start set to 101, end at 200. etc.

Debug=

For finding errors in the database. Top is a list of units who did were missing an array setting (not always a bad thing), the middle is normal and the bottom is plaintext, non-wikified version.

Example

Tip for use: It may be worth typing out how you want it, then replace the words with the keywords.

INPUT:

{{categorize
|in:Rarity=Platinum
|in:Placement=Melee
|Text=<NAME/>
|Sep={{!}}
|Pre=<DRCB/>IconCenter{{!}}<DRCB/>IconRow{{!}}
|Suf={{!}}width=60<DLCB/><DLCB/>
|IPL=10}}

{{categorize
|in:Rarity=Platinum
|in:Placement=Ranged
|Text=<NAME/>
|Sep={{!}}
|Pre=<DRCB/>IconCenter{{!}}<DRCB/>IconRow{{!}}
|Suf={{!}}width=60<DLCB/><DLCB/>
|IPL=10}}

RESULT:

Ada Icon
Akane Icon
Aleese Icon
Alicia Icon
Amelie Icon
Arslan Icon
Azami Icon
Barous Icon
Belphe Icon
Bernice (Christmas) Icon
Carat Icon
Carrie (Swimsuit) Icon
Charlotte Icon
Charlotte (Christmas) Icon
Charmy Icon
Chloe Icon
Chou&#039;un Icon
Claudia Icon
Cypria Icon
Cypria (Christmas) Icon
Dahlia Icon
Daisy Icon
Daki Icon
Dolly Icon
Doula Icon
Eden Icon
Elene Icon
Elva Icon
Emilia Icon
Erenia Icon
Erica Icon
Faa Icon
Fermi Icon
Flamel Icon
Friede Icon
Fuuko Icon
Gellius Icon
Gloria Icon
Gretel Icon
Helena Icon
Hina Icon
Horus Icon
Ignis Icon
Imelia Icon
Inari Icon
Irene Icon
Isabelle Icon
Itsuki Icon
Jake Icon
Jerome Icon
Jessica Icon
Julia Icon
Junon Icon
Karma (Platinum) Icon
Kasumi Icon
Katie (New Year&#039;s) Icon
Katina Icon
Konoha Icon
Lan-Fa Icon
Lateria Icon
Lei-Mei Icon
Leora Icon
Liddy Icon
Lieselotte Icon
Lilia Icon
Lina Icon
Louise Icon
Lucia Icon
Lucille Icon
Lumian Icon
Lychnos Icon
Lyla Icon
Lythtis Icon
Maribel Icon
Marika Icon
Meiling Icon
Melvina Icon
Miranda Icon
Miruno Icon
Momiji Icon
Nadia Icon
Nephty Icon
Palfy Icon
Phonia Icon
Racua Icon
Ramii Icon
Raven Icon
Reanbell Icon
Regina Icon
Rikka Icon
Rindou Icon
Rischelte Icon
Roana Icon
Rorone Icon
Sabine Icon
Sakuya Icon
Sandra Icon
Sandy Icon
Sarasa Icon
Saris Icon
Sayo Icon
Sephire Icon
Sera Icon
Seria Icon
Seven Icon
Shade Icon
Shelt Icon
Sherry Icon
Shirley Icon
Shizuka Icon
Shuuka Icon
Siena Icon
Sonken Chuubo Icon
Sukuha Icon
Taigong Wang Icon
Thetis Icon
Tial Icon
Tyr Icon
Uzume Icon
Viera Icon
Viola Icon
Young Nobleman of the Distant Land Icon
Yurina Icon
Zenobia Icon


Adele Icon
Agnes Icon
Aida Icon
Amy Icon
Anelia Icon
Anita Icon
Aoba Icon
Bashira Icon
Beatrica Icon
Belzetta Icon
Blanche Icon
Bowwoman of the Distant Land Icon
Camilla Icon
Cenote Icon
Charles Icon
Chydis Icon
Clarice Icon
Corin Icon
Dolce Icon
Echidna Icon
Elias Icon
Eliza Icon
Ersha Icon
Eva Icon
Farangis Icon
Figuneria Icon
Hana Icon
Helmine Icon
Holly Icon
Hyuna Icon
Janna Icon
Kagura Icon
Kanon Icon
Kokoro Icon
Koyomi Icon
Lehren Icon
Len Icon
Leona Icon
Lepuru Icon
Linaria Icon
Livre Icon
Loretta Icon
Maple Icon
Marius Icon
Marle Icon
Marnie Icon
Mei-Hua Icon
Memento Icon
Meredith Icon
Mia Icon
Motley Icon
Oscar Icon
Patra Icon
Paula Icon
Paula (Swimsuit) Icon
Pippin Icon
Prim Icon
Psyche Icon
Pupuru Icon
Rachel Icon
Ralph Icon
Reve Icon
Revy Icon
Ricola Icon
Rino (Valentine&#039;s) Icon
Rita Icon
Roza Icon
Rubinas Icon
Ryuryu (Valentine&#039;s) Icon
Rösel Icon
Sabrina Icon
Saria Icon
Sereina Icon
Shiho Icon
Sill Icon
Solano Icon
Spica Icon
Supura Icon
Totono Icon
Velty Icon
Verdinath Icon
Victoria Icon
Vivian Icon
Waltz Icon
Wonder Heart Icon
Xiao-Mei Icon
Yuno Icon


Community content is available under CC-BY-SA unless otherwise noted.