Template:Firstdata/doc
< Template:Firstdata
Jump to navigation
Jump to search
Revision as of 10:15, 13 December 2016 by imported>DePiep (→example)
| 40px | This is a documentation subpage for Template:Firstdata. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Can have up to three parameters input. Will return the first parameter that is not blank.
{{firstdata
|1=
|2=
|3=
}}
or
{{firstdata|||}}
Practical use is inside an other template:
{{firstdata|{{{foo|}}} |{{{bar|}}} }}
Whitespace is stripped.
example
- {{firstdata||two|three}} → two
- {{firstdata|one||three}} → one
- {{firstdata|||}} →