This help page is ahow-to guide. It explains concepts or processes used by the Wikipedia community. It is not one ofWikipedia's policies or guidelines, and may reflect varying levels ofconsensus. |
| This help page is mainly of technical interest to those who are creating new label styles. For the use of defined styles, refer toWP:CITELABEL. |
When automatedfootnotes are used on Wikipedia pages, the default form of the footnote labels is[1],[2],[3], etc. Whengrouped footnotes are used, the labels are[name 1],[name 2], etc., wherename is the name given to the group. However, by using certain reserved group names, it is possible to make the labels appear in a different form, such as[i],[ii], etc. or[a],[b], etc.
Currently existing reserved group names are:
| Group name | Style | Sample |
|---|---|---|
| decimal | Decimal numbers | 1 2 3 4 5 6 7 8 9 10 |
| lower-alpha | Alpha, lower case | a b c d e f g h i j |
| upper-alpha | Alpha, upper case | A B C D E F G H I J |
| lower-greek | Greek, lower case | α β γ δ ε ζ η θ ι κ |
| lower-roman | Roman, lower case | i ii iii iv v vi vii viii ix x |
| upper-roman | Roman, upper case | I II III IV V VI VII VIII IX X |
For example, a footnote which is to appear in the i, ii, iii... group can be written as:
<ref group=lower-roman>...</ref>To generate the list of the footnotes in that group, use for example
{{reflist|group=lower-roman}}Further examples, technical information and instructions for creating new reserved groups can be found below.
Versionr66749 of theCite extension implements the ability to create styles for the cite link labels. Although the ability to create in-text cite label styles is unlimited, the matching reference list label styles are currently limited to those supported by the CSSlist-style-type property and to browser support.
The default in-text cite links and reference list backlinks use numeric labels automatically generated by the software. The labels are linked to provide a connection between the in-text cite and the reference list cite.
In this example, the super-scripted, in-text cites use a numeric label that matches the citation in the reference list:
| Markup | Renders as |
|---|---|
|
Special group names have been defined which give alternative sequences, such as alphabetical and roman numerals, instead of Arabic numerals.
| Group name | Style | Sample | Interface page |
|---|---|---|---|
| decimal | Decimal numbers | 1 2 3 4 5 6 7 8 9 10 | MediaWiki:cite link label group-decimal |
| lower-alpha | Alpha, lower case | a b c d e f g h i j | MediaWiki:cite link label group-lower-alpha |
| upper-alpha | Alpha, upper case | A B C D E F G H I J | MediaWiki:cite link label group-upper-alpha |
| lower-greek | Greek, lower case | α β γ δ ε ζ η θ ι κ | MediaWiki:cite link label group-lower-greek |
| lower-roman | Roman, lower case | i ii iii iv v vi vii viii ix x | MediaWiki:cite link label group-lower-roman |
| upper-roman | Roman, upper case | I II III IV V VI VII VIII IX X | MediaWiki:cite link label group-upper-roman |
| error-test | test | first second last! | MediaWiki:cite link label group-error-test |
The list below is created automatically bySpecial:PrefixIndex:
These sequences will only work properly when using the{{Reflist}} template. Although the<references /> tag supports thegroup= attribute, the footnotes will be displayed with the default Arabic numerals.
Only admins can perform these actions. Non-admins may request additions on the talk page.
Currently, only styles supported by the CSSlist-style-type element may be added.[1] Not all styles are supported by all browsers— see the list below.[2]
list-style-type value. Quotes may not be used in values in{{Reflist}} therefore the namemust comply with the rules for HTML ids.[3]#REDIRECT [[Help talk:Cite errors]].list-style-type that styles the reference list.The in-text link labels will be retrieved from the MediaWiki label page, thus they should show regardless of browser. The reference list labels are styled by the CSSlist-style-type property. Not all browsers support alllist-style-type values. A browser that does not support the value will revert to the default decimal label in the reference list.
An error message indicates when there are more cites than there are link labels:
This message is invoked throughMediaWiki:cite error no link label group; the help page is atHelp:Cite errors/Cite error no link label group.
The{{Reflist}} uses the|group= parameter to select thelist-style-type style, and apply it to the.reflist class:
list-style-type:<!-- -->{{#switch:{{{group|}}}| lower-alpha| lower-greek| lower-roman={{{group}}}| #default= decimal}};
list-style-type.CSS rules inMediaWiki:Common.css then allow the.references class to inherit thelist-style-type:
div.reflistol.references{list-style-type:inherit;/* Enable custom list style types */}