ParserFunctionTest
From PickiPedia: A knowledge base of bluegrass, old time, and other traditional and public domain music
Jump to navigationJump to search
Testing parser functions on IPFS URI:[unverified]
URI: ipfs://bafybeiavz2kvaf4rfv7q46hxse4fk2tcqpzm4mgr67jbdqa2wpdarcie5y[unverified]
Basic parser functions[edit]
- #if test: [unverified]
- #ifeq test: [unverified]
- #switch test: [unverified]
String functions[edit]
- #sub test: {{#sub:hello|0|2}}[unverified]
- #len test: {{#len:hello}}[unverified]
- #pos test: {{#pos:hello|l}}[unverified]
- #replace test: {{#replace:hello|l|L}}[unverified]
Workaround: Using #pos to detect ipfs[edit]
pos of "ipfs" in URI: {{#pos:ipfs://bafybeiavz2kvaf4rfv7q46hxse4fk2tcqpzm4mgr67jbdqa2wpdarcie5y|ipfs}}[unverified]
{{{1}}}[unverified]
Maybe use #expr?[edit]
- expr 1+1: 2[unverified]