Difference between revisions of "Template:RefCols/doc"

From WikiCorporates
Jump to navigation Jump to search
m
m (→‎Usage)
Line 6: Line 6:
 
To use:
 
To use:
 
<pre>
 
<pre>
 +
== References ==
 
{{RefCols|content=
 
{{RefCols|content=
 
<references>
 
<references>
Line 19: Line 20:
 
Do this in MediaWiki:Common.css thus:
 
Do this in MediaWiki:Common.css thus:
 
ol.references { margin-left:1.2em; }
 
ol.references { margin-left:1.2em; }
−
 
  
 
== References ==
 
== References ==

Revision as of 20:49, 6 October 2018

Usage

A template to (a) put references in two or more columns, depending on browser window width; (b) make the font smaller (90%); (c) add a border bottom to "enclose" the references.

This is a paragraph of random text, littered with references.[1] (ECO2t) replaced ECO2, running until Sept.2018[2] He changed the law so that local people have the final say on windfarm applications.[3] Energy Secretary Amber Rudd said "We've got enough wind energy".[4] The Energy Company Obligation (ECO2) replaced ECO1.[2] The Green Deal was re-launched, but this time as grants rather than loans.[5] A Green Deal Home Improvement Fund was added to try to improve takeup; households were eligible to claim up to £7,600 for home improvements. The Fund closed in Sept.2014, due to overwhelming demand.[6]

To use:

== References ==
{{RefCols|content=
<references>
<ref name="bbc-2015.07.23">{{Src|ref|date=Jul.23.2015|...
<ref name="gov-2018.04.20">{{Src|ref|accessdate=Apr.20.2018|...
<ref name="gov-2015.06.18">{{Src|ref|date=Jun.18.2015|...
</references>
}}

ToDo

Reduce the left margin to 1.2em so it is left-aligned with the "References" heading. Stupid waste of space. See MediaWiki help page. Do this in MediaWiki:Common.css thus: ol.references { margin-left:1.2em; }

References