GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Contents
  • Current events
  • Random article
  • About Wikipedia
  • Contact us
  • Help
  • Learn to edit
  • Community portal
  • Recent changes
  • Upload file
  • Special pages
  • Search
  • Donate

This view

  • Original page
  • New address

GeezerVison is showing en.wikipedia.org — Wikipedia talk:Lua - Wikipedia

(Redirected from Module talk:Example)
Latest comment: 3 months ago by HouseBlaster in topic Module:String, section transclusion, and Parsoid
Lua (talk) Help To do Resources Reference manual
iconTo help centralize discussions and keep related topics together, Help talk:LuaHelp talk:Lua and all the subpages of this page (other than the archives) redirect here.
The content of Wikipedia:Lua/Requests was merged into Wikipedia talk:Lua on 5 February 2016. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists.
Miscellany for deletionWikipedia:Lua/To do was nominated for deletion on 21 May 2015. The result of the discussion was keep.

Module:String, section transclusion, and Parsoid

Latest comment: 3 months ago7 comments5 people in discussion

{{Arbitration standard provisions}} includes the text of, well, ArbCom's standard provisions. It includes the code {{#invoke:String|replace|source={{#section:Wikipedia:Arbitration Committee/Procedures|Standard appeals}}|pattern====*([^=]*)====*|replace=<p>'''%1'''</p>|plain=false}} to replace some HTML headings within Wikipedia:Arbitration Committee/Procedures § Appeals and modifications of enforcement actions with pseudoheaders; this avoid breaking arbitration cases' tables of contents.

This markup works as expected in the legacy parser, but breaks with Parsoid. Any thoughts on how to make this Parsoid-compatible? Thanks, HouseBlaster (talk • he/they) 01:15, 5 August 2026 (UTC)Reply

Looks like the headings come through in the legacy parser like
=='"`UNIQ--h-5--QINU`"' Heading text ==
Section content
, while in Parsoid the whole heading is hidden in the strip marker, like
'"`UNIQ--h-5--QINU`"'
Section content
There doesn't seem to be any way to access the heading text in the Parsoid version; mw.text.unstripNoWiki() doesn't reveal it. This seems worth reporting as a behavior difference in Parsoid, maybe they'll fix it. Anomie⚔ 01:47, 5 August 2026 (UTC)Reply
The other thing you might do is to have a module read the original wikitext of the page and extract the appropriate section directly, instead of using WP:LST and trying to process the half-parsed wikitext. But that might have its own issues. Anomie⚔ 01:47, 5 August 2026 (UTC)Reply
unrelated to the issue, i noticed that the pattern looks perverted.
note that the first = sign after pattern is not part of the pattern, it's the speparator between param name and param value, so the actual pattern is ===*([^=]*)====* (i.e., it requires 3 or more = signs before the group and 4 or more after). I guess this does not create too many problems in real life, but I think you want to fix it. קיפודנחש (aka kipod) (talk) 05:22, 5 August 2026 (UTC)Reply
If anyone wants to try Anomie's suggestion of parsing wikitext, there is a module for that: Module:WikitextParser. Johnuniq (talk) 06:05, 5 August 2026 (UTC)Reply
I created a test implementation in its sandbox at Special:Diff/1367769546. ~ Jenson (SilverLocust 💬) 22:09, 5 August 2026 (UTC)Reply
I've deployed that. Thank you all for your help! Best, HouseBlaster (talk • he/they) 02:13, 6 August 2026 (UTC)Reply
Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia_talk:Lua&oldid=1382747159"
Hidden categories:
  • Wikipedia pages using copied template
  • Wikipedia pages using merged-from template without oldid
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.