Template:AllusionsCharts: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 10: Line 10:
* '''Type''' – value can be 'Records', defaults to 'Allusions'
* '''Type''' – value can be 'Records', defaults to 'Allusions'
* '''Category''' &ndash; category to base charts on, defaulting to 'Allusions'<!-- in Allusions section, 'Records' in Historiography section-->.
* '''Category''' &ndash; category to base charts on, defaulting to 'Allusions'<!-- in Allusions section, 'Records' in Historiography section-->.
* '''HideXaxis''' &ndash; if set to value other than 'false', index on x-axis of timeline is hidden, defaults to 'false'.</div></noinclude><includeonly>__NOTOC__{{#vardefine:type|{{#ifeq:{{{Type|}}}||Allusions|{{{Type}}}}}}}{{#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}}}}}}}}{{#vardefine:from|{{#ifeq:{{#var:section}}|Allusions|14|13}}}}{{#vardefine:to|{{#ifeq:{{#var:section}}|Allusions|21|20}}}}
* '''HideXaxis''' &ndash; if set to value other than 'false', index on x-axis of timeline is hidden, defaults to 'false'.</div></noinclude>includeonly>__NOTOC__{{#vardefine:type|{{#ifeq:{{{Type|}}}||Allusions|{{{Type}}}}}}}{{#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}}}}}}}}{{#vardefine:from|{{#ifeq:{{#var:section}}|Allusions|14|13}}}}{{#vardefine:to|{{#ifeq:{{#var:section}}|Allusions|21|20}}}}
 
<div class="irhbCharts" id="centuryChart" data-category="{{#var:category}}" data-section="{{#var:section}}" data-century="{{#var:Century}}"  
<div class="irhbCharts" id="centuryChart" data-category="{{#var:category}}" data-section="{{#var:section}}" data-century="{{#var:Century}}"  
data-from="{{#var:from}}" data-to="{{#var:to}}">
data-from="{{#var:from}}" data-to="{{#var:to}}">

Revision as of 12:31, 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 other than 'false', index on x-axis of timeline is hidden, defaults to 'false'.

includeonly>

Error in widget AlCharts: Unable to load template 'wiki:AlCharts'

</includeonly>