Template:Reflist

Revision as of 20:53, 14 July 2026 by SGPolitico (talk | contribs) (Created page with "<includeonly><div class="reflist" style="{{#switch:{{{1|30em}}}|1|2|3|4|5|6|7|8|9=column-count: {{{1}}}; column-gap: 1.5em; font-size: 90%;|#default=column-width: {{{1|30em}}}; column-gap: 1.5em; font-size: 90%;}}"><references{{#if:{{{group|}}}| group="{{{group}}}"}} /></div></includeonly><noinclude> == Usage == Lua-free reimplementation of Wikipedia's <nowiki>{{reflist}}</nowiki>. Upstream's core behaviour here is CSS-driven, not Lua-driven, so this covers it directly r...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

Lua-free reimplementation of Wikipedia's {{reflist}}. Upstream's core behaviour here is CSS-driven, not Lua-driven, so this covers it directly rather than needing a workaround.

{{reflist}}
{{reflist|30em}}
{{reflist|2}}
{{reflist|group=note}}

The first unnamed parameter sets column layout: a bare small number (19) is treated as a fixed column count; anything else (e.g. 25em, 30em, 35em) is treated as a CSS column-width value, matching how it's used across existing Politicalsg articles. Defaults to 30em if omitted. |group= is forwarded to the underlying <references /> tag for grouped footnotes (e.g. explanatory notes separate from citations).

Deviations from the Wikipedia original:

  • No |refs= support — upstream lets you define a reference list here that populates <ref name="x" /> calls scattered through the article body ("list-defined references"). Not built, since no article on this wiki currently uses that pattern; all refs are inline. Extend this template if that changes.
  • No |liststyle= or manual list-numbering-style overrides.
  • Styled with inline CSS rather than relying on a site-wide .reflist class, for the same reason as Template:See also — guarantees correct rendering even if MediaWiki:Common.css never defines one.