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: | ||
{{#ifexpr: {{datefmt|1/1/{{#expr: {{{1}}}+2005}}}} < {{datefmt|{{{end-date}}}}} | {{#ifexpr: {{datefmt|1/1/{{#expr: {{{1}}}+2005}}}} < {{datefmt|{{{end-date}}}}} | ||
| | | | ||
<includeonly><!--color bar-->{{#ifexpr: {{{1}}}+2005 mod 2 |<--<div style="display: inline-block; position: absolute; | <includeonly><!--color bar-->{{#ifexpr: {{{1}}}+2005 mod 2 |<!--<div style="display: inline-block; position: absolute; | ||
left: {{#expr: 100*({{datefmt|1/1/{{#expr: {{{1}}}+2005}}}}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date}}}}}-{{datefmt|1/1/2006}}) }}%; | left: {{#expr: 100*({{datefmt|1/1/{{#expr: {{{1}}}+2005}}}}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date}}}}}-{{datefmt|1/1/2006}}) }}%; | ||
right: {{max|0|{{#expr: 100-(100*({{datefmt|1/1/{{#expr:{{{1}}}+2006}} }}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date}}}}}-{{datefmt|1/1/2006}})) }} }}%; | right: {{max|0|{{#expr: 100-(100*({{datefmt|1/1/{{#expr:{{{1}}}+2006}} }}-{{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 18:44, 11 January 2017
{{#ifexpr: Template:Datefmt < Template:Datefmt |
Template:Subtemplate Draws outside marker and label, and interior gray bar, for the given year