Jump to content

Template:Infobox conditionals: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
rvt - one-man crusade
m Reverted edits by Netoholic (talk) to last version by Locke Cole
Line 12: Line 12:
! Data 3 (data hidden if data3 empty or not defined):
! Data 3 (data hidden if data3 empty or not defined):
| {{{data3|}}}
| {{{data3|}}}
|- class{{{data4|}}}="hiddenStructure"
! Data 4 (row hidden by CSS for ''some'' users if data4 empty):
| {{{data4}}}
|- {{qif|test={{{data4|}}}|then=
|- {{qif|test={{{data4|}}}|then=
! Data 4 (row hidden by Qif if data4 empty):
! Data 4 (row hidden by Qif if data4 empty):
<td>{{{data4}}} }}
<td>{{{data4}}} }}
|- class{{{na{{{data5|}}}me|}}}="hiddenStructure"
! Data 5 (row hidden by CSS for ''some'' users if name exists and data5 not empty. Strongly recommended that this method ''not'' be used, as it breaks accessibility for some screen readers):
| {{{data5}}}
|- {{qif|test={{{na{{{data5|}}}me|}}}|then=
|- {{qif|test={{{na{{{data5|}}}me|}}}|then=
! Data 5 (row hidden by Qif if name exists and data5 not empty):
! Data 5 (row hidden by Qif if name exists and data5 not empty):
Line 46: Line 40:
! Data 3 (data hidden if data3 empty or not defined):
! Data 3 (data hidden if data3 empty or not defined):
| {{{data3|}}}
| {{{data3|}}}
|- class{{{data4|}}}="hiddenStructure"
! Data 4 (row hidden by CSS for ''some'' users if data4 empty):
| {{{data4}}}
|- {{qif|test={{{data4|}}}|then=
|- {{qif|test={{{data4|}}}|then=
! Data 4 (row hidden by Qif if data4 empty):
! Data 4 (row hidden by Qif if data4 empty):
<td>{{{data4}}} }}
<td>{{{data4}}} }}
|- class{{{na{{{data5|}}}me|}}}="hiddenStructure"
! Data 5 (row hidden by CSS for ''some'' users if name exists and data5 not empty):
| {{{data5}}}
|- {{qif|test={{{na{{{data5|}}}me|}}}|then=
|- {{qif|test={{{na{{{data5|}}}me|}}}|then=
! Data 5 (row hidden by Qif if name exists and data5 not empty):
! Data 5 (row hidden by Qif if name exists and data5 not empty):

Revision as of 17:27, 16 March 2006

{{{name}}}
[[Image:{{{image}}}|300px| ]]
{{{caption}}}
Data 1: {{{data1}}}
Data 2: this text displayed if data2 not defined
Data 3 (data hidden if data3 empty or not defined):


Usage

Copy this code

{| class="infobox bordered" style="width: 25em; text-align: left; font-size: 95%;"
|+ style="font-size: larger;" | '''{{{name}}}'''
|-
| colspan="2" style="text-align:center;" | [[Image:{{{image}}}|300px| ]]<br>{{{caption}}}
|- 
! Data 1:
| {{{data1}}}
|- 
! Data 2:
| {{{data2|''this text displayed if data2 not defined''}}}
|- 
! Data 3 (data hidden if data3 empty or not defined):
| {{{data3|}}}
|- {{qif|test={{{data4|}}}|then=
! Data 4 (row hidden by Qif if data4 empty):
<td>{{{data4}}} }}
|- {{qif|test={{{na{{{data5|}}}me|}}}|then=
! Data 5 (row hidden by Qif if name exists and data5 not empty):
<td>{{{data5}}} }}
|- 
| colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
|}

See also