Adding sample code to TemplateParser::processTemplate() docs
authorkaldari <rkaldari@wikimedia.org>
Fri, 20 Feb 2015 19:09:43 +0000 (11:09 -0800)
committerkaldari <rkaldari@wikimedia.org>
Sat, 21 Feb 2015 00:40:31 +0000 (16:40 -0800)
Also reverting punctuation that was accidently changed in
change I28cd13d4d.

Change-Id: I1283fbfbaf8cefbbc951599ee286d923b9dedf65

includes/TemplateParser.php
includes/templates/NoLocalSettings.mustache

index 41ae4a4..559ffb9 100644 (file)
@@ -166,6 +166,16 @@ class TemplateParser {
 
        /**
         * Returns HTML for a given template by calling the template function with the given args
+        *
+        * @code
+        *     echo $templateParser->processTemplate(
+        *         'ExampleTemplate',
+        *         array(
+        *             'username' => $user->getName(),
+        *             'message' => 'Hello!'
+        *         )
+        *     );
+        * @endcode
         * @param string $templateName The name of the template
         * @param mixed $args
         * @param array $scopes
index 8a4616c..5457949 100644 (file)
@@ -31,7 +31,7 @@
                                <p>Please <a href="{{path}}mw-config/index.{{ext}}">complete the installation</a> and download LocalSettings.php.</p>
                        {{/installerStarted}}
                        {{^installerStarted}}
-                               <p>Please <a href="{{path}}mw-config/index.{{ext}}">set up the wiki</a> first!</p>
+                               <p>Please <a href="{{path}}mw-config/index.{{ext}}">set up the wiki</a> first.</p>
                        {{/installerStarted}}
                {{/localSettingsExists}}
                </div>