[Wikitext-l] Fwd: [Wikitech-l] #parser parser function - does this make any sense?

Sumana Harihareswara sumanah at wikimedia.org
Mon Oct 31 18:40:04 UTC 2011


Forwarding -- the rest of the thread is at
http://lists.wikimedia.org/pipermail/wikitech-l/2011-October/thread.html#56003
.

-------- Original Message --------
Subject: [Wikitech-l] #parser parser function - does this make any sense?
Date: Sat, 29 Oct 2011 02:01:15 +0200
From: Daniel Werner <DanWeEtz at web.de>
Reply-To: Wikimedia developers <wikitech-l at lists.wikimedia.org>
To: wikitech-l at lists.wikimedia.org

I am thinking about creating a very simple parser function #parse doing
nothing but returning parameter 1 with an "'noparse' => false" option.
Is there anything like this (or what could be abused for this) already
or is there any reason why this might be a bad idea?

The reason I want to have something like this is, I want to create a
template (for template and parser function black-box tests) accepting
something like {{((}}#somefunction:a{{!}}b{{!}}c{{))}} as parameter
value, showing {{#somefunction|a|b|c}} as output and at the same time
calling {{#parse: {{((}}#somefunction:a{{!}}b{{!}}c{{))}} }} so that
besides the definition also the result can be shown by the template output.

regards,
Daniel

_______________________________________________
Wikitech-l mailing list
Wikitech-l at lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l



More information about the Wikitext-l mailing list