Template:FloruitTimeLine: Difference between revisions

From London Book Trades
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly><div class="floruit-tl">
<div class="floruit-tl">
   <div class="floruit-tl__labels" style="display:flex;justify-content:space-between;gap:.75em;font-size:.9em;opacity:.85;margin:0 0 .25em 0;">
   <div class="floruit-tl__labels">
     <span>1463</span><span>1939</span>
     <span>1463</span>
    <span>1939</span>
   </div>
   </div>


   <div class="floruit-tl__track">
   <div class="floruit-tl__track">
     {{#if:{{{start|}}}|
     {{#if:{{{start|}}}|
       <div class="floruit-tl__band"
       <div class="floruit-tl__band" style="left:{{#expr:100*((( {{#ifexpr: {{{start}}} < 1463 | 1463 | {{#ifexpr: {{{start}}} > 1939 | 1939 | {{{start}}} }} }})-1463))/476}}%;width:{{#if:{{{end|}}}|{{#expr:100*((( {{#ifexpr: {{{end}}} < 1463 | 1463 | {{#ifexpr: {{{end}}} > 1939 | 1939 | {{{end}}} }} }})-( {{#ifexpr: {{{start}}} < 1463 | 1463 | {{#ifexpr: {{{start}}} > 1939 | 1939 | {{{start}}} }} })))/476}}|0.8}}%;"></div>
        style="
          left: {{#expr:
            100 * (
              ({{#ifexpr: {{{start}}} < 1463 | 1463 | {{#ifexpr: {{{start}}} > 1939 | 1939 | {{{start}}} }} }}) - 1463
            ) / 476
          }}%;
          width: {{#if:{{{end|}}}|
            {{#expr:
              100 * (
                ({{#ifexpr: {{{end}}} < 1463 | 1463 | {{#ifexpr: {{{end}}} > 1939 | 1939 | {{{end}}} }} }}) -
                ({{#ifexpr: {{{start}}} < 1463 | 1463 | {{#ifexpr: {{{start}}} > 1939 | 1939 | {{{start}}} }} }})
              ) / 476
            }}
          | 0.8 }}%;
        ">
      </div>
     }}
     }}
   </div>
   </div>


   <div class="floruit-tl__ticklabels">
   <div class="floruit-tl__ticklabels" style="display:flex;justify-content:space-between;gap:.75em;margin-top:.35em;font-size:.8em;opacity:.75;">
     <span>1500</span>
     <span>1500</span><span>1600</span><span>1700</span><span>1800</span><span>1900</span>
    <span>1600</span>
    <span>1700</span>
    <span>1800</span>
    <span>1900</span>
   </div>
   </div>


   <div class="floruit-tl__caption">
   <div class="floruit-tl__caption" style="margin-top:.25em;font-size:.9em;opacity:.85;">
     {{#if:{{{label|}}}|{{{label}}}|Floruit}}: {{{start|?}}}{{#if:{{{end|}}}|–{{{end}}}|}}
     {{#if:{{{label|}}}|{{{label}}}|Floruit}}: {{{start|?}}}{{#if:{{{end|}}}|–{{{end}}}|}}
   </div>
   </div>
</div>
</div></includeonly>
</includeonly>
<noinclude>
<noinclude>
Usage:
Usage:

Revision as of 18:02, 2 March 2026


Usage:

{{FloruitTimeline|start=1808|end=1839}}