الگو:Indented plainlist/توضیحات

از ویکی‌پدیا، دانشنامهٔ آزاد

This template is very similar to {{plainlist}}, except that it automatically indents parts of long items that are wrapped onto a new line. This makes it easier to tell apart multiple such items when width is limited—e.g. in an {{infobox}}—and eliminates the need for a bulleted list.

{{Indented plainlist}} provides a خط‌مشی‌های دسترس‌پذیری محتوای وب-compliant and accessible alternative to <br />-separated lists, per ویکی‌پدیا:شیوه‌نامه/فهرست‌ها and ویکی‌پدیا:شیوه‌نامه/دسترسی‌پذیری.

Usage[ویرایش]

Example
First labelSome data
Awards
Second labelSome more data
{{Infobox
 |label1    = Some data
 |awards    = {{Indented plainlist|
* [[Royal Geographical Society's Founder's Medal]] (1888)
* [[نشان حمام]] (1896)
* [[لژیون دونور]] (1899)
  }}
 |label2    = Some more data
}}

Custom indentation[ویرایش]

Example
First labelSome data
Awards
Second labelSome more data
{{Infobox
 |label1    = Some data
 |awards    = {{Indented plainlist|indent=2em|
* [[Royal Geographical Society's Founder's Medal]] (1888)
* [[نشان حمام]] (1896)
* [[لژیون دونور]] (1899)
  }}
 |label2    = Some more data
}}

TemplateData[ویرایش]

گزارش خطای ماهیانه برای این الگو را ببینید.

الگوداده Indented plainlist

An automatically indented plainlist variant.

پارامترهای الگو

پارامترتوضیحاتنوعوضعیت
Content1

If supplied, the list, as a normal bulleted list. Every line should start with an asterisk. No blank lines between lines.

محتواضروری
Classclass

Adds a CSS class to the containing div.

پیش‌فرض
The class "plainlist" is always applied.
مثال
nowrap
رشتهاختیاری
Stylestyle

Adds CSS style options. Complex styles should not be used in articles—per [[ویکی‌پدیا:شیوه‌نامه/دسترسی‌پذیری]]—but may be acceptable on user, project, and talk pages.

مثال
border:solid 1px silver; background:lightyellow;
رشتهاختیاری
Indentationin indent

Sets a custom indentation width for the lists' items.

پیش‌فرض
1em
رشتهاختیاری

See also[ویرایش]