Index: trunk/extensions/LabeledSectionTransclusion/lstParserTests.txt |
— | — | @@ -229,7 +229,7 @@ |
230 | 230 | !!input |
231 | 231 | {{#lst:no such article|anything}} |
232 | 232 | !!result |
233 | | -<p><a href="https://www.mediawiki.org/index.php?title=No_such_article&action=edit" class="new" title="No such article">No such article</a> |
| 233 | +<p><a href="https://www.mediawiki.org/index.php?title=No_such_article&action=edit&redlink=1" class="new" title="No such article (not yet written)">No such article</a> |
234 | 234 | </p> |
235 | 235 | !!end |
236 | 236 | |
Index: trunk/extensions/LabeledSectionTransclusion/lsth.php |
— | — | @@ -93,6 +93,15 @@ |
94 | 94 | else |
95 | 95 | $result = substr($text, $begin_off); |
96 | 96 | |
| 97 | + |
| 98 | + if (method_exists($parser->getPreprocessor)) |
| 99 | + { |
| 100 | + $frame = $parser->getPreprocessor()->newFrame(); |
| 101 | + $dom = $parser->preprocessToDom( $result ); |
| 102 | + $result = $frame->expand( $dom ); |
| 103 | + } |
| 104 | + |
| 105 | + |
97 | 106 | return LabeledSectionTransclusion::parse_($parser,$title,$result, "#lsth:${page}|${sec}", $nhead); |
98 | 107 | } |
99 | 108 | |