Hi,
this it how I did it till now, but it is uncomfortable for the user. Currently I intended for each tag to dynamical create a unique class which just have one static renderSample function and in there I just call another renderSample function with an additional tag parameter. But I hope that the $parser could tell me which tag is currently parsed.
Thanks Sigbert
On 05.03.2016 13:50, Frank Baxmann wrote:
Hi,
I think I had a similar problem. I solved it by using just one tag, and added an "action" param.
<sample action=dojobxxx>...</sample>
In "renderTagSample" you can then check the "action" arg and switch to the job you want to do...
Hope this helps. Greetings Frank
On 05.03.2016 10:35, Sigbert Klinke wrote:
Hi,
I'am writing a tag extension which declares several tags.
When with <sample>...</sample>
function renderTagSample( $input, array $args, Parser $parser, PPFrame $frame ) { ... }
is called is there a way to get the tag name "sample" itself inside renderTagSample?
Thanks in advance
Sigbert
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l