Template:Reflist/doc

From Soma-notes
Jump to navigation Jump to search

{{#ifeq:doc|{{#ifeq:|override|doc|doc}}|{{Documentation subpage/{{#ifexist: Template:Documentation subpage/{{#if: |{{{2}}}|⧼Lang⧽}} | {{#if: |{{{2}}}|⧼Lang⧽}} | {{#ifexist: Template:Documentation subpage/Template:GetFallback | Template:GetFallback | {{#ifexist: Template:Documentation subpage/Template:GetFallback2 | Template:GetFallback2 | en }} }} }}}}}}

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,<ref>{{#if: {{#if:http://www.stuffandnonsense.co.uk/archives/css3_multi-column_thriller.html | {{#if:CSS3 Multi-Column Thriller|1}}}}

 |
 |Error: title= and url= must be specified

}}{{#if:

   |{{#if: {{#if:|{{#if:|1}}}}
      |
      |Error: archiveurl= and archivedate= must be both be specified or both omitted
    }}

}}{{#if:

   |{{#if:
      |[[{{{authorlink}}} | {{#if:
         |{{{last}}}{{#if:|, {{{first}}}}}
         |{{{author}}}
         }}]]
      |{{#if:
         |{{{last}}}{{#if:|, {{{first}}}}}
         |{{{author}}}
       }}
    }}

}}{{#if:

   |{{#if:|; {{{coauthors}}} }}{{#if:
      |{{#if:
         |; [[{{{editor-link}}} | {{{editor}}}]]
         |; [[{{{editor-link}}} | {{{editor-last}}}, {{{editor-first}}}]]
       }}
      |{{#if:
         |{{#if:
            |; {{{editor}}}
            |; {{{editor-last}}}, {{{editor-first}}}
          }}
       }}
    }}{{#if:|; {{{coeditors}}} }}{{#if:
      |, {{{editor-type}}}
      |{{#if:
         |{{#if:|, eds.|, ed.}}
       }}
   }}

}}{{#if:

   |{{#if:2005-12-30
      | (2005-12-30)
      |{{#if:
         |{{#if:
            | ({{{month}}} {{{year}}})
            | ({{{year}}})
          }}
       }}
    }}
   |

}}{{#if:|. }}{{#if:

   |{{#if:
      |{{#if:CSS3 Multi-Column Thriller | [{{{archiveurl}}} CSS3 Multi-Column Thriller] }}
    }}
   |{{#if:http://www.stuffandnonsense.co.uk/archives/css3_multi-column_thriller.html
      |{{#if:CSS3 Multi-Column Thriller | CSS3 Multi-Column Thriller }}
    }}

}}{{#if: | (in {{{language}}}) }}{{#if:| () }}{{#if:|. {{{work}}} }}{{#if:| {{{pages}}} }}{{#if:

   |. {{{publisher}}}{{#if:
     | 
     |{{#if:2005-12-30||}}
   }}

}}{{#if:

   |
   |{{#if:2005-12-30
      | (2005-12-30)
      |{{#if:
         |{{#if:
            | ({{{month}}} {{{year}}})
            | ({{{year}}})
          }}
       }}
    }}

}}{{#if:|. Archived from the original on {{{archivedate}}} }}{{#if:2006-11-24|. Retrieved on 2006-11-24 }}{{#if:| Retrieved on {{{accessmonthday}}}, {{{accessyear}}} }}{{#if:| Retrieved on {{{accessdaymonth}}} {{{accessyear}}} }}{{#if:

   |{{#ifeq:{{{postscript}}}|no||{{{postscript}}} }}
   |.

}}{{#if:| "{{{quote}}}"}}</ref> though the feature is included in CSS3, so it should work for a larger number of browsers in the future.<ref>{{#if: {{#if:http://www.w3.org/TR/css3-multicol | {{#if:CSS3 module: Multi-column layout|1}}}}

 |
 |Error: title= and url= must be specified

}}{{#if:

   |{{#if: {{#if:|{{#if:|1}}}}
      |
      |Error: archiveurl= and archivedate= must be both be specified or both omitted
    }}

}}{{#if:

   |{{#if:
      |[[{{{authorlink}}} | {{#if:
         |{{{last}}}{{#if:|, {{{first}}}}}
         |{{{author}}}
         }}]]
      |{{#if:
         |{{{last}}}{{#if:|, {{{first}}}}}
         |{{{author}}}
       }}
    }}

}}{{#if:

   |{{#if:|; {{{coauthors}}} }}{{#if:
      |{{#if:
         |; [[{{{editor-link}}} | {{{editor}}}]]
         |; [[{{{editor-link}}} | {{{editor-last}}}, {{{editor-first}}}]]
       }}
      |{{#if:
         |{{#if:
            |; {{{editor}}}
            |; {{{editor-last}}}, {{{editor-first}}}
          }}
       }}
    }}{{#if:|; {{{coeditors}}} }}{{#if:
      |, {{{editor-type}}}
      |{{#if:
         |{{#if:|, eds.|, ed.}}
       }}
   }}

}}{{#if:

   |{{#if:2005-12-15
      | (2005-12-15)
      |{{#if:
         |{{#if:
            | ({{{month}}} {{{year}}})
            | ({{{year}}})
          }}
       }}
    }}
   |

}}{{#if:|. }}{{#if:

   |{{#if:
      |{{#if:CSS3 module: Multi-column layout | [{{{archiveurl}}} CSS3 module: Multi-column layout] }}
    }}
   |{{#if:http://www.w3.org/TR/css3-multicol
      |{{#if:CSS3 module: Multi-column layout | CSS3 module: Multi-column layout }}
    }}

}}{{#if: | (in {{{language}}}) }}{{#if:| () }}{{#if:|. {{{work}}} }}{{#if:| {{{pages}}} }}{{#if:W3C

   |. W3C{{#if:
     | 
     |{{#if:2005-12-15||}}
   }}

}}{{#if:

   |
   |{{#if:2005-12-15
      | (2005-12-15)
      |{{#if:
         |{{#if:
            | ({{{month}}} {{{year}}})
            | ({{{year}}})
          }}
       }}
    }}

}}{{#if:|. Archived from the original on {{{archivedate}}} }}{{#if:2006-11-24|. Retrieved on 2006-11-24 }}{{#if:| Retrieved on {{{accessmonthday}}}, {{{accessyear}}} }}{{#if:| Retrieved on {{{accessdaymonth}}} {{{accessyear}}} }}{{#if:

   |{{#ifeq:{{{postscript}}}|no||{{{postscript}}} }}
   |.

}}{{#if:| "{{{quote}}}"}}</ref>

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 | references-column-count references-column-count-{{{1}}} }} }} }}" {{#if: | style="-moz-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: | style="-moz-column-count:{{{1}}}; column-count:{{{1}}};" }} }}> <references group=""></references>