• गृह पृष्ठ
  • कुनै पनि एक लेख हेर्नुहोस्
  • नजिकैको
  • प्रवेश गर्नुहोस्
  • मेरो अभिरुचिहरू
  • दान
  • विकिपिडियाको बारेमा
  • अस्वीकारोक्तिहरू
विकिपिडिया

ढाँचा:Plainlist

  • भाषा
  • अवलोकन
  • सम्पादन
ढाँचा कागजात[हेर्नुहोस्] [सम्पादन गर्नुहोस्] [इतिहास] [ताजा गर्नुहोस्]

This template provides a WCAG/ISO-standards-compliant accessible alternative to <br /> separated lists, per WP:UBLIST and WP:PLIST

विषयसूची

  • १ Usage
  • २ Examples
  • ३ Parameters
  • ४ Method
  • ५ Redirects
  • ६ See also

Usageसम्पादन

{{plainlist}} starts a plain (i.e. unbulleted) list, such as:

  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig

It uses proper HTML list markup, which is more standards-compliant and more accessible than separating list items with <br />. Detailed reasons for using this template can be found at WP:UBLIST.

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. Note that {{unbulleted list}} will work inside image captions, whereas {{plainlist}} does not.

Examplesसम्पादन

{{plainlist|
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
}}
  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig
Alternative syntax
{{plainlist}}
* [[cat]]
* [[dog]]
* [[horse]]
* [[cow]]
* [[sheep]]
* [[pig]]
{{endplainlist}}
  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig

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.
Example: |style=border:solid 1px silver; background:lightyellow
  • 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

Methodसम्पादन

{{Plainlist}} works by constructing a div with the CSS class "plainlist" which has the following style:

.plainlist ul {
    line-height: inherit;
    list-style: none none;
    margin: 0;
}
.plainlist ul li {
    margin-bottom: 0;
}

Redirectsसम्पादन

  • {{Startplainlist}}

See alsoसम्पादन

  • {{unbulleted list}}
  • {{flatlist}} and {{hlist}} (Replacements for comma- or dash-separated lists)
  • {{ordered list}} and {{unordered list}}
माथिको कागजात ढाँचा:Plainlist/docबाट समावेश गरिएको छ। (सम्पादन गर्नुहोस् | इतिहास)
सम्पादकहरूले यस ढाँचाको प्रयोगस्थल (सिर्जना गर्नुहोस् | नक्कल गर्नुहोस्) र परीक्षण (सिर्जना गर्नुहोस्) पृष्ठहरूमा प्रयोग गर्न सक्छन्।
/doc उपपृष्ठमा श्रेणीहरू थप्नुहोस्। यस ढाँचाका उपपृष्ठहरू।
"https://ne.wikipedia.org/w/index.php?title=ढाँचा:Plainlist&oldid=827313" बाट अनुप्रेषित
अन्तिम सम्पादन १४ जुन २०२०, १८:०२
विकिपिडिया
  • यो पृष्ठलाई अन्तिमपटक १८:०२, १४ जुन २०२० मा परिवर्तन गरिएको थियो।
  • सामाग्री CC BY-SA 3.0 अनुसार उपलब्ध छ, खुलाइएको अवस्था बाहेकको हकमा।
  • गोपनियता नीति
  • विकिपिडियाको बारेमा
  • अस्वीकारोक्तिहरू
  • प्रयोगका शर्तहरू
  • डेस्कटप
  • विकासकर्ताहरू
  • तथ्याङ्कहरू
  • स्मृतिशेष विवरण