Template:Expand/doc

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(update doc page)
(clean up doc text)
Line 1: Line 1:
 +
<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.
 +
<big>'''Examples'''</big>
<big>'''Examples'''</big>
----
----
-
;If you use {{PAGENAME}} without any parameters:
+
;If you use <nowiki>{{Template:Expand}}</nowiki> without any parameters:
-
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>
+
<nowiki>{{Template:Expand}}</nowiki>
you get:
you get:
-
{{:{{FULLPAGENAME}}}}
+
{{Template:Expand}}
<br>
<br>
-
;There are two parameters that can be added:
+
;The '''"width"''' and ''"leftmargin"''' parameters that can be added:
-
{<nowiki>{{</nowiki>{{PAGENAME}}|width|leftmargin<nowiki>}}</nowiki>
+
<nowiki>{{Template:Expand|width|leftmargin}}</nowiki>
The deafult values for these fields are: width = 80% and leftmargin=10%
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:
-
{<nowiki>{{</nowiki>{{PAGENAME}}|auto<nowiki>}}</nowiki>
+
<nowiki>{{Template:Expand|auto}}</nowiki>
which gives:
which gives:
-
{{{{PAGENAME}}|auto}}
+
{{Template:Expand|auto}}
<br>
<br>
;To change the left margin to 5% and use auto width:
;To change the left margin to 5% and use auto width:
-
{<nowiki>{{</nowiki>{{PAGENAME}}|auto|5%<nowiki>}}</nowiki>
+
<nowiki>{{Template:Expand|auto|5%}}</nowiki>
which gives:
which gives:
-
{{{{PAGENAME}}|auto|5%}}
+
{{Template:Expand|auto|5%}}
<br>
<br>
;One last example of left margin of 30px and width of 60%:
;One last example of left margin of 30px and width of 60%:
-
{<nowiki>{{</nowiki>{{PAGENAME}}|60%|30px<nowiki>}}</nowiki>
+
<nowiki>{{Template:Expand|60%|30px}}</nowiki>
which gives:
which gives:
-
{{{{PAGENAME}}|60%|30px}}
+
{{Template:Expand|60%|30px}}
<big>'''Notes'''</big>
<big>'''Notes'''</big>
Line 37: Line 41:
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
-
[[Category:Maintenance templates|{{PAGENAME}}]]
+
[[Category:Maintenance templates|[[Template:Expand]]]]
</includeonly>
</includeonly>
<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 11:37, October 20, 2008

Function


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.

Examples


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

you get:

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


The "width"' and "leftmargin" parameters that can be added
{{Template:Expand|width|leftmargin}}

The deafult values for these fields are: width = 80% and leftmargin=10%

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