Template:AllusionsCharts: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 6: Line 6:
data-tocentury="{{#var:to}}" data-fromcentury="{{#var:from}}">
data-tocentury="{{#var:to}}" data-fromcentury="{{#var:from}}">
</div>
</div>
<div class="irhbCharts" id="halfCenturyChart">
<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#
|?Alhacent#
|?Alhacent#
Line 18: Line 17:
|outrotemplate=SMWDataSpanOut
|outrotemplate=SMWDataSpanOut
|sep=,
|sep=,
}}
}}</div>
</div>
<div class="irhbCharts" id="quarterCenturyChart">
<div class="irhbCharts" id="quarterCenturyChart">
</div>
</div>

Revision as of 13:56, 2 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'.