https://bugzilla.wikimedia.org/show_bug.cgi?id=48663
--- Comment #8 from Roan Kattouw <[email protected]> --- (In reply to comment #7) > We were just looking at the wiki config to see if we can recognize something > as > a parser function (instead of a template) and ran into trouble: > > * Looks like parser functions usage comes in 2 flavours: (a) with the > #-prefix: > ex: {{#if ..}}, etc. (b) without the #-prefix: ex: {{lc:...}} > * config.functionhooks provides a list of parser functions, but that list > doesn't distinguish between (a) and (b) above. So, the functionhooks list > has > an entry for "lc" and an entry of "if" (not #if). > This is controlled by the SFH_NO_HASH flag in CoreParserFunctions.php. Is this flag not exposed in config.functionhooks? > If > knowing that something is a parser function is essential for VE, then we > could > implement this check and maybe add a flag in data-mw or add some other way of > marking up a parser function. data-mw.target.isPF = true possibly? It's not essential for July, but it's required in order to be able to support Wikidata editing. For that purpose, we'd like for parserfunctions to be marked as something like typeof="mw:Object/ParserFunction/#if" , as opposed as a template with a special data-mw bit (we could deal with the latter too, but the former would be much more convenient). -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
