ފަންވަތް:Plainlist/doc: Difference between revisions

Content deleted Content added
Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> {{#ifeq:{{FULLPAGENAME}} | Template:Plainlist | {{high-use|93,000+}} }} This template prov..."
 
m Bot: Replace deprecated <source> tag and "enclose" parameter; cosmetic changes
 
ފޮޅުވަތް 5:
This template provides a [[Web Content Accessibility Guidelines|WCAG]]/ISO-standards-compliant accessible alternative to <code><nowiki><br /></nowiki></code> separated lists, per [[WP:UBLIST]] and [[WP:PLIST]]
 
== Usage ==
{{tl|plainlist}} starts a plain (i.e. unbulleted) list, such as:
 
ފޮޅުވަތް 21:
This template can be used with or without {{tl|endplainlist}}. It is an alternative to {{tl|unbulleted list}}, which performs the same function in a more concise but less wiki-style manner. Note that {{tl|unbulleted list}} will work inside image captions, whereas {{tl|plainlist}} does not.
 
== Examples ==
<pre><nowiki>
{{plainlist|
ފޮޅުވަތް 42:
}}
 
=== Alternative syntax: ===
<pre><nowiki>
{{plainlist}}
ފޮޅުވަތް 63:
{{endplainlist}}
 
== Parameters ==
* '''class''' – adds a CSS class to the containing div.
* '''style''' – adds CSS style options. Complex styles should not be used in articles (per [[wp:deviations]]) but may be acceptable on user, project, and talk pages.
ފޮޅުވަތް 70:
::Example: {{para|<var>indent</var>|<var>2</var>}}
 
== Technical details ==
{{tl|Plainlist}} works by constructing a div with the CSS class "plainlist" which has the following style:
<sourcesyntaxhighlight lang="css">
.plainlist ul {
line-height: inherit;
ފޮޅުވަތް 81:
margin-bottom: 0;
}
</syntaxhighlight>
</source>
 
== Redirects ==
* {{tl|Startplainlist}}
 
== See also ==
* {{tl|unbulleted list}}
* {{tl|flatlist}} and {{tl|hlist}} (Replacements for comma- or dash-separated lists)
ފޮޅުވަތް 93:
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Categoryޤިސްމު:Typing-aid templates|Plainlist]]
[[Categoryޤިސްމު:List formatting and function templates|Plainlist]]
}}</includeonly>