टेम्पलेट:Expand section/doc: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
imported>Xenus
+sv:
imported>Davidgothberg
Updating/reworking the doc since the template now has the small style.
लाइन 1:
{{documentation subpage}}
==Usage==
Places article in [[:Category:Articles to be expanded]] or in a dated category like [[:Category:Articles to be expanded since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}]] if date parameter ("date=") specified. Also places article in [[:Category:All articles to be expanded]]. First argument, if supplied, explains the expansion requested. Use the parameter catanyway ("catanyway=") if using outside the article namespace and you want it to be placed in default categories despite being in the wrong namespace.
 
This is the {{tl|expand-section}} message box.
===Examples===
Example:
<nowiki>{{expand-section}}</nowiki>
{{expand-section|category=}}
 
It can be placed at the top of article sections that need expansion, ''below'' the section title. It can also be used on other pages such as in "Wikipedia:" space. (Although this template currently only uses the "article message box" style, but that is a bug we are going to fix.)
Complex example:
 
This template can be used without any parameters, like this:
<code><nowiki>{{expand-section|examples and additional citations|</nowiki>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki>}}</nowiki></code>
{{Expand-section|examples and additional citations|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|category=}}
 
:{{tlc|expand-section|category=}}
==Redirects==
<!--regex (Expandsect|Expand-section|Section[ _]+expansion[ _]+request|Expandsection|Section-expand|Expand-sect|Expandsectionsmall|Expand[ _]+section|Sectexpand|Sect-expand|Sect(?:ion|)[ _-]+stub|Xstub) -->
#{{Tl|Expandsect}}
#{{Tl|Section expansion request}}
#{{Tl|Expandsection}}
#{{Tl|Section-expand}}
#{{Tl|Expand-sect}}
#{{Tl|Expandsectionsmall}}
#{{Tl|Expand section}}
#{{Tl|Sectexpand}}
#{{Tl|Sect-expand}}
#{{Tl|Section stub}}
#{{Tl|Section-stub}}
#{{Tl|Sect-stub}}
#{{Tl|Sectstub}}
#{{Tl|Xstub}}
 
<nowiki>{{expand-section}}</nowiki>
== See also ==
 
* {{[[Template:expand|expand]]}}
It can also take the current month and year as a parameter, which is used in categorising the page into a corresponding category. (See more on that below.) Like this:
 
:{{tlc|expand-section|2=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
 
{{expand-section|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
 
There are [[Wikipedia:Bot policy|bots]] that edit the pages and add the '''date''' parameter if you forget to do it. The date parameter causes no visible change in the message box itself, it only makes the page categorise properly.
 
This template can also take an unnamed parameter with an explanation of what expansion the section needs. And you can of course feed the date parameter at the same time. Like this:
 
:{{Expandtlc|expand-section|examples and additional citations|3=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|category= }}
 
<code><nowiki>{{expand-section|examples and additional citations|</nowiki>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}<nowiki> }}</nowiki></code>
 
=== Categorisation ===
 
PlacesWhen this template is used in main (article) space it places the article in [[:Category:Articles to be expanded]] or in a dated category like [[:Category:Articles to be expanded since {{CURRENTMONTHNAME}} {{CURRENTYEAR}}]] if the date parameter ("date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}") is specified. AlsoIt also places the article in [[:Category:All articles to be expanded]]. First argument, if supplied, explains the expansion requested. Use the parameter catanyway ("catanyway=") if using outside the article namespace and you want it to be placed in default categories despite being in the wrong namespace.
 
=== Redirects ===
 
The following names redirect here and can be used as alternative names for this template:
 
* {{tl|expandsect}}
#* {{Tltl|Sectionsection expansion request}}
* {{tl|expandsection}}
#* {{Tltl|Sectionsection-expand}}
#* {{Tltl|Expandexpand-sect}}
* {{tl|expandsectionsmall}}
#* {{Tltl|Expandexpand section}}
* {{tl|sectexpand}}
#* {{Tltl|Sectsect-expand}}
#* {{Tltl|Sectionsection stub}}
#* {{Tltl|Sectionsection-stub}}
#* {{Tltl|Sectsect-stub}}
* {{tl|sectstub}}
* {{tl|xstub}}
<!-- regex (Expandsect|Expand-section|Section[ _]+expansion[ _]+request|Expandsection|Section-expand|Expand-sect|Expandsectionsmall|Expand[ _]+section|Sectexpand|Sect-expand|Sect(?:ion|)[ _-]+stub|Xstub) -->
 
=== See also ===
 
* {{tl|expand}} – The corresponding box to be placed at the top of pages.
 
<includeonly>