Jump to content

Topic on Project:Support desk

Hiding parameters when they are empty

2
2001:1C04:3B16:5400:79BB:BEC6:AC51:4E3D (talkcontribs)

I got a infobox looking like this

{|type="hide-lonely-labels"; style="float: right; padding: 5px; background: #eaecf0; border: 3px solid #000000; width: 25%; margin-left: 3px" ! colspan="2"; style="text-align: center;" | <span style="font-size: larger;">{{{name|}}}</span> |- | colspan="2"; style="text-align: center;" | [[File:{{{image|}}}|250px]] |- |- style="vertical-align:top;" ! style="text-align: left;"|'''Created by''' | {{{created_by|}}} |- |- style="vertical-align:top;" ! style="text-align: left;"| '''Release date''' | {{{release_date|}}} |- |- style="vertical-align:top;" ! style="text-align: left;"| '''Candidates''' | {{{candidates|}}} |- |- style="vertical-align:top;" ! style="text-align: left;"| '''Parties''' | {{{parties|}}} |- |- style="vertical-align:top;" ! style="text-align: left;"| '''Historical result''' | {{{historical_result|}}} |- |- style="vertical-align:top;" ! style="text-align: left;"| '''Canon result''' | {{{canon_result|}}} |}

How do I hide release date, candidate, parties, historical result, and canon result if they are empty?

Bawolff (talkcontribs)
Reply to "Hiding parameters when they are empty"