ParserPower

## Basic functions

from https://help.fandom.com/wiki/Extension:ParserPower/Basic\_functions\_and\_tags

trim " dog "

trim: dog

Unescape power parser escapes (i.e. from pattern used in listfilter) resulting in parsabel wikitext (might show empty below)

uesc: remove

Unescape power parser escapes but wraps in nowiki preventing future parsing

uescnowiki: {{#ifexpr:{{#count:@|e}} > 0|keep|remove}}

Linkpage and linktext tags:

Main page

Home

Esc tag (useful for escaping patterns)
\{\{example\!param\e@@@@\}\}

Unescape if (here true should return 3)

ueif: 3

Or (first not empty argument)

or: hello

Unescape if equal (compare strings), evaluates true in example

ueifeq: equal

Token (string replace), here used to change dog into Cerberos with input text loaded from other page (case sensitive):
token: Kapitan bomba,Ancymon,,Piesek,1,99,3,something,information,dolar $$$,Cerberos,Dog,wardrobe bum bum,misc,91,2137,sign,query,cat,John Doe,Jane Doe,squirrel Jane,lazy turtle,piesek,rum bum brum,trum bum,num bum brum pum,Cerberos

Ue switch (should render output2)

ueswitch: output2

Follow - get target for redirect pages

Batman (redirect to scatman and to Gatman in the end - not included in export)

follow: Batman

## List functions

from https://help.fandom.com/wiki/Extension:ParserPower/List\_handling\_functions

List count

lstcnt: 27

Replace list separator with ♥

lstsep: Kapitan bomba ♥ Ancymon ♥ Piesek ♥ 1 ♥ 99 ♥ 3 ♥ something ♥ information ♥ dolar $$$ ♥ dog ♥ Dog ♥ wardrobe bum bum ♥ misc ♥ 91 ♥ 2137 ♥ sign ♥ query ♥ cat ♥ John Doe ♥ Jane Doe ♥ squirrel Jane ♥ lazy turtle ♥ piesek ♥ rum bum brum ♥ trum bum ♥ num bum brum pum ♥ dog

Get third element of the list

lstelem: Piesek

Get subset from the list (part of list wit custom separator utf-8 emoji 🤪 )

lstsub: rum bum brum 🤪 trum bum 🤪 num bum brum pum

Get index of "Piesek" if exists in the list case sensitive

lstind: 3

Append new item to end of the list

lstapp: Kapitan bomba,Ancymon,Piesek,1,99,3,something,information,dolar $$$,dog,Dog,wardrobe bum bum,misc,91,2137,sign,query,cat,John Doe,Jane Doe,squirrel Jane,lazy turtle,piesek,rum bum brum,trum bum,num bum brum pum,dog,new list item added

Prepend new item to the beginning of the list

lstprep: new list item added,Kapitan bomba,Ancymon,Piesek,1,99,3,something,information,dolar $$$,dog,Dog,wardrobe bum bum,misc,91,2137,sign,query,cat,John Doe,Jane Doe,squirrel Jane,lazy turtle,piesek,rum bum brum,trum bum,num bum brum pum,dog

Join two lists with new separator in result list

lstjoin: Kapitan bomba \* Ancymon \* Piesek \* 1 \* 99 \* 3 \* something \* information \* dolar $$$ \* dog \* Dog \* wardrobe bum bum \* misc \* 91 \* 2137 \* sign \* query \* cat \* John Doe \* Jane Doe \* squirrel Jane \* lazy turtle \* piesek \* rum bum brum \* trum bum \* num bum brum pum \* dog \* Other list element 1 \* other list element 2

Filter list to just keep Piesek simple way case insensitive by default

listfilter:

* Piesek
* piesek

Filter to keep only elements containing "e" (keep in mind pattern must be escaped wikitext to be parsed on backend side)

listfilter:

* Piesek
* something
* wardrobe bum bum
* query
* John Doe
* Jane Doe
* squirrel Jane
* lazy turtle
* piesek

Tokenised filter to fetch only elements that second word is "bum"

listfilter:

* wardrobe bum bum
* rum bum brum
* trum bum
* num bum brum pum

Simple case of list unique case insensitive (default)

listunique:

* Kapitan bomba
* Ancymon
* Piesek
* 1
* 99
* 3
* something
* information
* dolar $$$
* dog
* wardrobe bum bum
* misc
* 91
* 2137
* sign
* query
* cat
* John Doe
* Jane Doe
* squirrel Jane
* lazy turtle
* rum bum brum
* trum bum
* num bum brum pum

List sort alphanumeric case-sesnitive ascending keeping duplicates

listsort:

* 1
* 2137
* 3
* 91
* 99
* Ancymon
* Dog
* Jane Doe
* John Doe
* Kapitan bomba
* Piesek
* cat
* dog
* dog
* dolar $$$
* information
* lazy turtle
* misc
* num bum brum pum
* piesek
* query
* rum bum brum
* sign
* something
* squirrel Jane
* trum bum
* wardrobe bum bum

List sort alphanumeric case-insesnitive descending keeping duplicates

listsort:

* wardrobe bum bum
* trum bum
* squirrel Jane
* something
* sign
* rum bum brum
* query
* Piesek
* piesek
* num bum brum pum
* misc
* lazy turtle
* Kapitan bomba
* John Doe
* Jane Doe
* information
* dolar $$$
* dog
* Dog
* dog
* cat
* Ancymon
* 99
* 91
* 3
* 2137
* 1

List mapping function with template as output element generator Template:SampleListTemplate

listmap:

* List element "Kapitan bomba",
* List element "Ancymon",
* List element "Piesek",
* List element "1",
* List element "99",
* List element "3",
* List element "something",
* List element "information",
* List element "dolar $$$",
* List element "dog",
* List element "Dog",
* List element "wardrobe bum bum",
* List element "misc",
* List element "91",
* List element "2137",
* List element "sign",
* List element "query",
* List element "cat",
* List element "John Doe",
* List element "Jane Doe",
* List element "squirrel Jane",
* List element "lazy turtle",
* List element "piesek",
* List element "rum bum brum",
* List element "trum bum",
* List element "num bum brum pum",
* List element "dog"