Difference between revisions of "Template:Aviation accidents and incidents"

From blackwiki
Jump to navigation Jump to search
imported>Izkala
(Add semantic list alternative)
imported>Frietjes
Line 1: Line 1:
{{Navbox {{#if:{{{col1<includeonly>|</includeonly>}}}{{{col2|}}}{{{col3|}}}|with columns}}
+
{{Navbox
| name      = Aviation accidents and incidents {{{years|in {{{year}}}}}}
+
| name      = Aviation accidents and incidents <includeonly>{{{years|in {{{year}}}}}}</includeonly>
| state      = {{{state|<includeonly>{{{1|autocollapse}}}</includeonly>}}}
+
| state      = {{{state<includeonly>|autocollapse</includeonly>}}}
| navbar    = <noinclude>plain</noinclude>
 
  
| bodyclass  = {{{bodyclass|}}}
+
| bodyclass  = plainlist {{{bodyclass|}}}
 +
| bodystyle  = white-space: nowrap;
  
 
| title      =  
 
| title      =  
Line 15: Line 15:
 
  }}
 
  }}
 
| titleclass = hlist vevent
 
| titleclass = hlist vevent
| titlestyle = white-space: nowrap;
 
  
| col1      = {{{col1|<noinclude>''(col1)''</noinclude>}}}
+
| list1      = {{#if:{{{list<includeonly>|</includeonly>}}}{{{col1|}}}{{{col2|}}}{{{col3|}}}|{{div col begin|colwidth={{{listwidth|25em}}}}}
| col2      = {{{col2|<noinclude>''(col2)''</noinclude>}}}
+
{{{list<includeonly>|</includeonly>}}}
| col3      = {{{col3|<noinclude>''(col3)''</noinclude>}}}
+
{{#if:1|
| colstyle  = white-space: nowrap; padding-left: 1em;
+
{{{col1|}}}
| col1width  = {{{col1width|{{#expr:100/(1+{{#if:{{{col2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{col3<includeonly>|</includeonly>}}}|1|0}}) round 1}}%}}}
+
{{{col2|}}}
| col2width  = {{{col2width|{{#expr:100/(1+{{#if:{{{col2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{col3<includeonly>|</includeonly>}}}|1|0}}) round 1}}%}}}
+
{{{col3|}}}
| col3width  = {{{col2width|{{#expr:100/(1+{{#if:{{{col2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{col3<includeonly>|</includeonly>}}}|1|0}}) round 1}}%}}}
+
}}
 
+
{{div col end}} }}
| list1      = {{#if:{{{list|}}}|{{Div col begin|colwidth={{{listwidth|20em}}}}}
+
| liststyle  = text-align: left;
{{{list}}}
+
}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using aviation accidents and incidents with unknown parameters|_VALUE_{{PAGENAME}}]]|checkpositional=y
{{Div col end}}
+
|years|year|list
}}
 
| listclass  = plainlist
 
| liststyle  = text-align: left; white-space: nowrap;
 
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Revision as of 16:46, 2 October 2015