From Biowikifarm Metawiki
Revision as of 15:38, 7 November 2009 by Stephan Opitz (Talk | contribs) (1 revision)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
[edit] Template documentation

This template takes up to four parameters, returning the first one that has any content. In contrast to default values of template parameters, this method is not sensitive to the difference between undefined (Null) and empty string.


Normally, a template parameter evaluated with a default value, such as "{{{parameter1 | MISSING }}}" will return the default value ("Missing") if not appearing in the template call, but an empty string ("") if the template call contains:

| ...
| parameter1=
| ...


{{First-of| {{{primary|}}} | {{{alternative|}}} | DefaultValue }}
{{First-of| A | B | C }}

Result in:


See also

Related documentation on Wikipedia