Difference between revisions of "User:Socke/Testable Begin"
From Free Pascal wiki
Jump to navigationJump to search (Usage example) |
(How to write template name) |
||
Line 13: | Line 13: | ||
</pre> | </pre> | ||
− | The whole template has to be in one line. | + | The whole template has to be in one line; the template name has to use the underscored template name—<span style="line-height:110%;font-family:Monospace;background-color:#CEF6CE;"><nowiki>{{User:Socke/Testable_Begin}}</nowiki></span> is okay, <span style="line-height:110%;font-family:Monospace;background-color:#F5A9A9;"><nowiki>{{User:Socke/Testable Begin}}</nowiki></span> is not. You may not specify each parameter on a new line (unless you optimize the regular expressions which are used to parse this). |
{|class="wikitable" | {|class="wikitable" | ||
!Valid example !! Invalid example | !Valid example !! Invalid example |
Revision as of 16:46, 3 September 2014
Usage
Create an own Wiki page for each testable code. Each page should look like
{{User:Socke/Testable_Begin}} <syntaxhighlight> program myprogram; begin // your code end; </syntaxhighlight> {{User:Socke/Testable_End}}
The whole template has to be in one line; the template name has to use the underscored template name—{{User:Socke/Testable_Begin}} is okay, {{User:Socke/Testable Begin}} is not. You may not specify each parameter on a new line (unless you optimize the regular expressions which are used to parse this).
Valid example | Invalid example |
---|---|
{{User:Socke/Testable_Begin|os=Linux|preset=MyPresetConfig|packages=LCL}} |
{{User:Socke/Testable_Begin |os=Linux |preset=MyPresetConfig |packages=LCL }} |
Template parameters
You can specify some paramters to this template which are recognized by the testing utility (but not used in any means).
Parameter | Description |
---|---|
preset | Predefined set of FPC/Lazarus configuration (e.g. Raspberry) |
os | Operating system (e.g. WinXP, MaxOSX10.6, Debian7, etc.) |
packages | Required Lazarus Packages in build environment |