Template:Reflist/doc: Difference between revisions
Template page
More actions
See also: +** {{tl|Reflist-talk}} |
m 8 revisions imported |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 9: | Line 9: | ||
=== Multiple columns === | === Multiple columns === | ||
Using < | Using <code><nowiki>{{reflist|2}}</nowiki></code> will create a two-column reference list, and <code><nowiki>{{reflist|3}}</nowiki></code> will create a three-column list. | ||
Using < | Using <code><nowiki>{{reflist|colwidth=30em}}</nowiki></code> will allow the browser to automatically choose the number of columns based on the width of the web browser. Choose a column width that's appropriate for the average width of the references on the page. | ||
Note: multiple columns currently render properly only in [[Mozilla Firefox]],<ref>{{cite web|accessdate=2006-11-24|date=[[2005-12-30]]|title=CSS3 Multi-Column Thriller|url=http://www.stuffandnonsense.co.uk/archives/css3_multi-column_thriller.html}}</ref> though the feature is included in [[Cascading Style Sheets|CSS3]], so it should work for a larger number of browsers in the future.<ref>{{cite web|url=http://www.w3.org/TR/css3-multicol|title=CSS3 module: Multi-column layout|publisher=[[World Wide Web Consortium|W3C]]|date=[[2005-12-15]]|accessdate=2006-11-24}}</ref> | Note: multiple columns currently render properly only in [[Mozilla Firefox]],<ref>{{cite web|accessdate=2006-11-24|date=[[2005-12-30]]|title=CSS3 Multi-Column Thriller|url=http://www.stuffandnonsense.co.uk/archives/css3_multi-column_thriller.html}}</ref> though the feature is included in [[Cascading Style Sheets|CSS3]], so it should work for a larger number of browsers in the future.<ref>{{cite web|url=http://www.w3.org/TR/css3-multicol|title=CSS3 module: Multi-column layout|publisher=[[World Wide Web Consortium|W3C]]|date=[[2005-12-15]]|accessdate=2006-11-24}}</ref> | ||
| Line 70: | Line 70: | ||
{{refend}} | {{refend}} | ||
</pre> | </pre> | ||
==TemplateData== | |||
{{TemplateData header}} | |||
<templatedata> | |||
{ | |||
"description": "A reference list, with options for setting columns, groups, extra references etc.", | |||
"params": { | |||
"1": { | |||
"label": "Column Count", | |||
"type": "number", | |||
"default": "1" | |||
}, | |||
"colwidth": { | |||
"label": "Column Width", | |||
"type": "string" | |||
}, | |||
"liststyle": { | |||
"label": "List Style", | |||
"description": "Specifies the style used when the reference list is enumerated; accepts any valid CSS value defined for “list-style-type”.", | |||
"suggestedvalues": [ | |||
"decimal", | |||
"lower-alpha", | |||
"lower-greek", | |||
"lower-roman", | |||
"upper-alpha", | |||
"upper-roman" | |||
], | |||
"default": "decimal", | |||
"type": "string" | |||
}, | |||
"group": { | |||
"label": "Group name", | |||
"description": "The name of the references group.", | |||
"type": "string" | |||
}, | |||
"refs": { | |||
"label": "List of references", | |||
"description": "Provides a space to define named references for use in the article.", | |||
"suggested": true, | |||
"type": "content" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
== See also == | == See also == | ||
| Line 78: | Line 122: | ||
** {{tl|Refend}} | ** {{tl|Refend}} | ||
* Similar-functioning templates | * Similar-functioning templates | ||
** {{tl| | ** {{tl|Notelist}} | ||
** {{tl|Reflist-talk}} | ** {{tl|Reflist-talk}} | ||
** {{Tld|Reflist-categories}} | |||
== References == | == References == | ||