Template:AllusionsCharts: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude><div class="no-img">This template renders the charts on the section and century landing pages in the Allusions section of IRHB. It takes | <noinclude><div class="no-img">This template renders the charts on the section and century landing pages in the Allusions section of IRHB. It takes three optional parameters.<br/><br/> | ||
* '''Type''' – value can be 'Records', defaults to 'Allusions' | * '''Type''' – value can be 'Records', defaults to 'Allusions' | ||
* '''Category''' – category to base charts on, defaulting to 'Allusions'<!-- in Allusions section, 'Records' in Historiography section-->.</div></noinclude><includeonly>__NOTOC__{{#vardefine:type|{{#ifeq:{{{Type|}}}||Records|Allusions}}}}{{#vardefine:section|{{#ifeq:{{#pos:{{PAGENAME}}|Allusions}}||Records|Allusions}}}}{{#vardefine:content|{{#ifeq:{{#pos:{{PAGENAME}}|links}}||texts|links}}}}{{#vardefine:period|{{#sub:{{#replace:{{PAGENAME}}|{{#var:section}}|}}|0|9}}}}{{#vardefine:category|{{{Category|{{#var:section}}}}}}}{{#vardefine:Century|{{#ifeq:{{PAGENAME}}|Allusions|all|{{#ifeq:{{PAGENAME}}|Historiography|all|{{#ifeq:{{{category|}}}||{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|-}}+1}}|2}}|all}}}}}}}} | * '''Category''' – category to base charts on, defaulting to 'Allusions'<!-- in Allusions section, 'Records' in Historiography section-->. | ||
* '''HideXaxis''' – if set to value otehr than 'false', ticks on x-axis of timeline are hidden, default to 'false'.</div></noinclude><includeonly>__NOTOC__{{#vardefine:type|{{#ifeq:{{{Type|}}}||Records|Allusions}}}}{{#vardefine:section|{{#ifeq:{{#pos:{{PAGENAME}}|Allusions}}||Records|Allusions}}}}{{#vardefine:content|{{#ifeq:{{#pos:{{PAGENAME}}|links}}||texts|links}}}}{{#vardefine:period|{{#sub:{{#replace:{{PAGENAME}}|{{#var:section}}|}}|0|9}}}}{{#vardefine:category|{{{Category|{{#var:section}}}}}}}{{#vardefine:Century|{{#ifeq:{{PAGENAME}}|Allusions|all|{{#ifeq:{{PAGENAME}}|Historiography|all|{{#ifeq:{{{category|}}}||{{#sub:{{PAGENAME}}|{{#expr:{{#rpos:{{PAGENAME}}|-}}+1}}|2}}|all}}}}}}}} | |||
<div class="irhbCharts" id="centuryChart"> | <div class="irhbCharts" id="centuryChart"> | ||
</div> | </div> |
Revision as of 06:00, 31 October 2018
This template renders the charts on the section and century landing pages in the Allusions section of IRHB. It takes three optional parameters.
- Type – value can be 'Records', defaults to 'Allusions'
- Category – category to base charts on, defaulting to 'Allusions'.
- HideXaxis – if set to value otehr than 'false', ticks on x-axis of timeline are hidden, default to 'false'.