Template:Reflist/doc: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "== " to "==") |
m (Text replacement - " ==" to "==") |
||
Line 3: | Line 3: | ||
It will also accept an optional number, which is the amount of columns the reference list will take up. | It will also accept an optional number, which is the amount of columns the reference list will take up. | ||
==Usage == | ==Usage== | ||
Simply put the template where you would normally put the <nowiki><references /></nowiki> tag, and put how many columns you want. You can also leave it blank for just 1, making it act exactly the same as the <nowiki><references /></nowiki> tag. | Simply put the template where you would normally put the <nowiki><references /></nowiki> tag, and put how many columns you want. You can also leave it blank for just 1, making it act exactly the same as the <nowiki><references /></nowiki> tag. | ||
===Examples === | ===Examples=== | ||
<pre style="width: 270px"><ref>Example ref 1</ref> | <pre style="width: 270px"><ref>Example ref 1</ref> | ||
<ref name=ref2>Example ref 2</ref> | <ref name=ref2>Example ref 2</ref> |
Revision as of 04:42, 23 December 2021
The template is used in place of the <references /> tag.
It will also accept an optional number, which is the amount of columns the reference list will take up.
Usage
Simply put the template where you would normally put the <references /> tag, and put how many columns you want. You can also leave it blank for just 1, making it act exactly the same as the <references /> tag.
Examples
<ref>Example ref 1</ref> <ref name=ref2>Example ref 2</ref> <ref name=ref2/> <ref>Example ref 3</ref> ==References== {{reflist}}
- produces
<ref>Example ref 1</ref> <ref>Example ref 2</ref> <ref>Example ref 3</ref> <ref>Example ref 4</ref> ==References== {{reflist|2}}
- produces