Difference between revisions of "Template:Infobox terminal/check graphic type/doc"

From Terminals
Jump to: navigation, search
(create documentation)
 
m (revise)
 
Line 1: Line 1:
This template validates the single positional argument as a valid graphic type name: Monochrome, StaticGray, GrayScale, PseudoColor, DirectColor or TrueColor.  If the argument is valid, the template expands to the canonical form of the graphic type.  If the argument isn't a valid graphic type, the template expands to empty.
+
This template validates the single positional argument as a valid graphic type name: Monochrome, StaticGray, GrayScale, PseudoColor, DirectColor or TrueColor.  If the argument is valid or empty, the template expands to 1.  If the argument is non-empty and isn't a valid graphic type, the template expands to empty.

Latest revision as of 06:07, 23 August 2012

This template validates the single positional argument as a valid graphic type name: Monochrome, StaticGray, GrayScale, PseudoColor, DirectColor or TrueColor. If the argument is valid or empty, the template expands to 1. If the argument is non-empty and isn't a valid graphic type, the template expands to empty.