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

From blackwiki
Jump to navigation Jump to search
(Suggest this format more elegant. Will add a couple of explanatory notes later.)
imported>DH85868993
(Add custom_prev_year and custom_next_year to parameters list)
 
(63 intermediate revisions by 36 users not shown)
Line 1: Line 1:
{{Navbox with columns
+
{{Navbox
|name = Aviation accidents and incidents in {{{year}}}
+
| name       = Aviation accidents and incidents <includeonly>{{{years|in {{{year}}}}}}</includeonly>
|state = {{{state|autocollapse}}}
+
| state      = {{{state<includeonly>|autocollapsed</includeonly>}}}
|titlestyle = white-space:nowrap;
 
|title = {{#ifexist: Template:Aviation accidents and incidents in {{#expr:{{{year}}}-1}}
 
          | [[Template:Aviation accidents and incidents in {{#expr:{{{year}}}-1}}|<span style="font-size:110%;font-weight:normal;">←</span> {{#expr:{{{year}}}-1}}]]{{·}}
 
        }}<!--
 
      -->Aviation accidents and incidents in {{{year}}}<!--
 
      -->{{#ifexist: Template:Aviation accidents and incidents in {{#expr:{{{year}}}+1}}
 
          | {{·}}[[Template:Aviation accidents and incidents in {{#expr:{{{year}}}+1}}|{{#expr:{{{year}}}+1}} <span style="font-size:110%;font-weight:normal;">→</span>]]
 
        }}
 
  
|colstyle = white-space:nowrap;
+
| bodyclass  = plainlist {{{bodyclass|}}}
|col1width = {{{col1width|25.0em}}}
+
| bodystyle  = white-space:nowrap;
|col2width = {{{col2width|25.0em}}}
 
|col3width = {{{col2width|25.0em}}}
 
  
|col1 = {{{col1<noinclude>|''col1''</noinclude>}}}
+
| title      =  
|col2 = {{{col2|<noinclude>''(col2)''</noinclude>}}}
+
* {{#if: {{{custom_prev_year|}}}
|col3 = {{{col3|<noinclude>''(col3)''</noinclude>}}}
+
| [[Template:Aviation accidents and incidents in {{{custom_prev_year|}}}|<span style="font-weight:normal;">←</span> {{{custom_prev_year|}}}]]
 +
| {{#ifexist:Template:Aviation accidents and incidents in {{#expr:{{{year}}}-1}}
 +
| [[Template:Aviation accidents and incidents in {{#expr:{{{year}}}-1}}|<span style="font-weight:normal;">←</span> {{#expr:{{{year}}}-1}}]]}}
 +
}}
 +
* <span class="summary">[[Aviation accidents and incidents]] {{{years|in {{Start date|{{{year}}}}} }}}</span>
 +
* {{#if: {{{custom_next_year|}}}
 +
| [[Template:Aviation accidents and incidents in {{{custom_next_year|}}}|{{{custom_next_year|}}} <span style="font-weight:normal;"></span>]]
 +
| {{#ifexist:Template:Aviation accidents and incidents in {{#expr:{{{year}}}+1}}
 +
| [[Template:Aviation accidents and incidents in {{#expr:{{{year}}}+1}}|{{#expr:{{{year}}}+1}} <span style="font-weight:normal;"></span>]]}}
 +
}}
 +
| titleclass = hlist vevent
  
|below = {{nowrap|&nbsp;&nbsp;Incidents resulting in at least 50 deaths shown in ''italics''.&nbsp;}} {{nowrap|&nbsp;&nbsp;Deadliest incident shown in '''{{resize|125%|{{smallcaps|bold smallcaps}}}}'''.&nbsp;}}
+
| list1      = {{#if:{{{list<includeonly>|</includeonly>}}}{{{col1|}}}{{{col2|}}}{{{col3|}}}|{{div col|colwidth={{{listwidth|25em}}}}}
 +
{{{list<includeonly>|</includeonly>}}}
 +
{{#if:1|
 +
{{{col1|}}}
 +
{{{col2|}}}
 +
{{{col3|}}}
 +
}}
 +
{{div col end}} }}
 +
| liststyle  = text-align:left;
 +
}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using aviation accidents and incidents with unknown parameters|_VALUE_{{PAGENAME}}]]|checkpositional=y
 +
|years|year|state|list|listwidth|custom_prev_year|custom_next_year
 
}}<noinclude>
 
}}<noinclude>
 
+
{{Documentation}}</noinclude>
[[Category:Aviation accidents and incidents templates| ]]
 
[[pt:Predefinição:Acidentes e incidentes aéreos]]
 
</noinclude>
 

Latest revision as of 01:01, 21 July 2020