Index: branches/REL1_18/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -98,8 +98,7 @@ |
99 | 99 | if ( strval( $part1 ) !== '' ) { |
100 | 100 | $args = array_slice( func_get_args(), 2 ); |
101 | 101 | $message = wfMessage( $part1, $args )->inLanguage( $parser->getOptions()->getUserLang() )->plain(); |
102 | | - $message = $parser->replaceVariables( $message ); // like MessageCache::transform() |
103 | | - return $message; |
| 102 | + return array( $message, 'noparse' => false ); |
104 | 103 | } else { |
105 | 104 | return array( 'found' => false ); |
106 | 105 | } |
Index: branches/REL1_18/phase3/tests/parser/parserTests.txt |
— | — | @@ -8734,12 +8734,12 @@ |
8735 | 8735 | |
8736 | 8736 | !! test |
8737 | 8737 | Bug 31098 Template which includes system messages which includes the template |
8738 | | -!! options |
8739 | | -disabled |
8740 | 8738 | !! input |
8741 | 8739 | {{Identical}} |
8742 | 8740 | !! result |
8743 | | -... |
| 8741 | +<p><span class="error">Template loop detected: <a href="https://www.mediawiki.org/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span> |
| 8742 | +<span class="error">Template loop detected: <a href="https://www.mediawiki.org/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span> |
| 8743 | +</p> |
8744 | 8744 | !! end |
8745 | 8745 | |
8746 | 8746 | !! test |
— | — | @@ -8798,6 +8798,23 @@ |
8799 | 8799 | !! end |
8800 | 8800 | |
8801 | 8801 | |
| 8802 | +!! article |
| 8803 | +MediaWiki:Bug32057 |
| 8804 | +!! text |
| 8805 | +== {{int:headline_sample}} == |
| 8806 | +!! endarticle |
| 8807 | + |
| 8808 | +!! test |
| 8809 | +Bug 32057: Title needed when expanding <h> nodes. |
| 8810 | +!! options |
| 8811 | +title=[[Main Page]] |
| 8812 | +!! input |
| 8813 | +{{int:Bug32057}} |
| 8814 | +!! result |
| 8815 | +<h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a>]</span> <span class="mw-headline" id="Headline_text"> Headline text </span></h2> |
| 8816 | + |
| 8817 | +!! end |
| 8818 | + |
8802 | 8819 | TODO: |
8803 | 8820 | more images |
8804 | 8821 | more tables |