Content deleted Content added
Sophivorus (talk | contribs) →Usage: Improve example |
Sophivorus (talk | contribs) mNo edit summary |
||
Line 27:
* <code>getLead( wikitext )</code> — Returns the lead section from the given wikitext. The lead section is defined as everything before the first section title. May be empty if there's no lead section.
* <code>getSections( wikitext )</code> — Returns the sections from the given wikitext, as a Lua table with the section titles as keys and the section content as values. This method doesn't get the lead section (use <code>getLead</code> for that).
* <code>getSection( wikitext, title )</code> — Returns the content of the section with the given title
For the ultimate documentation, see the source code below.
|