Ben Kurtovic

Results 104 comments of Ben Kurtovic

I don't know how I feel about this. You can do something similar yourself by iterating over the templates after `parse` has been called and using `code.replace` if the template...

Can you clarify the parser function thing - do you mean expanding parser function logic within the parser (e.g. the parser knows to convert `{{#if:test|foo|bar}}` into `foo`) or just that...

This is a good idea, and we should fold it into the other planned work to recognize localized namespaces (e.g. to recognize [[File:]] links).

Sorry this took a while to get a response. The template is missing in this case because there's a syntax inconsistency with a bold tag (see #40). You can work...

Hi @ananth1996, The issue is basically that the entire RfA content is inside a `` tag, and `get_sections()` expects headings to be nodes at the top level of the wikicode....

I don’t think there’s a good built-in way to do that, unfortunately. You would need to do some manual node iteration. For example: for each unnested li tag, find the...

A proper fix for this will involve reworking how wikicode-style tags are represented in the tree structure. I don't think it will be especially difficult, but it will be a...

https://github.com/ansuz/RIIR

I'm not really clear why you need this. Usually it's sufficient to either look up specific parameters by name using `template.get(name)`, or iterate over the list of all parameters using...

> However, I would expect `.get(parameter)` to return a single value, i.e. the value that actually ends up being used. Yep, that's what `.get()` does. > it occurred to me...