Template:Expand/doc

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(clean up doc text)
(still tweaking text)
Line 1: Line 1:
<big>'''Function'''</big>
<big>'''Function'''</big>
----
----
-
The Expand template lets you quickly label an article as one needing to be expanded. You can add optional variables 1 and 2 to over ride the default width and left margin. Expand also add the article to Category:Articles that need to be expanded.
+
'''<nowiki>{{Template:Expand}}</nowiki>''' lets you quickly label an article as one needing to be expanded.
 +
 
 +
'''<nowiki>{{Template:Expand|width|leftmargin}}</nowiki>''' is the format for the optional variables 1 and 2. The default values are width = 80% and leftmargin=10%. Expand also adds the article to Category:Articles that need to be expanded. Articles tagged with this template are automatically added to [[:Category:Articles that need to be expanded]].
<big>'''Examples'''</big>
<big>'''Examples'''</big>
Line 7: Line 9:
;If you use <nowiki>{{Template:Expand}}</nowiki> without any parameters:
;If you use <nowiki>{{Template:Expand}}</nowiki> without any parameters:
<nowiki>{{Template:Expand}}</nowiki>
<nowiki>{{Template:Expand}}</nowiki>
-
you get:
+
which gives:
{{Template:Expand}}
{{Template:Expand}}
-
<br>
 
-
;The '''"width"''' and ''"leftmargin"''' parameters that can be added:
 
-
<nowiki>{{Template:Expand|width|leftmargin}}</nowiki>
 
-
The deafult values for these fields are: width = 80% and leftmargin=10%
 
<br>
<br>
;To automatically set the width to the minimum width needed:
;To automatically set the width to the minimum width needed:

Revision as of 09:54, October 20, 2008

Function


{{Template:Expand}} lets you quickly label an article as one needing to be expanded.

{{Template:Expand|width|leftmargin}} is the format for the optional variables 1 and 2. The default values are width = 80% and leftmargin=10%. Expand also adds the article to Category:Articles that need to be expanded. Articles tagged with this template are automatically added to Category:Articles that need to be expanded.

Examples


If you use {{Template:Expand}} without any parameters
{{Template:Expand}}

which gives:

Please help improve this article by expanding it.
Further information might be found on the talk page.


To automatically set the width to the minimum width needed
{{Template:Expand|auto}}

which gives:

Please help improve this article by expanding it.
Further information might be found on the talk page.


To change the left margin to 5% and use auto width
{{Template:Expand|auto|5%}}

which gives:

Please help improve this article by expanding it.
Further information might be found on the talk page.


One last example of left margin of 30px and width of 60%
{{Template:Expand|60%|30px}}

which gives:

Please help improve this article by expanding it.
Further information might be found on the talk page.

Notes


Articles tagged with this template are automatically added to Category:Articles that need to be expanded.

See also


Personal tools
language