Template:Demo-inline: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Swpb
No edit summary
meta>Swpb
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{{#ifexpr: {{datefmt|1/1/{{#expr: ({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2006}}}} < {{datefmt|{{{end-date}}}}}
{{#ifexpr: {{datefmt|1/1/{{#expr: ({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2006}}}} < {{datefmt|{{{end-date}}}}}
|<!--color bar-->{{#ifexpr: (({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2006) mod (2*{{{year-interval}}}) |<div style="display: inline-block; position: absolute;
|<!--color bars-->{{for loop||User:Swpb/sandbox5|pc1n=end-date|pc1v={{{end-date}}}|pc2n=year-interval|pc2v={{{year-interval}}}|pc3n=interval-start|pc3v={{{1}}}|1|2|3|4|5|6|7|8|9|10}}
left:  {{#expr: 100*({{datefmt|1/1/{{#expr: ({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2006}}}}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date}}}}}-{{datefmt|1/1/2006}}) }}%;
|}}
right: {{max|0|{{#expr: 100-(100*({{datefmt|1/1/{{#expr:({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2007}} }}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date}}}}}-{{datefmt|1/1/2006}})) }} }}%;
bottom: 0%;
height: 100%; background-color: #EEEEEE;"></div>
 
<div style="display: inline-block; position: absolute;
left:  {{#expr: 100*({{datefmt|1/1/{{#expr: ({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2008}}}}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date}}}}}-{{datefmt|1/1/2006}}) }}%;
right: {{max|0|{{#expr: 100-(100*({{datefmt|1/1/{{#expr:({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2009}} }}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date}}}}}-{{datefmt|1/1/2006}})) }} }}%;
bottom: 0%;
height: 100%; background-color: #EEEEEE;"></div>|}}


<!--outer marker and label--><div style="display: inline-block; position: absolute; text-align:center;
<!--outer marker and label--><div style="display: inline-block; position: absolute; text-align:center;

Revision as of 20:08, 11 January 2017

Template:Subtemplate Draws outside marker and label, and interior gray bar, for the given year