ws.checkers.CheckerBase module¶
- ws.checkers.CheckerBase.get_edit_summary_tracker(wikicode, summary_parts)¶
- ws.checkers.CheckerBase.localize_flag(wikicode, node, template_name)¶
If a
node
inwikicode
is followed by a template with the same base name astemplate_name
, this function changes the adjacent template’s name totemplate_name
.- Parameters
wikicode – a
mwparserfromhell.wikicode.Wikicode
objectnode – a
mwparserfromhell.nodes.Node
objecttemplate_name (str) – the name of the template flag, potentially including a language name