Difference between revisions of "Template:Firstdata/doc"
Jump to navigation
Jump to search
imported>DePiep |
imported>DePiep |
||
| Line 2: | Line 2: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
== Usage == | == Usage == | ||
| − | Can have up to | + | Can have up to five parameters input. Will return the first parameter that is not blank. |
<pre> | <pre> | ||
| Line 9: | Line 9: | ||
|2= | |2= | ||
|3= | |3= | ||
| + | |4= | ||
| + | |5= | ||
}} | }} | ||
</pre> | </pre> | ||
Revision as of 17:11, 25 September 2019
| 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 five parameters input. Will return the first parameter that is not blank.
{{firstdata
|1=
|2=
|3=
|4=
|5=
}}
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|||}} →