Template:Phpi/testcases
Appearance
This is the template test cases page for the sandbox of Template:Phpi. to update the examples. |
Testing sandbox version
[edit]{{Phpi/sandbox}}
Testing main template
[edit]- without parameter
{{Phpi}}
{{{1}}}
- with parameter 1= boolean value
{{Phpi|1=false}}
false
- with lowcase call
{{phpi|1=True}}
True
- with parameter 1= any text
{{Phpi|1=Any raw text.}}
Any raw text.
- with parameter 1= boolean + usage inline
This parameter is {{Phpi|1=True}}.
This parameter is True
.
- if code sequence is more elaborated :
<?php /** * Aliases for Special:Foo * * @file * @ingroup Extensions */ $specialPageAliases = [];
(not effective), is better to use syntaxhighlight in this case:
<?php
/**
* Aliases for Special:Foo
*
* @file
* @ingroup Extensions
*/
$specialPageAliases = [];