模板:Reflist

来自星际公民中文百科
Template documentation[view][edit][history][purge]
This documentation is transcluded from 模板:Reflist/doc. Changes can be proposed in the talk page.

This template provides formatting and organizational features for footnotes. It encapsulates the <references/> tag used by the Extension:Cite to show the list of references as defined by <ref> tags. It adds support for sizing the column width, groups.

TemplateData

This template displays the list of footnotes at the end of an article and provides additional formatting and organizing options. After hitting "Apply changes" and turning back to VE read mode, you will not see the references list. After hitting "Publish page" and turning back to normal read mode the reference list will reappear with the changes applied, see T53146.

模板参数

参数描述类型状态
Columns / Column width1colwidth

Two modes supported. First mode (deprecated): integer number of fixed columns into which the reference list is to be rendered. Second mode: typographic unit of measurement such as 'em', specifying the width for the reference list columns, e.g. '33em'; spaced '33&nbsp;em' will not be recognized

默认值
1 if < 11 references; otherwise 30em
字符串可选
Liststyleliststyle

Specifies the style used when the reference list is enumerated; accepts any valid CSS value defined for list-style-type

默认值
decimal
字符串可选
Groupgroup

Group is an identifier which restricts the references that are shown. Without this parameter, this template only shows references with no group identifier. With a group identifier specified, only references with a matching group identifier are handled. The rest are left alone.

字符串可选
List of referencesrefs

Provides a space to define named references for use in the article. References defined in this space are not shown unless used somewhere in the article.

字符串可选

See also


Debug data: