Warning
This is an unofficial archive of PsychonautWiki as of 2025-08-11T15:14:44Z. Content on this page may be outdated, incomplete, or inaccurate. Please refer to the original page for the most up-to-date information.

Template:Reflist: Difference between revisions

From PsychonautWiki Archive
Jump to navigation Jump to search
iw>Jarekt
synch with EN wiki
 
iw>Redrose64
rm newline: this was causing a visible gap in the output when the category was not emitted
Line 1: Line 1:
<div class="reflist <!--
<div class="reflist <!--
  -->{{#if: {{{1|}}}
  -->{{#if: {{{1|}}}
     | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
     | columns {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
       | references-column-width  
       | references-column-width  
       | references-column-count references-column-count-{{#if:1|{{{1}}}}} }}
       | references-column-count references-column-count-{{#if:1|{{{1}}}}} }}
Line 19: Line 19:
     | lower-roman = {{{group}}}
     | lower-roman = {{{group}}}
     | #default = decimal}}}}};">
     | #default = decimal}}}}};">
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude>
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div>{{#if: {{{1|}}}
    | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
      || [[Category:Articles using fixed number of columns in reflist]] }} }}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 08:01, 15 March 2014

Documentation icon Documentationviewedithistory⧼Code-rev-purge-link⧽

This documentation is transcluded from Template:Reflist/doc.

Usage

Use this template to create a reference list in an article.

If used with no parameters, it will simply produce a reference list in a small font.

Multiple columns

Using {{reflist|2}} will create a two-column reference list, and {{reflist|3}} will create a three-column list.

Using {{reflist|colwidth=30em}} will allow the browser to automatically choose the number of columns based on the width of the web browser. Choose a column width that's appropriate for the average width of the references on the page.

Note: multiple columns currently render properly only in Mozilla Firefox,[1] though the feature is included in CSS3, so it should work for a larger number of browsers in the future.[2]

Three options for usage

Option 1 (only specific references) - see w:The Rule

== Content ==

Lorem ipsum.<ref>Source name, access date, etc.</ref>

Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>

== References ==

{{reflist}}

Option 2 (only general references) - see w:National Publications

== Content ==

Lorem ipsum.

Lorem ipsum dolor sit amet.

== References ==

{{refbegin}}
* general reference 1
* general reference 2
{{refend}}

Option 3 (both specific and general references) - see w:Elephant

== Content ==

Lorem ipsum.<ref>Source name, access date, etc.</ref>

Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>

Lorem ipsum.

Lorem ipsum dolor sit amet.

== References ==

{{reflist}}

{{refbegin}}
* general reference 1
* general reference 2
{{refend}}

See also

References

  1. "CSS3 Multi-Column Thriller". 2005-12-30. Retrieved 2006-11-24. 
  2. "CSS3 module: Multi-column layout". W3C. 2005-12-15. Retrieved 2006-11-24.