Template:AllusionsCharts: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
m (Text replacement - "AlChartData" to "AllusionsChartData") |
||
(45 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>__NOTOC__{{#vardefine:section|{{#ifeq:{{{Section|}}}||Allusions|{{{Section}}}}}}}{{#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="jsCharts" id="cChart" data-category="{{#var:category}}" data-section="{{#var:section}}" data-century="{{#var:Century}}" | |||
data-tocentury="{{#var:to}}" data-fromcentury="{{#var:from}}"> | |||
{{#ask:[[Category:{{#var:category}}]]{{#ifeq:{{#var:Century}}|all||[[Century::{{#var:Century}}]]}} | |||
<div class=" | |?Century# | ||
|?Decade# | |||
|?Year# | |||
{{#ask:[[Category:{{#var:category}}]]{{#ifeq:{{#var:Century}}|all||[[ | |||
|? | |||
|? | |||
|? | |||
|format=template | |format=template | ||
|template= | |template=AllusionsChartData | ||
}} | |link=none | ||
}}</div> | |||
<div class="jsCharts" id="dChart"> | |||
</div> | |||
<div class=" | |||
</div> | </div> | ||
<div | <div class="jsCharts" id="tline"> | ||
</div> | </div> | ||
{{#Widget: | {{#Widget:AllusionsCharts}}</includeonly><noinclude> | ||
<templatedata> | |||
{ | |||
"params": { | |||
"Section": { | |||
"label": "Section", | |||
"description": "The type of section, either Records or Allusions.", | |||
"example": "Records", | |||
"type": "string", | |||
"default": "Allusions" | |||
}, | |||
"Category": { | |||
"label": "Category", | |||
"description": "Category on which to base charts, defaults to \"Allusions\".", | |||
"example": "Records", | |||
"type": "string", | |||
"default": "Allusions" | |||
} | |||
}, | |||
"description": "Renders the charts on section and century landing pages in the Allusions section; takes three optional parameters." | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 08:35, 7 January 2021
Renders the charts on section and century landing pages in the Allusions section; takes three optional parameters.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Section | Section | The type of section, either Records or Allusions.
| String | optional |
Category | Category | Category on which to base charts, defaults to "Allusions".
| String | optional |