<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AHorizontal_list%2Fdoc</id>
	<title>Template:Horizontal list/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AHorizontal_list%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Horizontal_list/doc&amp;action=history"/>
	<updated>2026-11-01T18:29:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Template:Horizontal_list/doc&amp;diff=113388&amp;oldid=prev</id>
		<title>Wikipedia&gt;Izno: /* Avoiding Linter errors */ +</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Horizontal_list/doc&amp;diff=113388&amp;oldid=prev"/>
		<updated>2026-09-13T00:01:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Avoiding Linter errors: &lt;/span&gt; +&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
{{Tlr|clear=right|hlist|dotlist}}&lt;br /&gt;
{{Used in system|in [[MediaWiki:Citethispage-content]]}}&lt;br /&gt;
{{Uses TemplateStyles|Template:Hlist/styles.css|sandbox=Template:Horizontal list/sandbox/styles.css}}&lt;br /&gt;
{{Lua|Module:List}}&lt;br /&gt;
{{Cascade-protected template}}&lt;br /&gt;
&lt;br /&gt;
This template creates [[WP:HLIST|horizontal lists]]. Each item in the list may be individually styled with [[CSS]].&lt;br /&gt;
&lt;br /&gt;
Lists output by {{tl|Flatlist}} and {{tl|Horizontal list}} are semantically and visually identical, and differ only in the wiki markup used to create the lists.&lt;br /&gt;
__TOC__&lt;br /&gt;
{{-}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
===Basic usage===&lt;br /&gt;
&lt;br /&gt;
 {{tlf|horizontal list|{{var|first item}}|{{var|second item}}|{{var|third item}}|{{var|...}}}}&lt;br /&gt;
&lt;br /&gt;
===All parameters===&lt;br /&gt;
&lt;br /&gt;
{{pre|&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;horizontal list&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;{{var|first item}}&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;{{var|second item}}&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;{{var|third item}}&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;...&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|class       = &amp;lt;/nowiki&amp;gt;{{var|class for div tag}}&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|style       = &amp;lt;/nowiki&amp;gt;{{var|style for div tag}}&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|list_style  = &amp;lt;/nowiki&amp;gt;{{var|style for ul tag}}&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|item_style  = &amp;lt;/nowiki&amp;gt;{{var|style for all li tags}}&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|item1_style = &amp;lt;/nowiki&amp;gt;{{var|style for first li tag}}&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|item2_style = &amp;lt;/nowiki&amp;gt;{{var|style for second li tag}}&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|&amp;lt;/nowiki&amp;gt;...&lt;br /&gt;
&amp;lt;nowiki&amp;gt;|indent      = &amp;lt;/nowiki&amp;gt;{{var|the number of tabs to indent}}&lt;br /&gt;
&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&lt;br /&gt;
{{demo&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{horizontal list|Jazz|rock|pop|rap}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|sep=produces:}}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
* Positional parameters (&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;3&amp;lt;/code&amp;gt;...): these are the list items. If no list items are present, the module will output nothing.&lt;br /&gt;
* &amp;lt;code&amp;gt;class&amp;lt;/code&amp;gt;: a custom class for the {{tag|div}} tags surrounding the list. Set to &amp;lt;code&amp;gt;inline&amp;lt;/code&amp;gt; when using {{tlf|horizontal list}} inside text.&lt;br /&gt;
* &amp;lt;code&amp;gt;style&amp;lt;/code&amp;gt;: a custom CSS style for the {{tag|div}} tags surrounding the list, e.g. &amp;lt;code&amp;gt;font-size: 90%;&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;list_style&amp;lt;/code&amp;gt;: a custom CSS style for the {{tag|ul}} tags around the list. The format is the same as for the {{para|style}} parameter.&lt;br /&gt;
* &amp;lt;code&amp;gt;item_style&amp;lt;/code&amp;gt;: a custom CSS style for all of the list items (the {{Tag|li}} tags). The format is the same as for the {{para|style}} parameter.&lt;br /&gt;
*: Avoid using the style &amp;lt;code&amp;gt;white-space:nowrap&amp;lt;/code&amp;gt; in the &amp;lt;code&amp;gt;item_style&amp;lt;/code&amp;gt; parameter, because it will have the unintended effect of avoiding line breaks anywhere in the list, instead of just inside the list item; the workaround is to move this style in the &amp;lt;code&amp;gt;list_style&amp;lt;/code&amp;gt; parameter, and then insert {{Tl|Wbr}} at the &amp;#039;&amp;#039;beginning&amp;#039;&amp;#039; of each item value, to insert an invisible word-break opportunity (and not at &amp;#039;&amp;#039;end&amp;#039;&amp;#039; of the item value, as the word-break would occur just before the trailing spaced-bullet separator).&lt;br /&gt;
* &amp;lt;code&amp;gt;item1_style&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;item2_style&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;item3_style&amp;lt;/code&amp;gt;...: custom CSS styles for each of the list items. The format is the same as for the {{para|style}} parameter.&lt;br /&gt;
* &amp;lt;code&amp;gt;indent&amp;lt;/code&amp;gt;: the number of tabs to indent the list. Default value is 0.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{{Markup&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{horizontal list|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| {{horizontal list|entry1|entry2|entry3|entry4|entry5|entry6|entry7|entry8|entry9}}&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;✘ Giant planets ({{horizontal list|[[Jupiter|J]]|[[Saturn|S]]|[[Uranus|U]]|[[Neptune|N]]}}).&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| ✘ Giant planets ({{horizontal list|[[Jupiter|J]]|[[Saturn|S]]|[[Uranus|U]]|[[Neptune|N]]}}). &amp;#039;&amp;#039;(incorrect markup)&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;✔ Giant planets ({{horizontal list|class=inline|[[Jupiter|J]]|[[Saturn|S]]|[[Uranus|U]]|[[Neptune|N]]}}).&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| ✔ Giant planets ({{horizontal list|class=inline|[[Jupiter|J]]|[[Saturn|S]]|[[Uranus|U]]|[[Neptune|N]]}}). &amp;#039;&amp;#039;(correct markup)&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{horizontal list|Winner|Runner-up|Third place|indent=2}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| {{horizontal list|Winner|Runner-up|Third place|indent=2}}&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{horizontal list|Winner|Runner-up|Third place|item_style=color:blue;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| {{horizontal list|Winner|Runner-up|Third place|item_style=color:blue;}}&lt;br /&gt;
&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{horizontal list|Winner|Runner-up|Third place|item1_style=background-color:yellow;color:black;|item2_style=background-color:silver;color:black;}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| {{horizontal list|Winner|Runner-up|Third place|item1_style=background-color:yellow;color:black;|item2_style=background-color:silver;color:black;}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Avoiding Linter errors ==&lt;br /&gt;
&lt;br /&gt;
{{tlf|Horizontal list}} will produce [[Wikipedia:Linter|Linter]] [[Special:LintErrors/misc-tidy-replacement-issues|errors]] if placed inside a template that uses {{tag|span}} tags, such as {{tl|small}}, {{tl|larger}}, etc. To avoid this, use the substitutions from the table below:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! {{no|}} {{cross}} Incorrect markup !! {{yes|}} {{tick}} Correct markup&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{small|{{horizontal list|...}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{horizontal list|...|style=font-size:85%}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{resize|{{horizontal list|...}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{horizontal list|...|style=font-size:90%}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{midsize|{{horizontal list|...}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{horizontal list|...|style=font-size:92%}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{larger|{{horizontal list|...}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{horizontal list|...|style=font-size:120%}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{big|{{horizontal list|...}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{horizontal list|...|style=font-size:120%}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{large|{{horizontal list|...}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{horizontal list|...|style=font-size:120%}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{huge|{{horizontal list|...}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{horizontal list|...|style=font-size:180%}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{resize|x%|{{horizontal list|...}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{horizontal list|...|style=font-size:x%}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{font|size=x%|{{horizontal list|...}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{horizontal list|...|style=font-size:x%}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{nowrap|{{horizontal list|...}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || Don&amp;#039;t do this, it&amp;#039;s rarely appropriate.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{navbox lists}}&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories go here, and interwikis go in Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Inline list formatting templates]]&lt;br /&gt;
[[Category:Variadic templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Izno</name></author>
	</entry>
</feed>