ઢાંચો:Expand section/doc: આવૃત્તિઓ વચ્ચેનો તફાવત
Content deleted Content added
KartikMistry (ચર્ચા | યોગદાન) નાનું en:Template:Expand_section/doc માંથી આયાત કરેલ ૪૦ પુનરાવર્તનો |
→TemplateData: add |
||
લીટી ૧:
{{documentation subpage}}
{{high-use|
== Usage ==
Place this template at the beginning of article sections that need expansion, ''after'' that section's title. You can use this template in the Main/Article or Wikipedia namespaces.
{{As of |2016|August}}, this template only uses the "article message box"
Recommended use is with a talk page link explaining what is needed and ''especially any justification for your judgement''.
Line ૧૭ ⟶ ૧૨:
<pre>
|
|
| small = no (default is "yes")
| talksection = (
| date = Month YYYY
| period = <!--no--> (included after the input for "1=" from above by default - use this only in instances where terminal punctuation should be placed before a reference)
}}
</pre>
<pre>{{
===Parameters===
This template may be used without parameters, and a BOT will add the date when necessary.
;date=
:The current month and year can be used in the {{para|date}} parameter. This will add the page to a sub-category sorted by date used (see the [[#Categorisation|Categorisation]] section of this page for more information:
▲{{Expand section}}
:{{Tlx|Expand section|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
:or
:{{Tlx|Expand section|<nowiki>{{subst:DATE}}</nowiki>}}
:results in:
{{Expand section|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}
;section=
:The {{para|section}} parameter is used to link to the edit screen of the article's section in which this template is placed. If this template is placed in the second section after the TOC, then use {{para|section|2}}:
:{{Tlx|Expand section|section{{=}}2|<nowiki>{{subst:DATE}}</nowiki>}}▼
:results in:
:{{Tlx|Expand section|1{{=}}examples and additional citations|3=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}} }}▼
{{Expand section|
:and links to the edit screen for the ''second section'' of the page ''after the TOC''.
▲|<nowiki>{{subst:DATE}}</nowiki>}}
;1=, with=, or for=
:An unnamed parameter, {{para|1}} (or one of the named parameters, {{para|with}} or {{para|for}}), may be used to explain what expansion is needed in the section:
▲:{{Tlx|Expand section|1{{=}}examples and additional citations|
:results in:
{{Expand section|1=examples and additional citations|section=1|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|talksection=Template talk:Expand section#When should this template be used? }}
:When multiple expansion issues need to be raised, explain them in a new section on the article's [[WP:Talk page|discussion page]], and use the next two parameters for reader convenience.
;small= and talksection=
:The default for the {{para|small}} parameter is "yes", which means that if this parameter is omitted, then the size of the tag will default to the sizes shown above. Use {{para|small|no}} to result in a larger section tag and to enable the {{para|talksection}} parameter ({{para|talk}} or {{para|discuss}} may also be used):
:{{Tlx|Expand section|1{{=}}examples and additional citations|section{{=}}1|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}|small{{=}}no|talksection{{=}}Template talk:Expand section#When should this template be used?}}
:results in:
:{{Expand section|1=examples and additional citations|section=1|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|small=no|talksection=Template talk:Expand section#When should this template be used?}}
== Categorisation ==
When {{Tlx|Expand section}} is used without a
No matter what parameters
== Choosing the right template ==
Line ૮૦ ⟶ ૮૭:
=== For an empty section ===
If the section is completely empty,
The exception would be an empty section used for references
=== For a References or Notes section ===
When the section
'''Note:''' Unlike the other templates mentioned,
In the
If the article has a section that contains either {{Tlx|Reflist}} or <code><nowiki><references /></nowiki></code>, ''the section can still appear blank'' on the saved, rendered page if the article has no text within <code><nowiki><ref></ref></nowiki></code> tags. Such a section is still considered blank, even though the template or tag wikitext can be seen in Edit mode
== TemplateData ==
{{TemplateData header}}
<!-- Why no "reason" here for the param "reason"? This is very confusing. At the beginning, an example with "reason =" is given. --><templatedata>
{
Line ૧૦૮ ⟶ ૧૧૫:
"with",
"for"
]
},
"period": {
"label": "Terminal punctuation",
"description": "If set to 'no', this parameter omits the terminal punctuation after the input for the 'with'/'for' parameter (i.e., the reason the template was added); this is normally only used if references are included after terminal punctuation.",
"type": "boolean",
"required": false,
"example": "no",
"default": "yes",
"autovalue": "",
"aliases": [
"punctuation"
]
},
Line ૧૩૬ ⟶ ૧૫૫:
"default": "yes",
"autovalue": ""
},
"section": {
"description": "Section number of the section with the template",
"type": "number"
}
},
Line ૧૪૩ ⟶ ૧૬૬:
== See also ==
* {{tlx|Clarify}} and {{tlx|
* {{tlx|
* {{tlx|Empty section}}
* {{tlx|Missing information}}
<includeonly>{{Sandbox other||
[[Category:Cleanup templates|{{PAGENAME}}]]
Line ૧૫૫ ⟶ ૧૭૭:
[[Category:Wikipedia section templates]]
}}</includeonly>
|