Difference between revisions of "Template:Demo-inline"

From blackwiki
Jump to navigation Jump to search
test>Swpb
test>Swpb
Line 3: Line 3:
 
|<!--color bar-->{{#ifexpr: (({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2006) mod (2*{{{year-interval}}}) |<div style="display: inline-block; position: absolute;
 
|<!--color bar-->{{#ifexpr: (({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2006) mod (2*{{{year-interval}}}) |<div style="display: inline-block; position: absolute;
 
left:  {{#expr: 100*({{datefmt|1/1/{{#expr: ({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2006}}}}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date}}}}}-{{datefmt|1/1/2006}}) }}%;
 
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}}})+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}}})+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%;
 
bottom: 0%;
 
height: 100%; background-color: #EEEEEE;"></div>|}}
 
height: 100%; background-color: #EEEEEE;"></div>|}}

Revision as of 19:41, 11 January 2017

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