Template:Ufne/doc

From Ring of Brodgar
Jump to navigation Jump to search
Description
ufne => Use First None Empty (parameter).
Checks a set of anonymous parameters and returns the first non empty one.
"{{{1|{{{2|{{{3|}}}}}}}}}" will not do that. As it returns the first defined one - empty or not.
Syntax
{{ufne|parm1|parm2|...|parm9}}
Basic use example
{{ufne| {{{named-parm-1|}}} | {{{3|}}} | {{{named-parm-2|}}} | {{{2|}}} }}
Including the "{{...|}}" part is crucial here.
Limitation
Accepts & processes a maximum of 9 parameters.
Any parameters after nr 9 are ignored. No error message either.
Potential issue
Might not work with parm-data that contains a "=" character.