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

विकिपीडिया से
Content deleted Content added
Add space per editprotected on talk by Penubag, using nowiki tags because the space needed is within a ParserFunction (which would strip leading spaces otherwise).
imported>Davidgothberg
Making it a small left-aligned box per requests and discussion on the talk page and the Village pump. Simplifying the category namespace-code, and removing the broken "catanyway" parameter.
लाइन 1: लाइन 1:
<table class="metadata plainlinks ambox ambox-notice ambox-small-left" style="margin: 4px 1em 4px 0; width: 238px; border-collapse: collapse; font-size: 88%; line-height: 1.25em;">
<!-- {{expand-section}} start -->{{ambox
<td class="mbox-image"> [[Image:Wiki letter w.svg|20px]] </td>
|type=notice
<td class="mbox-text"> This section requires [{{fullurl:{{FULLPAGENAME}}|action=edit}} expansion]{{
|image=[[Image:Wiki letter w.svg|36px]]
#if:{{{1|}}}
|text = '''Please help [{{fullurl:{{FULLPAGENAME}}|action=edit}} improve this section] by expanding it{{#if:{{{1|}}}|<nowiki> </nowiki>with:<br/>{{{1}}}}}.''' Further information might be found on the [[{{TALKPAGENAME}}|talk page]]. <small>{{#if:{{{date|}}}|''({{{date}}})''}}</small>
| <nowiki> </nowiki>with: <br> {{{1}}}
}}<includeonly>{{#switch:{{NAMESPACE}}|
}}. </td>
<!-- To add more namespaces, do this e.g.:
</tr>
{{ns:1}}|
</table>{{main other
to add article talk space. Use namespace numbers-->
{{ns:0}}=
| {{#if:{{{date|}}}
{{#if:{{{date|}}}|{{{category|[[Category:Articles to be expanded since {{{date}}}]]}}}|{{{category|[[Category:Articles to be expanded]]}}}}}{{{category|[[Category:All articles to be expanded]]}}}
| [[Category:Articles to be expanded since {{{date}}}]]
| [[Category:Articles to be expanded]]
}}[[Category:All articles to be expanded]]
| <!-- Don't categorise when not in main (article) space. -->
| #default={{ns:0}}<!-- if outside accepted range of namespaces, do nothing-->}}<!--
}}<!--
-->{{#if:{{{catanyway|}}}|
Detect and report any usage of the "catanyway" parameter.
{{#if:{{{date|}}}|{{{category|[[Category:Articles to be expanded since {{{date}}}]]}}}|{{{category|[[Category:Articles to be expanded]]}}}}}{{{category|[[Category:All articles to be expanded]]}}}
Also detects empty but defined "catanyway=" feeding:
<!-- allow people to override previous ns checker-->}}</includeonly><!-- end {{expand-section}} --><noinclude>
-->{{#ifeq:{{{catanyway|x}}}|{{{catanyway|}}}
| [[Category:Wikipedia expand-section box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| <!-- No "catanyway" parameter fed. -->
}}<noinclude>

{{pp-template|small=yes}}
{{pp-template|small=yes}}
{{documentation}}
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

22:51, 10 मार्च 2009 तक ले भइल बदलाव

This is the {{Expand section}} message box.

It can be placed at the beginning of article sections that need expansion, after the section title. It can also be used on other pages such as in "Wikipedia:" space. (This template currently only uses the "article message box" style, but that is a bug we are going to fix.)

This template can be used without any parameters, like this:

{{Expand section}}

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 further.) Like this:

{{Expand section|date=मार्च 2024}}

or

{{Expand section|{{subst:DATE}}}}

There are 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 a |1= (a.k.a. |with= or |for=) 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:

{{Expand section|1=examples and additional citations|date=मार्च 2024}}

When multiple expansion issues need to be raised, a bullet list can be made:

{{Expand section|1=<nowiki />
* Career from 1952 to 1960
* Final days after 1972 retirement
|{{subst:DATE}}}}

(The <nowiki /> is required or the first item may not display correctly.) If this list were longer than three items, it would probably be better raised on the talk page.

Categorisation

When 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 from मार्च 2024 if the date parameter "date=मार्च 2024" is specified. It also places the article in Category:All articles to be expanded.

Usage

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for Expand section

Can be placed at the beginning of article sections that need expansion, after the section title.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
reason1 with for

Reason the template was added, an explanation of what expansion the section needs. A bulleted list with lines beginning '*' can be given.

Stringoptional
talksectiontalksection discuss talk

A section heading in the talk page where the issue is discussed. Note: The talksection parameter only displays if the parameter small is set to 'no'.

Stringoptional
datedate

The month and year the template was added, e.g. 'August 2013'.

Stringoptional
smallsmall

By default the template will be displayed in a small size. This can be changed by setting small to no. Not recommended in articles.

Stringoptional

इहो देखल जाय