Knowledge Base Wiki

Search for LIMS content across all our Wiki Knowledge Bases.

Type a search term to find related articles by LIMS subject matter experts gathered from the most trusted and dynamic collaboration tools in the laboratory informatics industry.

Editar as ligazóns
Indicacións de uso do modelo

Obxectivo

Recolle unha serie de parámetros e devolve o primeiro que estea definido e non sexa baleiro. Se non atopa ningún non devolve ningún valor. Admite calquera número de parámetros.

Uso

{{If empty |{{{parámetro1|}}} |{{{parámetro2|}}} |{{{parámetro3|}}} |default.svg}}

Exemplos

Código Resultado
{{if empty}}
{{if empty|one}} one
{{if empty|one|two}} one
{{if empty|one|two|three|four}} one
{{if empty||two}} two
{{if empty||two|three|four}} two
{{if empty||two||four}} two
{{if empty||||||||||ten}} ten
{{if empty|}}
{{if empty||||}}
{{if empty|{{{1|}}}|{{{2|}}}|three}} three
{{if empty|{{{1}}}|{{{2}}}|three}} {{{1}}}
{{if empty|{{{logo|}}}|two}} two
{{if empty|{{{logo}}}|two}} {{{logo}}}
{{if empty|p=q}}
Este recadro non aparecerá no artigo.
Esta documentación está transcluída desde Modelo:If empty/uso. Os editores poden probar cambios no mesmo en Modelo:If empty/probas.
Por favor, engade as categorías na subpáxina de documentación e os interwikis no Wikidata. Ver as subpáxinas deste modelo.