Template:Endflatlist
![]() | This template is used on 80,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages, or in your own user subpage. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
This template provides a WCAG/ISO-standards-compliant accessible alternative to comma- or dash- (or other single character-) separated lists, per WP:FLATLIST and WP:HLIST.
Usage
{{flatlist}} starts a horizontal list, such as:
This template can be used with or without {{endflatlist}}. For navigation boxes using {{navbox}}, one can set |listclass=hlist
, and achieve the same styling without using this template. For image captions, list (i.e. asterisk) markup does not work, so consider using {{hlist}} instead.
Examples
{{flatlist| * [[cat]] * [[dog]] * [[horse]] * [[cow]] * [[sheep]] * [[pig]] }}
produces:
Alternative syntax
{{startflatlist}} * [[cat]] * [[dog]] * [[horse]] * [[cow]] * [[sheep]] * [[pig]] {{endflatlist}}
produces:
Syntax for ordered lists
{{flatlist| # [[first]] # [[second]] # [[third]] # [[fourth]] # [[fifth]] # [[sixth]] }}
produces:
Parameters
- class adds a CSS class to the containing div. Use nowraplinks to prevent links from wrapping.
- style adds CSS styling to the containing div. Complex styles should not be used in articles (per WP:Deviations) but may be acceptable on user, project and talk pages.
- Example:
|style=border:solid 1px silver; background:lightyellow
- Example:
- indent indents the list by a number of standard indents, one indent being 1.6em. (Useful in an indented discussion thread.)
- Example:
|indent=2
- Example:
Technical details
This template uses the .hlist
CSS class defined in Common.css to generate horizontal lists. It causes ordinary html list items to be displayed inline (horizontally), where they would normally display as block elements (vertically). The class also generates the interpuncts between list items and parentheses around nested lists. Some of the CSS used is not compatible with all browsers, notably Internet Explorer 6 and 7.
Redirects
- {{Startflatlist}}
See also
- {{hlist}}
- {{plainlist}} and {{unbulleted list}}
- {{ordered list}} and {{unordered list}}
- {{multi-column numbered list}}
- {{nowrap}}
- {{pagelist}}
- WP:HLIST
The above documentation is transcluded from Template:Flatlist/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |
Debug data:
[SQLBagOStuff] MainObjectStash using store ReplicatedBagOStuff
[objectcache] MainWANObjectCache using store EmptyBagOStuff
IP: 3.147.81.54
Start request GET /mediawiki/Template:Endflatlist
HTTP HEADERS:
CONTENT-TYPE:
CONTENT-LENGTH: 0
X-ORIGINAL-URL: /mediawiki/Template:Endflatlist
USER-AGENT: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HOST: zero-k.info
ACCEPT-ENCODING: gzip, br, zstd, deflate
ACCEPT: */*
CONNECTION: close[localisation] LocalisationCache: using store LCStoreDB
[session] SessionManager using store SqlBagOStuff
[DBReplication] Cannot use ChronologyProtector with EmptyBagOStuff
[DBReplication] Wikimedia\Rdbms\LBFactory::getChronologyProtector: request info {
"IPAddress": "3.147.81.54",
"UserAgent": "Mozilla\/5.0 AppleWebKit\/537.36 (KHTML, like Gecko; compatible; ClaudeBot\/1.0; +claudebot@anthropic.com)",
"ChronologyProtection": false,
"ChronologyPositionIndex": 0,
"ChronologyClientId": false
}[DBConnection] Wikimedia\Rdbms\LoadBalancer::lazyLoadReplicationPositions: executed chronology callback.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[session] SessionBackend "e8b2oaijahbn1bej41ta23ktsvnp842r" is unsaved, marking dirty in constructor
[session] SessionBackend "e8b2oaijahbn1bej41ta23ktsvnp842r" save: dataDirty=1 metaDirty=1 forcePersist=0
[cookie] already deleted setcookie: "wikidb229_mw__session", "", "1712491779", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_UserID", "", "1712491779", "/", "", "", "1"
[cookie] already deleted setcookie: "wikidb229_mw_Token", "", "1712491779", "/", "", "", "1"
[cookie] already deleted setcookie: "forceHTTPS", "", "1712491779", "/", "", "", "1"
[DBConnection] Wikimedia\Rdbms\LoadBalancer::getLocalConnection: connected to database 0 at 'localhost'.
Title::getRestrictionTypes: applicable restrictions to [[Template:Endflatlist]] are {edit,move}
[ContentHandler] Created handler for wikitext: WikitextContentHandler
[MessageCache] MessageCache using store SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for wikidb229-mw_:messages:en.
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database
ParserFactory: using preprocessor: Preprocessor_Hash
Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct
[caches] parser: SqlBagOStuff
Article::view using parser cache: yes
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
Article::view: doing uncached parse
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[ContentHandler] Created handler for Scribunto: ScribuntoContentHandler
[Scribunto] Scribunto_LuaStandaloneInterpreter::__construct: creating interpreter: ""C:\Projekty\zero-k.info\www\mediawiki\extensions\Scribunto\includes\engines\LuaStandalone/binaries/lua5_1_5_Win64_bin/lua5.1.exe" "C:\Projekty\zero-k.info\www\mediawiki\extensions\Scribunto\includes\engines\LuaStandalone/mw_main.lua" "C:\Projekty\zero-k.info\www\mediawiki\extensions\Scribunto\includes" "0" "8""
[gitinfo] Candidate cacheFile=C:\Projekty\zero-k.info\www\mediawiki/gitinfo.json for C:\Projekty\zero-k.info\www\mediawiki
[gitinfo] Cache incomplete for C:\Projekty\zero-k.info\www\mediawiki
SiteStats::loadAndLazyInit: reading site_stats from replica DB
Title::getRestrictionTypes: applicable restrictions to [[Template:Endflatlist]] are {edit,move}
[Preprocessor] Cached preprocessor output (key: wikidb229-mw_:preprocess-hash:ce8e4905c8f5cc7b1497ffeb1cdd2f5a:1)
[Preprocessor] Cached preprocessor output (key: wikidb229-mw_:preprocess-hash:c10324ec7a27367fa94d31cee1954574:1)
[Preprocessor] Cached preprocessor output (key: wikidb229-mw_:preprocess-hash:274fae9df5d5efb60385015986a0efeb:1)
[Parser] Parser::setOutputFlag: set vary-revision-sha1 flag on 'Template:Endflatlist'; Self transclusion
[Mime] MimeAnalyzer::loadFiles: loading mime types from C:\Projekty\zero-k.info\www\mediawiki\includes/libs/mime/mime.types
[Mime] MimeAnalyzer::loadFiles: loading mime info from C:\Projekty\zero-k.info\www\mediawiki\includes/libs/mime/mime.info
File::transform: Doing stat for mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/50px-Test_Template_Info-Icon_-_Version_(2).png
TransformationalImageHandler::doTransform: creating 50x22 thumbnail at mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/50px-Test_Template_Info-Icon_-_Version_(2).png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
File::transform: Doing stat for mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/75px-Test_Template_Info-Icon_-_Version_(2).png
TransformationalImageHandler::doTransform: creating 75x33 thumbnail at mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/75px-Test_Template_Info-Icon_-_Version_(2).png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
File::transform: Doing stat for mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/100px-Test_Template_Info-Icon_-_Version_(2).png
TransformationalImageHandler::doTransform: creating 100x45 thumbnail at mwstore://local-backend/local-thumb/b/be/Test_Template_Info-Icon_-_Version_(2).png/100px-Test_Template_Info-Icon_-_Version_(2).png using scaler im
TransformationalImageHandler::doTransform: Transforming later per flags.
File::transform: Doing stat for mwstore://local-backend/local-thumb/5/5f/Ambox_warning_orange.svg/40px-Ambox_warning_orange.svg.png
File::transform: Doing stat for mwstore://local-backend/local-thumb/5/5f/Ambox_warning_orange.svg/60px-Ambox_warning_orange.svg.png
File::transform: Doing stat for mwstore://local-backend/local-thumb/5/5f/Ambox_warning_orange.svg/80px-Ambox_warning_orange.svg.png
Saved in parser cache with key wikidb229-mw_:pcache:idhash:189-0!canonical and timestamp 20250407120939 and revision id 504
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #127 (handle id #121) will be used for SqlBagOStuff
MediaWiki::preOutputCommit: primary transaction round committed
MediaWiki::preOutputCommit: pre-send deferred updates completed
MediaWiki::preOutputCommit: session changes committed
MediaWiki::preOutputCommit: LBFactory shutdown completed
Title::getRestrictionTypes: applicable restrictions to [[Template:Endflatlist]] are {edit,move}