In template I want to use table, but because of complexity I must replace {| . |-and |} with {{{!}} , {{!}}- and {{!}}}
when I work on template data, there is possibility of adding {{{!}}} too even if there is none such parameter
In template I want to use table, but because of complexity I must replace {| . |-and |} with {{{!}} , {{!}}- and {{!}}}
when I work on template data, there is possibility of adding {{{!}}} too even if there is none such parameter
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/extensions/TemplateData | master | +13 -4 | Ignore bang magic word in table syntax when guessing parameters |
Change 469162 had a related patch set uploaded (by Samwilson; owner: Samwilson):
[mediawiki/extensions/TemplateData@master] Ignore bang magic word in table syntax when guessing parameters
@Samwilson: for the record, ! can be used as a legitimate parameter name (I don’t know how frequent this is) and one of the symbols in parameter name, so it’s not the best decision to do this check in a regex. Maybe it’s better to do a replacement for {{{!}} specifically, if that's possible?
Good point. I've updated the above patch to look for the three closing braces as well. Hopefully it's not turning too much into an ugly parser-in-regex. :)
Change 469162 merged by jenkins-bot:
[mediawiki/extensions/TemplateData@master] Ignore bang magic word in table syntax when guessing parameters