Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Use  



1.1  Examples  







2 Error messages  





3 Redirects  





4 Tracking category  





5 See also  



5.1  Column-generating template families  
















Template:Columns-list






Acèh
Afrikaans
Alemannisch
Anarâškielâ
Ænglisc
العربية
Arpetan

Asturianu
Авар
Azərbaycanca
تۆرکجه
Basa Bali

Banjar
 / Bân-lâm-gú
Беларуская

Bikol Central
Български
Boarisch
Bosanski
Буряад
Català
Čeština
Corsu
Cymraeg
Dagbanli
Dansk
الدارجة
Deutsch
ދިވެހިބަސް
Eesti
Ελληνικά
Español
Esperanto
Euskara
فارسی
Fiji Hindi
Føroyskt
Français
Frysk
Gaelg
Gàidhlig
Galego

  / Gõychi Konknni
/Hak-kâ-ngî

Hausa
Հայերեն
ि
Hrvatski
Ilokano
Bahasa Indonesia
Interlingua
Ирон
Íslenska
Jawa

Kapampangan

Қазақша
Kongo
Kreyòl ayisyen
Kurdî
Кыргызча
Ladin

Latviešu
Magyar
ि
Македонски


مصرى

مازِرونی
Bahasa Melayu
 / Mìng-dĕ̤ng-nḡ
Мокшень
Монгол

Nederlands
Nedersaksies

 

Нохчийн
Nordfriisk
Norsk bokmål
Norsk nynorsk
ି
Oʻzbekcha / ўзбекча

پنجابی
Papiamentu
پښتو

Plattdüütsch
Português
Qaraqalpaqsha
Română
Русский

سرائیکی
Scots

Simple English
سنڌي
Slovenčina
Slovenščina
Soomaaliga
کوردی
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Svenska
Tagalog
ி
Taqbaylit
Татарча / tatarça
 



Тоҷикӣ
Tsetsêhestâhese

Türkçe
Українська
اردو
Vahcuengh
Tiếng Vit
Winaray
Yorùbá

Zazaki

 
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
Meta-Wiki
Wikibooks
Wikidata
Wikifunctions
Wikisource
Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 

(Redirected from Template:Cmn)

  • {{collist}}
  • {{col-list}}
  • Template:Columns-list turns a list into a list with columns. It is a wrapper for {{div col}}, except it wraps the template by allowing for the content to be in the template rather than above and below.

    Use

    The width of each column may be specified using |colwidth= and a value in ems.

    {{columns-list|colwidth=width|
    Text (usually a list)
    }}
    

    Here, width specifies the width of the columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays.

    If|colwidth= is not specified, the default width of 30em will be used.

    This template uses CSS3 multiple-column layout, which is not supported by all web browsers.

    CSS3 multiple-column layout browser support
    Property Internet
    Explorer
    Firefox Safari Chrome Opera
    column-width
    column-count
    ≥ 10
    (2012)
    ≥ 1.5
    (2005)
    ≥ 3
    (2007)
    ≥ 1
    (2008)
    ≥ 11.1
    (2011)
    columns ≥ 10
    (2012)
    ≥ 9
    (2011)
    ≥ 3
    (2007)
    ≥ 1
    (2008)
    ≥ 11.1
    (2011)
    break-before
    break-after
    break-inside
    ≥ 10
    (2012)
    ≥ 65
    (2019)
    ≥ 10
    (2016)
    ≥ 65
    (2016)
    ≥ 15
    (2013)
  • t
  • e
  • Examples

    Here is an example:

    {{columns-list|colwidth=35em|
    * [[George Washington]]
    * [[John Adams]]
    * [[Thomas Jefferson]]
    * [[James Madison]]
    * [[James Monroe]]
    }}
    

    which would render as:

  • John Adams
  • Thomas Jefferson
  • James Madison
  • James Monroe
  • HTML classes and CSS styles can also be added with the |class= and |style= parameters. For example:

    {{columns-list|colwidth=15em|style=width: 600px; font-style: italic;|
    * [[All About Lily Chou-Chou]]
    * [[April Story]]
    * [[Hana and Alice|Hana & Alice]]
    * [[Hōtai Club]]
    * [[The Kon Ichikawa Story]]
    * [[Love Letter (1995 film)|Love Letter]]
    * [[New York, I Love You]]
    * [[Picnic (1996 film)|Picnic]]
    * [[Rainbow Song]]
    * [[Swallowtail (film)|Swallowtail]]
    }}
    

    which would render as:

  • April Story
  • Hana & Alice
  • Hōtai Club
  • The Kon Ichikawa Story
  • Love Letter
  • New York, I Love You
  • Picnic
  • Rainbow Song
  • Swallowtail
  • This template also works with numbered lists as its "text". For example:

    {{columns-list|colwidth=35em|
    # [[George Washington]]
    # [[John Adams]]
    # [[Thomas Jefferson]]
    # [[James Madison]]
    # [[James Monroe]]
    }}
    
  • John Adams
  • Thomas Jefferson
  • James Madison
  • James Monroe
  • The template, in fact, works with everything since all it does is wrap the text provided around a block to be divided into columns by CSS. Do not stop at wikitext lists – more advanced lists generated by the HTML templates will work too!

    Error messages

    Use of the no-longer-supported parameter |cols=, or use of the first unnamed parameter (aka |1=) along with |2= or a second unnamed parameter for the template's content, will generate a red error message. To fix this error, use |colwidth= instead of attempting to specify the number of columns.

    The presence of an equals sign within the template's content can also cause display problems and red error messages. To fix this problem, add |1= in front of the template's content.

    Redirects

    Tracking category

    See also

    Column-generating template families

    The templates listed here are not interchangeable. For example, using {{col-float}} with {{col-end}} instead of {{col-float-end}} would leave a <div>...</div> open, potentially harming any subsequent formatting.

    Column templates
    Type Family

    Handles wiki
    table code?

    Responsive/
    mobile suited
    Start template Column divider End template
    Float "col-float" Yes Yes {{col-float}} {{col-float-break}} {{col-float-end}}
    "columns-start" Yes Yes {{columns-start}} {{column}} {{columns-end}}
    Columns "div col" Yes Yes {{div col}} {{div col end}}
    "columns-list" No Yes {{columns-list}} (wraps div col)
    Flexbox "flex columns" No Yes {{flex columns}}
    Table "col" Yes No {{col-begin}},
    {{col-begin-fixed}}or
    {{col-begin-small}}
    {{col-break}}or
    {{col-2}} .. {{col-5}}
    {{col-end}}

    Can template handle the basic wiki markup {| | || |- |} used to create tables? If not, special templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}})—or HTML tags (<table>...</table>, <tr>...</tr>, etc.)—need to be used instead.


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Columns-list&oldid=1191198211"

    Categories: 
    Lua-based templates
    Multi-column templates
    List formatting and function templates
    Hidden categories: 
    Wikipedia template-protected templates
    Navigational boxes without horizontal lists
    Templates that add a tracking category
     



    This page was last edited on 22 December 2023, at 03:07 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki