Difference between revisions of "Template:Demo-inline"

From blackwiki
Jump to navigation Jump to search
test>Swpb
test>Swpb
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}})) }} }}%;
Line 8: Line 7:
 
height: 100%; background-color: #EEEEEE;"></div>|}}-->
 
height: 100%; background-color: #EEEEEE;"></div>|}}-->
  
<!--outer marker and label--><div style="display: inline-block; position: absolute; text-align:center;
+
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}})) }} }}%;
 +
 
 +
<!--outer marker and label--><!--<div style="display: inline-block; position: absolute; text-align:center;
 
bottom: -10px;
 
bottom: -10px;
 
height: 10px;
 
height: 10px;
 
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}})) }} }}%;
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>
+
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>

Revision as of 18:43, 11 January 2017

{{#ifexpr: Expression error: Unexpected < operator. < Expression error: Unrecognized punctuation character "{". |

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