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: {{{1}}}*{{{vert-interval}}} < {{{max-tot}}}
{{#ifexpr: {{datefmt|1/1/{{#expr: {{{1}}}+2005}}}} < {{datefmt|{{{end-date}}}}}
|
|<!--color bar-->{{#ifexpr: ({{{1}}}+2005) mod 2 |<div style="display: inline-block; position: absolute;
<!--ticks--><div style="display: inline-block; position: absolute; box-sizing: border-box;
left: {{#expr: 100*({{datefmt|1/1/{{#expr: {{{1}}}+2005}}}}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date}}}}}-{{datefmt|1/1/2006}}) }}%;
bottom: {{#expr: 100*{{{1}}}*{{{vert-interval}}}/(1.1*{{{max-tot}}}) }}%;
right: {{max|0|{{#expr: 100-(100*({{datefmt|1/1/{{#expr:{{{1}}}+2006}} }}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date}}}}}-{{datefmt|1/1/2006}})) }} }}%;
height: 0px;
bottom: 0%;
left: 100%;
height: 100%; background-color: #EEEEEE;"></div>|}}
right: -2%;
border-top: 1px solid;
border-left: 1px solid;"></div>


<!--outer marker and label--><div style="display: inline-block; position: absolute; text-align:center;
<!--tick labels--><div style="display: table; position: absolute; left: 103%; bottom: {{#expr: 100*{{{1}}}*{{{vert-interval}}}/(1.1*{{{max-tot}}})-5 }}%; height: 10%; line-height: 10%;">
bottom: -10px;
<div style="display: table-cell; vertical-align: middle; font-size: {{#expr: 90*{{{size|500}}}/500 }}%;">'''{{#expr: {{{1}}}*{{{vert-interval}}} }}'''</div>
height: 10px;
</div>
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}})) }} }}%;
border-left: 1px solid; font-size: {{#expr: 90*{{{size|500}}}/500 }}%;">{{#ifexpr: {{{1}}}+2005 < {{str rightc|{{{end-date}}}|4}} |''''{{str rightc|{{#expr: {{{1}}}+2005}}|2}}'''|}}</div>


|}}</includeonly><noinclude>
|}}</includeonly><noinclude>
{{subtemplate}}
{{subtemplate}}
Draws outside marker and label, and interior gray bar, for the given year
Draws vertical markers and labels
</noinclude>
</noinclude>

Revision as of 19:04, 11 January 2017

Template:Subtemplate Draws vertical markers and labels