Difference between revisions of "Template:Disasters in India/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Paine Ellsworth
(test)
imported>Frietjes
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Navbox with columns
+
{{Navbox
 
|name = Disasters in India {{{years|in {{{year}}}}}}
 
|name = Disasters in India {{{years|in {{{year}}}}}}
|state = {{{state|<includeonly>{{{1|expanded}}}</includeonly>}}}
+
|state = {{{state|<includeonly>{{{1|autocollapse}}}</includeonly>}}}
 
|bodyclass = {{{bodyclass|}}}
 
|bodyclass = {{{bodyclass|}}}
 
|titleclass = hlist vevent
 
|titleclass = hlist vevent
 
|title =  
 
|title =  
 +
<noinclude>
 
* {{#ifexist: Template:Disasters in India in {{#expr:{{{year}}}-1}}
 
* {{#ifexist: Template:Disasters in India in {{#expr:{{{year}}}-1}}
   | [[Template:Disasters in India in {{#expr:{{{year}}}-1}}|<span style="font-size:110%;font-weight:normal;">←</span> {{#expr:{{{year}}}-1}}]]
+
   | [[Template:Disasters in India in {{#expr:{{{year}}}-1}}|<span style="font-weight:normal;">←</span> {{#expr:{{{year}}}-1}}]]
 
   }}
 
   }}
 +
</noinclude>
 
* <span class="summary">Disasters in India {{{years|in {{Start date|{{{year}}}}} }}}</span>
 
* <span class="summary">Disasters in India {{{years|in {{Start date|{{{year}}}}} }}}</span>
 +
<noinclude>
 
* {{#ifexist: Template:Disasters in India in {{#expr:{{{year}}}+1}}
 
* {{#ifexist: Template:Disasters in India in {{#expr:{{{year}}}+1}}
   | [[Template:Disasters in India in {{#expr:{{{year}}}+1}}|{{#expr:{{{year}}}+1}} <span style="font-size:110%;font-weight:normal;">→</span>]]
+
   | [[Template:Disasters in India in {{#expr:{{{year}}}+1}}|{{#expr:{{{year}}}+1}} <span style="font-weight:normal;">→</span>]]
 
   }}
 
   }}
 +
</noinclude>
 
|titlestyle = white-space:nowrap;
 
|titlestyle = white-space:nowrap;
 
|navbar = <noinclude>plain</noinclude>
 
|navbar = <noinclude>plain</noinclude>
 
|listclass = plainlist  
 
|listclass = plainlist  
 +
|liststyle = white-space:nowrap; text-align:left; padding-left:1em;
  
|colstyle = white-space:nowrap; padding-left:1em;
+
|list1 = {{colbegin|colwidth={{{colwidth|22em}}}}}
|col1width = {{{col1width|{{#expr:100/(1+{{#if:{{{col2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{col3<includeonly>|</includeonly>}}}|1|0}}) round 1}}%}}}
+
{{{list<includeonly>|{{{col1|}}}
|col2width = {{{col2width|{{#expr:100/(1+{{#if:{{{col2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{col3<includeonly>|</includeonly>}}}|1|0}}) round 1}}%}}}
+
{{{col2|}}}
|col3width = {{{col2width|{{#expr:100/(1+{{#if:{{{col2<includeonly>|</includeonly>}}}|1|0}}+{{#if:{{{col3<includeonly>|</includeonly>}}}|1|0}}) round 1}}%}}}
+
{{{col3|}}}</includeonly>}}}
 
+
{{colend}}
|col1 = {{{col1<noinclude>|''col1''</noinclude>}}}
 
|col2 = {{{col2|<noinclude>''(col2)''</noinclude>}}}
 
|col3 = {{{col3|<noinclude>''(col3)''</noinclude>}}}
 
 
 
 
|belowclass = hlist
 
|belowclass = hlist
 
|below =  
 
|below =  

Latest revision as of 17:49, 5 February 2018

50px Template documentation[view] [edit] [history] [purge]

Usage

This is a meta-template used in other templates, for example,

{{Disasters in India in 2026}} yields:

Template:Disasters in India in 2026

also,

{{Disasters in India in 2017}} yields:

and,

{{Disasters in India in 2011}} yields: