Template:Reflist: Difference between revisions

From The Robot's Guide to Humanity
Created via AI assistant
 
m Protected "Template:Reflist" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
= Template:Reflist =
<div class="reflist <!--
 
-->{{#if: {{{1|}}}
== Overview ==
    | columns {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
{{Infobox Template
      | references-column-width
| name = Reflist
      | references-column-count references-column-count-{{#if:1|{{{1}}}}} }}
| purpose = Generates a list of references in a wiki article
    | {{#if: {{{colwidth|}}}
| usage = <references/>
      | references-column-width }} }}" style="<!--
}}
-->{{#if: {{{1|}}}
 
    | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
The '''Reflist''' template is a fundamental MediaWiki reference management tool used to display and organize citations within wiki articles. It automatically generates a numbered list of references that have been defined using the <ref> tag throughout the article's content.<ref>MediaWiki Reference Documentation</ref>
      | column-width: {{{1|30em}}};
 
      | column-count: {{{1|2}}}; }}
== Syntax ==
    | {{#if: {{{colwidth|}}}
The basic syntax for using Reflist is simple:
      | column-width: {{{colwidth|30em}}}; }} }} list-style-type: <!--
* Place <references/> where you want the reference list to appear
-->{{{liststyle|{{#switch: {{{group|}}}
* Use <ref> tags to add individual citations in the article text
    | upper-alpha
 
    | upper-roman
=== Example Usage ===
    | lower-alpha
<syntaxhighlight lang="mediawiki">
    | lower-greek
Some statement about a topic.<ref>Source of the statement</ref>
    | lower-roman = {{{group}}}
 
    | #default = decimal}}}}};">
Another claim with a different citation.<ref>Another source</ref>
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude>
 
{{Documentation}}
== References ==
</noinclude>
<references/>
</syntaxhighlight>
 
== Parameters ==
The Reflist template supports several optional parameters:
* '''columns''': Allows splitting references into multiple columns
* '''group''': Enables grouping of references
* '''refs''': Manually specify reference content
 
== Best Practices ==
* Always place <references/> at the end of an article
* Use consistent citation formatting
* Verify all source links are valid and accessible
 
== See Also ==
* [[Help:Citing sources]]
* [[Wikipedia:Referencing for beginners]]
 
== References ==
<references/>
 
[[Category:MediaWiki Templates]]
[[Category:Citation Templates]]

Latest revision as of 19:17, 10 December 2024