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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>DH85868993
(Add custom_prev_year and custom_next_year to parameters list)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
 
| name      = Aviation accidents and incidents <includeonly>{{{years|in {{{year}}}}}}</includeonly>
 
| name      = Aviation accidents and incidents <includeonly>{{{years|in {{{year}}}}}}</includeonly>
| state      = {{{state<includeonly>|autocollapse</includeonly>}}}
+
| state      = {{{state<includeonly>|autocollapsed</includeonly>}}}
  
 
| bodyclass  = plainlist {{{bodyclass|}}}
 
| bodyclass  = plainlist {{{bodyclass|}}}
| bodystyle  = white-space: nowrap;
+
| bodystyle  = white-space:nowrap;
  
 
| title      =  
 
| title      =  
* {{#ifexist: Template:Aviation accidents and incidents in {{#expr:{{{year}}}-1}}
+
* {{#if: {{{custom_prev_year|}}}
  | {{Small|[[Template:Aviation accidents and incidents in {{#expr:{{{year}}}-1}}|<span style="font-weight: normal;">←</span> {{#expr:{{{year}}}-1}}]]}}
+
| [[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>
 
* <span class="summary">[[Aviation accidents and incidents]] {{{years|in {{Start date|{{{year}}}}} }}}</span>
* {{#ifexist: Template:Aviation accidents and incidents in {{#expr:{{{year}}}+1}}
+
* {{#if: {{{custom_next_year|}}}
  | {{Small|[[Template:Aviation accidents and incidents in {{#expr:{{{year}}}+1}}|{{#expr:{{{year}}}+1}} <span style="font-weight: normal;">→</span>]]}}
+
| [[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
 
| titleclass = hlist vevent
  
| list1      = {{#if:{{{list<includeonly>|</includeonly>}}}{{{col1|}}}{{{col2|}}}{{{col3|}}}|{{div col begin|colwidth={{{listwidth|25em}}}}}
+
| list1      = {{#if:{{{list<includeonly>|</includeonly>}}}{{{col1|}}}{{{col2|}}}{{{col3|}}}|{{div col|colwidth={{{listwidth|25em}}}}}
 
{{{list<includeonly>|</includeonly>}}}
 
{{{list<includeonly>|</includeonly>}}}
 
{{#if:1|
 
{{#if:1|
Line 24: Line 28:
 
}}
 
}}
 
{{div col end}} }}
 
{{div col end}} }}
| liststyle  = text-align: left;
+
| 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
 
}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using aviation accidents and incidents with unknown parameters|_VALUE_{{PAGENAME}}]]|checkpositional=y
|years|year|list|listwidth
+
|years|year|state|list|listwidth|custom_prev_year|custom_next_year
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}</noinclude>
 
{{Documentation}}</noinclude>

Latest revision as of 01:01, 21 July 2020