Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1355,6 +1355,17 @@ |
1356 | 1356 | $file: file object that will be used to create the image |
1357 | 1357 | &$params: 2-D array of parameters |
1358 | 1358 | |
| 1359 | +'ParserSectionCreate': Called each time the parser creates a document section |
| 1360 | +from wikitext. Use this to apply per-section modifications to HTML (like |
| 1361 | +wrapping the section in a DIV). Caveat: DIVs are valid wikitext, and a DIV |
| 1362 | +can begin in one section and end in another. Make sure your code can handle |
| 1363 | +that case gracefully. See the EditSectionClearerLink extension for an |
| 1364 | +example. |
| 1365 | +$this: the calling Parser instance |
| 1366 | +$section: the section number, zero-based, but section 0 is usually empty |
| 1367 | +&$sectionContent: ref to the content of the section. modify this. |
| 1368 | +$showEditLinks: boolean describing whether this section has an edit link |
| 1369 | + |
1359 | 1370 | 'ParserTestParser': called when creating a new instance of Parser in |
1360 | 1371 | maintenance/parserTests.inc |
1361 | 1372 | $parser: Parser object created |