Difference between revisions of "Template talk:Extension"

From Organic Design wiki
(New page: I got the following error after incorrectly adding the <?php tags wh...)
 
(return value of parser-function)
Line 1: Line 1:
I got the following error after incorrectly adding the <?php tags when I tried to access links such as this articles [http://www.organicdesign.co.nz/wiki/index.php?title=Template:Extension&oldid=69542 history];
+
== Parser-function return value ==
<php>
+
The callback may either return the text result of the function, or an array with the text in element 0, and a number of flags in the other elements. The names of the flags are specified in the keys. Valid flags are (see [http://meta.wikimedia.org/wiki/Extending_wiki_markup Extending wiki markup]
Parse error: syntax error, unexpected ';' in /var/www/extensions/geshi/GeSHiCodeTag.php on line 76
+
;found
</php>
+
:The text returned is valid, stop processing the template. This is on by default.
--[[User:Sven|Sven]] 21:29, 5 May 2007 (NZST)
+
;nowiki
 +
:Wiki markup in the return value should be escaped
 +
;noparse
 +
:Unsafe HTML tags should not be stripped, etc.
 +
;noargs
 +
:Don't replace triple-brace arguments in the return value
 +
;isHTML
 +
:The returned text is HTML, armour it against wikitext transformation

Revision as of 00:55, 7 May 2007

Parser-function return value

The callback may either return the text result of the function, or an array with the text in element 0, and a number of flags in the other elements. The names of the flags are specified in the keys. Valid flags are (see Extending wiki markup

found
The text returned is valid, stop processing the template. This is on by default.
nowiki
Wiki markup in the return value should be escaped
noparse
Unsafe HTML tags should not be stripped, etc.
noargs
Don't replace triple-brace arguments in the return value
isHTML
The returned text is HTML, armour it against wikitext transformation