Difference between revisions of "Template:Firstdata/doc"
Jump to navigation
Jump to search
imported>DePiep (←Created page with '{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> ==...') |
imported>DePiep |
||
| Line 25: | Line 25: | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
| − | + | [[category:if templates]] | |
}}</includeonly> | }}</includeonly> | ||
Revision as of 10:13, 13 December 2016
| 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|}}} }}
example
- {{firstdata||two|three}} → two
- {{firstdata|one||three}} → one
- {{firstdata|||}} →