Template:Longitem: Difference between revisions
Content deleted Content added
Neveselbert (talk | contribs) fix |
Neveselbert (talk | contribs) fmt |
||
Line 1: | Line 1: | ||
{{#ifeq: {{{1|+}}} | {{{1|-}}} |<div style="display: inline-block; line-height: 1.2em; padding: .1em 0;{{#if:{{{style|}}} | {{{style|}}}}}">{{{1|}}}</div><includeonly>{{#if:{{{2|}}}|[[Category:Pages using Template:Longitem with unnamed style parameter]]}}</includeonly>|<includeonly>line-height: 1.2em; padding: .1em 0;</includeonly>}}<noinclude> |
{{#ifeq: {{{1|+}}} | {{{1|-}}} |<div style="display: inline-block; line-height: 1.2em; padding: .1em 0;{{#if:{{{style|}}} | {{{style|}}}}}">{{{1|}}}</div><includeonly>{{#if:{{{2|}}}|[[Category:Pages using Template:Longitem with unnamed style parameter]]}}</includeonly>|<includeonly>{{{1|line-height: 1.2em; padding: .1em 0;}}}</includeonly>}}<noinclude> |
||
<syntaxhighlight lang="python">line-height: 1.2em; padding: .1em 0;</syntaxhighlight> |
<syntaxhighlight lang="python">line-height: 1.2em; padding: .1em 0;</syntaxhighlight> |
||
{{documentation}} |
{{documentation}} |
Revision as of 20:13, 12 October 2022
line-height: 1.2em; padding: .1em 0;
This template is used on approximately 675,000 pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
An inline formatting template primarily meant to handle the linewrapping of groupnames in {{Navbox}}es or relatively long entries in infoboxes and sidebars. It reduces the padding between the text and the edge of the cell, minimizing the height of the group
parameter.
Parameters
|1=
- The item, i.e. the text to display|style=
- Additional CSS code for styling
Tracking categories
See also
- {{longlink}}