ފަންވަތް:Columns-list/doc: Difference between revisions

Content deleted Content added
Created page with "{{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 list in the article i..."
 
m Bot: Replace deprecated <source> tag and "enclose" parameter; cosmetic changes
 
ފޮޅުވަތް 4:
{{Tsh|cmn|collist|col-list}}
 
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 ==
ފޮޅުވަތް 26:
Here is an example :
 
<sourcesyntaxhighlight lang="text">{{columns-list|2|
* [[George Washington]]
* [[John Adams]]
ފޮޅުވަތް 32:
* [[James Madison]]
* [[James Monroe]]
}}</sourcesyntaxhighlight>
 
which would render as
ފޮޅުވަތް 46:
Here is another example :
 
<sourcesyntaxhighlight lang="text">{{columns-list|colwidth=15em|
* [[George Washington]]
* [[John Adams]]
ފޮޅުވަތް 52:
* [[James Madison]]
* [[James Monroe]]
}}</sourcesyntaxhighlight>
 
which would render as
ފޮޅުވަތް 66:
[[CSS]] styles can also be added after the number of columns. For example :
 
<sourcesyntaxhighlight lang="text">{{columns-list|2|style=width: 400px; font-style: italic;|
* [[All About Lily Chou-Chou]]
* [[April Story]]
ފޮޅުވަތް 77:
* [[Rainbow Song]]
* [[Swallowtail (film)|Swallowtail]]
}}</sourcesyntaxhighlight>
 
which would render as
ފޮޅުވަތް 111:
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Categoryޤިސްމު:Table and column templates]]
 
}}