Template:Demo-inline: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Swpb
No edit summary
Ookami (talk | contribs)
m 108 revisions imported
 
(60 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#invoke:Demo|inline}}</includeonly><noinclude>{{documentation}}</noinclude>
{{#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 |<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}}) }}%;
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>|}}
 
<!--outer marker and label--><div style="display: inline-block; position: absolute; text-align:center;
bottom: -10px;
height: 10px;
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}})) }} }}%;
border-left: 1px solid; font-size: {{#expr: 90*{{{size|500}}}/500 }}%;">{{#ifexpr: ({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2006 < {{str rightc|{{{end-date}}}|4}} |''''{{str rightc|{{#expr: ({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2006}} |2}}'''|}}</div>
 
|}}</includeonly><noinclude>
{{subtemplate}}
Draws outside marker and label, and interior gray bar, for the given year
</noinclude>

Latest revision as of 22:44, 3 September 2020