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" 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-tocentury="{{#var:to}}" data-fromcentury="{{#var:from}}"> | data-tocentury="{{#var:to}}" data-fromcentury="{{#var:from}}"> | ||
</div> | |||
<div class="irhbCharts" id="halfCenturyChart"> | |||
{{#ask:[[Category:{{#var:category}}]]{{#ifeq:{{#var:Century}}|all||[[Alcent::{{#var:Century}}]]}} | {{#ask:[[Category:{{#var:category}}]]{{#ifeq:{{#var:Century}}|all||[[Alcent::{{#var:Century}}]]}} | ||
|?Alcent# | |?Alcent# | ||
Line 14: | Line 16: | ||
|template=AlChartData | |template=AlChartData | ||
}} | }} | ||
</div> | |||
<div class="irhbCharts" id="quarterCenturyChart"> | |||
</div> | </div> | ||
<div class="irhbCharts" id="decadeChart"> | <div class="irhbCharts" id="decadeChart"> |
Revision as of 02:02, 5 November 2018
This template renders the charts on the section and century landing pages in the Allusions section of IRHB. It takes three optional parameters.
- Section – 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'.