Jump to content

From Noumenapedia
Revision as of 08:27, 9 September 2026 by Deleatur yhe (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Refwidth/doc

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 ,

, and

. When there are multiple lists of footnotes on a page, use only once and it will apply to each one. To give a

or a

showing a list of explanatory notes a different column width, use that template's first unnamed parameter |1= to provide a separate maximum column value in ems, such as 30em."

} </templatedata>