Template:Reflist and Template:Reflist/sandbox: Difference between pages

From Chalo Chatu, Zambia online encyclopedia
(Difference between pages)
Jump to navigationJump to search
Page 1
Page 2
No edit summary
 
Created page with "{{Documentation subpage}} == Usage == This template displays a list of references (footnotes) defined by the <code><nowiki><ref></nowiki></code> tags in an article. Place <code><nowiki>{{Reflist}}</nowiki></code> at the end of a section or at the end of an article to automatically generate a references list. === Example === <syntaxhighlight lang="wikitext"> This is a statement.<ref>Zambia Daily Mail, 2024</ref> Another statement.<ref>Times of Zambia, 2023</ref> == Re..."
 
Line 1: Line 1:
<div class="reflist {{#if:{{{col|}}}|reflist-columns}}">
{{Documentation subpage}}
</div><noinclude>
 
{{Documentation}}
== Usage ==
</noinclude>
This template displays a list of references (footnotes) defined by the <code><nowiki><ref></nowiki></code> tags in an article.
 
Place <code><nowiki>{{Reflist}}</nowiki></code> at the end of a section or at the end of an article to automatically generate a references list.
 
=== Example ===
<syntaxhighlight lang="wikitext">
This is a statement.<ref>Zambia Daily Mail, 2024</ref>
Another statement.<ref>Times of Zambia, 2023</ref>
 
== References ==
{{Reflist}}
</syntaxhighlight>
 
This will produce:
 
This is a statement.[1] 
Another statement.[2] 
 
== References ==
<references />
 
== Parameters ==
* <code>|colwidth=</code> – Sets the minimum width of reference columns.
** Example: <code><nowiki>{{Reflist|colwidth=30em}}</nowiki></code>
* <code>|refs=</code> – Allows manually added references.
** Example: <code><nowiki>{{Reflist|refs=<ref>Extra reference</ref>}}</nowiki></code>
 
== Notes ==
* On Chalo Chatu, the template uses simplified CSS styling controlled through [[MediaWiki:Common.css]].
* For complex layouts, editors should use <code><nowiki><references /></nowiki></code> directly.
* Make sure every reference is properly formatted with <code><nowiki><ref></nowiki></code> and <code><nowiki></ref></nowiki></code>.
 
== See also ==
* [[Help:References]]
* [[Template:Citation needed]]
* [[Template:Cite web]]
 
<includeonly>[[Category:Reference templates]]</includeonly>