Page MenuHomePhabricator
Paste P5980

Parsoid section output for
ActivePublic

Authored by bearND on Sep 8 2017, 6:35 PM.
(with https://gerrit.wikimedia.org/r/#/c/364933/12)
[creates two sections: 1 lead + the foo section; the references (aka bar section text is contained inside the foo section, which is similar to how action=mobileview behaves]
bin/parse.js --prefix fywiki --page "Meidogger:BSitzmann_(WMF)/MCS/Test/Sectioning1" </dev/null
<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/"><head prefix="mwr: http://fy.wikipedia.org/wiki/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageNamespace" content="2"/><meta property="mw:pageId" content="120515"/><meta property="mw:html:version" content="1.5.0"/><link rel="dc:isVersionOf" href="//fy.wikipedia.org/wiki/Meidogger%3ABSitzmann_(WMF)/MCS/Test/Sectioning1"/><title></title><base href="//fy.wikipedia.org/wiki/"/><link rel="stylesheet" href="//fy.wikipedia.org/w/load.php?modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Cskins.vector.styles%7Csite.styles%7Cext.cite.style%7Cmediawiki.page.gallery.styles&amp;only=styles&amp;skin=vector"/></head><body data-parsoid='{"dsr":[0,73,0,0]}' lang="fy" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><section data-parsoid='{"dsr":[0,6,0,0]}'><p data-parsoid='{"dsr":[0,5,0,0]}'>text0</p>
</section>
<section data-section-number="1" data-parsoid='{"dsr":[6,73,0,0]}'><h2 id="foo" data-parsoid='{"dsr":[6,13,2,2]}'>foo</h2>
<p data-parsoid='{"dsr":[14,19,0,0]}'>text1</p>
<div style="position:absolute; visibility:hidden; height:0; margin-top:1em;" about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"stx":"html","dsr":[21,73,null,null],"pi":[[{"k":"boarnefernijing","named":true,"spc":["","","\n","\n"]}]]}' data-mw='{"parts":[{"template":{"target":{"wt":"boarnen","href":"./Berjocht:Boarnen"},"params":{"boarnefernijing":{"wt":"ref (text2)\n----\ntext3"}},"i":0}}]}'>
<h2 id="Boarnen.2C_noaten_en_referinsjes"> Boarnen, noaten en referinsjes </h2>
</div><span about="#mwt1">
</span><table class="toccolours" style="font-size:85%; margin-top:1em; border: 1px solid #aaa; padding: 5px; clear: both;" width="100%" about="#mwt1">
<tbody><tr><td><b>Boarnen, noaten en/as referinsjes:</b></td></tr>
<tr>
<td>
<p>ref (text2)</p>
<hr/>
<p>text3</p></td></tr>
</tbody></table></section>
</body></html>