Difference between revisions of "Template:Plainlist"

From Recidemia English
Jump to: navigation, search
 
m (Protected Template:Plainlist: Highly visible template ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
Line 1: Line 1:
<table style="width:{{{width|400px}}};margin:{{{margin|{{{0 1em 1em 1em}}}}}};background:{{{background|white}}};color:{{{cfc|black}}};text-align:{{{chta|left}}};font-family:{{{cff|Arial}}};font-size:{{{cfs|10pt}}};;line-height:{{{clh|1.5em}}};border:{{{border|1px solid black}}};" align={{{align|left}}}>
+
<div class="plainlist {{{class|}}}" style="margin-left: {{#expr:{{{indent|0}}}*1.6}}em; {{{style|}}}">{{#if:{{{1|}}}|
<tr>
+
{{{1}}}
<th>{{{heading|&nbsp;}}}</th>
+
</div>}}<noinclude></div>
</tr><tr>
+
{{documentation}}
<td style="padding:{{{padding|10px}}}">{{{content|{{{1}}}}}}</td>
 
</tr>
 
</table>
 
<noinclude>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
==Use, Limitations and Options==
 
The name of the template is '''Plainlist'''.  It is a text box.
 
There are several options, and an example of its use is:
 
 
 
'''<nowiki>{{plainlist|align=center|width=350px|chta=justify|background=lightyellow|heading=Figure 3. Textbox Sample with Justified Text. |'''The following is a test block.'''<br>{{lorem ipsum}}}}</nowiki>'''
 
 
 
 
 
 
 
{{plainlist|align=center|width=350px|chta=justify|background=lightyellow|heading=Figure 3. Textbox Sample with Justified Text. |'''The following is a test block.'''<br>{{lorem ipsum}}}}
 
 
 
 
 
 
 
 
 
The box can be positioned on the left, right, or center. 
 
 
 
 
 
 
 
===Options===
 
----
 
====Borders and Background====
 
----
 
;border: box border (default:1px solid lightgray)
 
;background: background color (default: white)
 
----
 
====Position and Width====
 
----
 
;align: box position on the page (default:left) (left,right,center)
 
;width: width of the box (default:400px)
 
;margin: outside margin (top right bottom left), (default 0 1em 1em 1em)
 
----
 
====Padding and Alignment====
 
----
 
;padding: text padding (default:10px)
 
;chta: content horizontal text alignment (default:left) (left, right, justify)
 
;clh: content line height (default:1.5em)
 
----
 
====Fonts and Text====
 
----
 
;cfc: content font color (default:black)
 
;cff: content font family (default:Arial)
 
;cfs: content font size (default:10pt)
 
----
 
====Heading====
 
----
 
;heading: above the box table-style heading (default:blank) (position:fixed center)
 
 
 
[[Category:Text formatting templates|{{PAGENAME}}]]
 
 
</noinclude>
 
</noinclude>

Revision as of 10:58, 24 December 2011

[edit] [history] [purge] Documentation icon Template documentation

Usage

{{Plainlist}} starts a plain, or unbulleted, list, such as:

 


It uses proper HTML list markup, which is more standards-compliant and more accessible then separating list items with <br />.

This template can be used with or without {{endplainlist}}. It is an alternative to {{Unbulleted list}}, which performs the same function in a more concise but less wiki-style manner.

Examples

{{Plainlist |
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
}}
 


Alternative syntax
{{Plainlist}}
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
{{endplainlist}}
 
{{{1}}}

Parameters

  • indent – indents the list by a number of standard indents (one indent being 1.6em), particularly handy for inclusion in an indented discussion thread.
Example: |indent=2
  • 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.
Example: |style=border:solid 1px silver; background:lightyellow

See also

fa:الگو:فهرست ساده