Talk:Wikimedia Blog/Converting wiki pages to blog posts
From Meta, a Wikimedia project coordination wiki
BTW and FWIW, I just saw this plugin ("adds a subset of MediaWiki markups to WordPress"); did not try it out though. Regards, Tbayer (WMF) 20:17, 22 September 2011 (UTC)
MediaWiki 1.18 changes [edit]
It seems MediaWiki 1.18 has added a lot of noise to the code, even in Print version. Namely, the HTML code now includes the section edit links, even if they're hidden on the page. See the first span in the example below:
<h2><span class="editsection">[<a href="/w/index.php?title=Wikimedia_engineering_report/2011/September&action=edit&section=1" title="Edit section: Upcoming events">edit</a>]</span> <span class="mw-headline" id="Upcoming_events">Upcoming events</span></h2>
For reference, here's what the code looks like on a MediaWiki 1.17 wiki:
<h2><span class="mw-headline" id="Upcoming events">Upcoming events</span></h2>
guillom 13:51, 30 September 2011 (UTC)
- This seems to have been changed again (sensibly - at least I can't see what the purpose of these hidden links in the print version would have been): I don't see these links in the HTML for [1] any more.
- In any case, the first replacement rule in the script (the one containing <span class="editsection">) seems to be designed to address this, although when I tested it after your discovery, it failed for section headings that included a link (e.g. == [[Wikimedia Platform Engineering|Platform Engineering]]).
- Regards, Tbayer (WMF) 15:09, 14 October 2011 (UTC)