Template:Columns-list/doc: ke revisions ke biich ke antar
Panna jisme "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE END OF THIS PAGE --> {{Tsh|cmn|collist|col-list}} This template is intended to be used in a..." hae ke banae dewa gais hae. |
m Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html] |
||
Rekha 26: | Rekha 26: | ||
Here is an example : |
Here is an example : |
||
< |
<syntaxhighlight lang="text">{{columns-list|2| |
||
* [[George Washington]] |
* [[George Washington]] |
||
* [[John Adams]] |
* [[John Adams]] |
||
Rekha 32: | Rekha 32: | ||
* [[James Madison]] |
* [[James Madison]] |
||
* [[James Monroe]] |
* [[James Monroe]] |
||
}}</ |
}}</syntaxhighlight> |
||
which would render as |
which would render as |
||
Rekha 46: | Rekha 46: | ||
Here is another example : |
Here is another example : |
||
< |
<syntaxhighlight lang="text">{{columns-list|colwidth=15em| |
||
* [[George Washington]] |
* [[George Washington]] |
||
* [[John Adams]] |
* [[John Adams]] |
||
Rekha 52: | Rekha 52: | ||
* [[James Madison]] |
* [[James Madison]] |
||
* [[James Monroe]] |
* [[James Monroe]] |
||
}}</ |
}}</syntaxhighlight> |
||
which would render as |
which would render as |
||
Rekha 66: | Rekha 66: | ||
[[CSS]] styles can also be added after the number of columns. For example : |
[[CSS]] styles can also be added after the number of columns. For example : |
||
< |
<syntaxhighlight lang="text">{{columns-list|2|style=width: 400px; font-style: italic;| |
||
* [[All About Lily Chou-Chou]] |
* [[All About Lily Chou-Chou]] |
||
* [[April Story]] |
* [[April Story]] |
||
Rekha 77: | Rekha 77: | ||
* [[Rainbow Song]] |
* [[Rainbow Song]] |
||
* [[Swallowtail (film)|Swallowtail]] |
* [[Swallowtail (film)|Swallowtail]] |
||
}}</ |
}}</syntaxhighlight> |
||
which would render as |
which would render as |
Abhi ke badlao ii tarik tak 18:56, 22 Aprel 2020
Template:Strong for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original template page. |
This template is intended to be used in a list in the article itself, rather than in a navigation template like Template:Navbox. Based on Template:Reflist, but different in that the text to be displayed is manually created rather than a list of references.
Usage[source ke badlo]
{{columns-list|number of columns| Text (usually a list) }}
Alternatively, the width of each column may be specified using
{{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. This overrides the cols= setting.
This template uses CSS3 multiple column layout and is not supported by all Web browsers.
Template:CSS3 multiple column layout
Examples[source ke badlo]
Here is an example :
{{columns-list|2|
* [[George Washington]]
* [[John Adams]]
* [[Thomas Jefferson]]
* [[James Madison]]
* [[James Monroe]]
}}
which would render as
Here is another example :
{{columns-list|colwidth=15em|
* [[George Washington]]
* [[John Adams]]
* [[Thomas Jefferson]]
* [[James Madison]]
* [[James Monroe]]
}}
which would render as
CSS styles can also be added after the number of columns. For example :
{{columns-list|2|style=width: 400px; 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
If the number of columns is omitted, one column is used.
Redirects[source ke badlo]
- {{cmn}}
- {{collist}}
- {{col-list}}
- {{Columnslist}}
See also[source ke badlo]
Template:Column-generating template families
References[source ke badlo]