Template:AllusionsCharts: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 5: Line 5:
<div class="irhbCharts" id="centuryChart">
<div class="irhbCharts" id="centuryChart">
</div>
</div>
<div class="irhbCharts" id="halfCenturyChart">{{#ask:[[Category:{{#var:category}}]]{{#ifeq:{{#var:Century}}|all||[[Alcent::{{#var:Century}}]]}}
<div class="irhbCharts" id="halfCenturyChart">
{{#ask:[[Category:{{#var:category}}]]{{#ifeq:{{#var:Century}}|all||[[Alcent::{{#var:Century}}]]}}
|?Alcent#
|?Alcent#
|?Alhacent#
|?Alhacent#
Line 13: Line 14:
|format=template
|format=template
|template=AlChartData
|template=AlChartData
}}</div>
}}
</div>
<div class="irhbCharts" id="quarterCenturyChart">
<div class="irhbCharts" id="quarterCenturyChart">
</div>
</div>
Line 20: Line 22:
<div id="timeline" data-hidex="{{#ifeq:{{{HideXaxis|}}}||false|true}}">
<div id="timeline" data-hidex="{{#ifeq:{{{HideXaxis|}}}||false|true}}">
</div>
</div>
{{#Widget:AlCharts}}<!--
{{#Widget:AlCharts}}</includeonly>
Type is: {{#var:type}}<br/>
Section is: {{#var:section}}<br/>
Content is: {{#var:content}}<br/>
Period is: {{#var:period}}<br/>
Category is: {{#var:category}}<br/>
Century is: {{#var:Century}}-->
</includeonly>

Revision as of 11:37, 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'.