ParserFunctionTest

From PickiPedia: A knowledge base of bluegrass, old time, and other traditional and public domain music
Revision as of 20:36, 15 January 2026 by Magent (talk | contribs) (Testing available parser functions (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]

  1. expr 1+1: 2[unverified]