Template:Reflist: Difference between revisions

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
m (remove (optional))
(add liststyle info)
 
Line 48: Line 48:
"suggested": true
"suggested": true
},
},
"colwidth": {},
"colwidth": {
"liststyle": {},
"label": "Column width",
"group": {},
"description": "Column width including units. Leave blank for responsive columns.",
"refs": {}
"example": "32 em",
"type": "string",
"suggested": false
},
"liststyle": { "label": "List style",
"description": "How to number or label references, using a css ol.list-style-type",
"example": "lower-alpha",
"type": "string",
"suggested": false
},
"group": {
"label": "Group",
"description": "",
"example": "",
"type": "string",
"suggested": false
},
"refs": {
"label": "Refs",
"description": "Unique reference name. Usually peft blank",
"example": "",
"type": "string",
"suggested": false
}
}
}
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 01:13, May 19, 2022

template icon Template documentation[view] [edit] [history] [purge]

This template formats the reference list on the page. You should not normally change the values.

The styling can be set for all pages using this template in the Mediawiki:Common.css and Mediawiki:Timeless.css pages, for example for the reflist class.

The "Reflist" template tag adds a list of references to the end of an article. It is identical to <references/>, but with style formatting. You do not need to enter any information below.

Template parameters

ParameterDescriptionTypeStatus
Number of columns1

Number of columns for the list of references

Example
1
Numbersuggested
Column widthcolwidth

Column width including units. Leave blank for responsive columns.

Example
32 em
Stringoptional
List styleliststyle

How to number or label references, using a css ol.list-style-type

Example
lower-alpha
Stringoptional
Groupgroup

Example
Stringoptional
Refsrefs

Unique reference name. Usually peft blank

Example
Stringoptional