Template:ReportGeneratorCode: Difference between revisions

From RadiWiki
Jump to navigation Jump to search
Tag: New redirect
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
#REDIRECT [[Template:ReportGeneratorInfo]]
<includeonly><nowiki>||</nowiki>{{{1}}}{{#ifeq:{{#len:{{{2|}}}}}|0||<nowiki>|</nowiki>{{{2}}}}}<nowiki>||</nowiki></includeonly><noinclude>This template can be used to show the [[report generator]] code itself.
Showing the report generator code itself is causing some problems, because the | is also interpreted by MediaWiki as an argument separator, the advised solution is to use '<code><nowiki>{{!}}</nowiki></code>' or '<code><nowiki><nowiki>||</nowiki></nowiki></code>', which is also used in this template. Using those commands is however very confusing in the actual documentation, thus it is easier to use this template. This template allows to specify 1 or 2 arguments and will thus allow to show a report generator code with and without a main keyword.
 
A typical usage is: <code><nowiki>{{ReportGeneratorCode|EUT|NAME}}</nowiki></code>
 
{{ReportGeneratorInfo|The most often used report generate code is: {{ReportGeneratorCode|EUT|NAME}}, but other often used codes are also: {{ReportGeneratorCode|EUT|ORDERNUMBER}} and {{ReportGeneratorCode|EUT|SERIAL NUMBER}}. In a printout template {{ReportGeneratorCode|DESCRIPTION}} will show the description of the test that is printed. }}
[[Category:Template]]</noinclude>

Latest revision as of 15:02, 24 January 2024

This template can be used to show the report generator code itself. Showing the report generator code itself is causing some problems, because the | is also interpreted by MediaWiki as an argument separator, the advised solution is to use '{{!}}' or '<nowiki>||</nowiki>', which is also used in this template. Using those commands is however very confusing in the actual documentation, thus it is easier to use this template. This template allows to specify 1 or 2 arguments and will thus allow to show a report generator code with and without a main keyword.

A typical usage is: {{ReportGeneratorCode|EUT|NAME}}

Report generator.png
The most often used report generate code is: ||EUT|NAME||, but other often used codes are also: ||EUT|ORDERNUMBER|| and ||EUT|SERIAL NUMBER||. In a printout template ||DESCRIPTION|| will show the description of the test that is printed.