Difference between revisions of "Template:Smallrefs"

From Nynorn
Jump to navigation Jump to search
(oops, masked another optional parameter)
(a starting point for documentation)
Line 1: Line 1:
<div style="font-size:{{{1|0.8em}}}; {{#if: {{{columns|}}}|-moz-column-count:{{{columns}}}; column-count:{{{columns}}};}}"><references /></div><noinclude>[[Category:Formatting templates|Smallrefs]]</noinclude>
+
<includeonly><div style="font-size:{{{1|0.8em}}}; {{#if: {{{columns|}}}|-moz-column-count:{{{columns}}}; column-count:{{{columns}}};}}"><references /></div></includeonly><noinclude>
 +
==Usage==
 +
<nowiki>{{smallrefs}}</nowiki>
 +
<nowiki>{{smallrefs|10pt}}</nowiki>
 +
<nowiki>{{smallrefs|columns=2}}</nowiki>
 +
 
 +
Use in place of <code><nowiki><references/></nowiki></code> when a smaller type size is desired, with optional control over the specific type size and the number of columns rendered (in browsers that implement CSS columns).
 +
 
 +
==Parameters==
 +
All parameters are optional.
 +
; first paramater (unnamed)
 +
: Font size; this sets the CSS <code>font-size</code> attribute ("12px", "10pt", etc.; default is "0.8em")
 +
; <code>columns</code> (or second parameter)
 +
: number of columns for references; this sets the CSS <code>column-count</code> and <code>-moz-column-count</code> attributes
 +
 +
[[Category:Formatting templates|Smallrefs]]</noinclude>

Revision as of 00:25, 14 December 2009

Usage

{{smallrefs}}
{{smallrefs|10pt}}
{{smallrefs|columns=2}}

Use in place of <references/> when a smaller type size is desired, with optional control over the specific type size and the number of columns rendered (in browsers that implement CSS columns).

Parameters

All parameters are optional.

first paramater (unnamed)
Font size; this sets the CSS font-size attribute ("12px", "10pt", etc.; default is "0.8em")
columns (or second parameter)
number of columns for references; this sets the CSS column-count and -moz-column-count attributes