Template:Refwidth: Difference between revisions
friendlier for wikidata et al |
Deleatur yhe (talk | contribs) m 1 revision imported |
(No difference)
| |
Latest revision as of 08:27, 9 September 2026
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
Refwidth defines the maximum column width of generated lists of footnotes. It's a replacement for the first unnamed parameter <syntaxhighlight lang="wikitext" inline style="display: none;" />|1= of {{reflist}} that applies a specific column width to <references>...</references>, {{reflist}}, and {{notelist}}. It only has a limited amount of width presets due to a technical limitation of Wikipedia:TemplateStyles; template parameter values cannot be used as CSS values, but they can be used in CSS file names. When there are multiple lists of footnotes on a page, use {{refwidth}} only once and it will apply to each one. To give a {{reflist}} or a {{notelist}} showing a list of explanatory notes a different column width, use that template's first unnamed parameter <syntaxhighlight lang="wikitext" inline style="display: none;" />|1= to provide a separate maximum column value in ems, such as 30em.
Usage
Same width
<syntaxhighlight lang="wikitext">
Notes
References
</syntaxhighlight>
Different widths
<syntaxhighlight lang="wikitext">
Notes
References
</syntaxhighlight>
<templatedata> { "params": { "1": { "label": "Width", "type": "string", "suggestedvalues": [ "short", "medium", "long" ], "required": true } },
"description": "Refwidth defines the maximum column width of generated lists of footnotes. It applies a specific column width to ,} </templatedata>