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>{{#ifexpr: ({{{1}}}+2005) <= {{str rightc|{{{end-date}}}|4}} |
<includeonly>
{{#ifexpr: ({{{1}}}+2005) mod 2 |
{{#ifexpr: {{datefmt|1/1/{{#expr: ({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2006}}}} < {{datefmt|{{{end-date}}}}} |
<div style="display: inline-block; position: absolute;
 
left: {{NPVIC chart/percent| date=1/1/{{#expr: {{{1}}}+2005}} | end-date={{{end-date}}} }}%;
<!--outer marker and label--><div style="display: inline-block; position: absolute; text-align:center;
right: {{max|0|{{#expr: 100-{{NPVIC chart/percent| date=12/31/{{#expr: {{{1}}}+2005}} | end-date={{{end-date}}} }} }} }}%;
bottom: -10px;
bottom: 0%;
height: 10px;
top: 0%;
left: {{#expr: 100*({{datefmt|1/1/{{#expr: ({{{year-interval}}}*{{{1}}}-{{{year-interval}}})+2006}}}}-{{datefmt|1/1/2006}})/({{datefmt|{{{end-date}}}}}-{{datefmt|1/1/2006}}) }}%;
background-color: #EEEEEE;"></div>
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>
|}}</includeonly><noinclude>
{{subtemplate}}
{{subtemplate}}
Draws interior gray bars on odd years
Draws horizontal markers and labels at the specified interval
</noinclude>
</noinclude>

Revision as of 14:01, 23 January 2017

Template:Subtemplate Draws horizontal markers and labels at the specified interval