Template:Reflist/doc

From PS:1 Wiki Dev
Jump to navigationJump to search

Usage

This template displays references and footnotes in a formatted list. It's typically placed at the end of an article in a "References" section.

Basic format

== References ==
{{Reflist}}

This displays all references created with <ref> tags in the article.

Examples

Simple usage

In the article body:

Pumping Station: One was founded in 2009.<ref>{{Cite web|url=https://pumpingstationone.org/about|title=About PS:One}}</ref>

At the end of the article:

== References ==
{{Reflist}}

Multiple columns

For articles with many references, display them in columns:

{{Reflist|colwidth=30em}}

This creates a multi-column layout with each column at least 30em wide. The browser will fit as many columns as possible.

Parameters

colwidth
Optional column width (e.g., "30em", "20em"). The template will create as many columns as will fit in the available space.

Common column widths

  • 30em - Good for most articles (2-3 columns on wide screens)
  • 20em - More columns, good for long reference lists
  • 40em - Fewer columns, good for references with long titles

Notes

  • References are created using <ref> tags in the article text

<references />

should appear once at the end of the article

  • If no column width is specified, references appear in a single column
  • The reflist div has class "reflist" for CSS styling

Creating references

Inline reference

This is a fact.<ref>Source information here</ref>

Named reference

This is a fact.<ref name="source1">Source information</ref>

Later reference to the same source.<ref name="source1" />

With citation template

This is a fact.<ref>{{Cite web|url=https://example.com|title=Article Title|author=Smith, John}}</ref>

Complete example

Pumping Station: One is a hackerspace in Chicago.<ref name="about">{{Cite web|url=https://pumpingstationone.org/about|title=About PS:One}}</ref> It was founded in 2009<ref name="about" /> and offers workshops and classes.<ref>{{Cite web|url=https://pumpingstationone.org/events|title=PS:One Events}}</ref>

== References ==
{{Reflist|colwidth=30em}}

See also