Template:Firstdata/doc

From blackwiki
< Template:Firstdata
Revision as of 10:12, 13 December 2016 by 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) --> ==...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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|||}} →