Difference between revisions of "Template:RemoveHTMLContainers"
(beginning of de-fucking of #ask spa(n/m) containers) |
|||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {{#sub: {{{string|}}} | {{#pos: {{{string|}}} | <span | + | {{#sub: {{{string|}}} |
+ | | {{#vardefineecho: startStr | ||
+ | | {{#pos: {{{string|}}} <!-- Find closing bracket ">" of LAST span opening tag (first closing bracket after offset from start of last opening bracket) | ||
+ | | > | ||
+ | | {{#rpos: {{{string|}}} <!-- Find LAST span opening tag--> | ||
+ | | <span | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | | {{#expr: {{#pos: {{{string|}}} <!-- find first opening bracket "<" of first closing tag of span containers--> | ||
+ | | < | ||
+ | | {{#var: startStr}} | ||
+ | }} - {{#var: startStr}} | ||
+ | }} | ||
+ | }} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Remove the fucking spa(n/m) containers #ask queries wrap around results making them impossible to use as variables for later computation | Remove the fucking spa(n/m) containers #ask queries wrap around results making them impossible to use as variables for later computation | ||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude> | </noinclude> |
Revision as of 15:52, 19 March 2019
Remove the fucking spa(n/m) containers #ask queries wrap around results making them impossible to use as variables for later computation