Template:Expand/doc

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(update doc page)
Current revision (12:26, October 20, 2008) (edit) (undo)
(add links)
 
(3 intermediate revisions not shown.)
Line 1: Line 1:
 +
<big>'''Function'''</big>
 +
----
 +
'''<nowiki>{{Expand}}</nowiki>''' lets you quickly label an article as one needing to be expanded.
 +
 +
'''<nowiki>{{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>
----
----
-
;If you use {{PAGENAME}} without any parameters:
+
;If you use <nowiki>{{Expand}}</nowiki> without any parameters:
-
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>
+
<nowiki>{{Expand}}</nowiki>
-
you get:
+
which gives:
-
{{:{{FULLPAGENAME}}}}
+
{{Expand}}
-
<br>
+
-
;There are two parameters that can be added:
+
-
{<nowiki>{{</nowiki>{{PAGENAME}}|width|leftmargin<nowiki>}}</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:
-
{<nowiki>{{</nowiki>{{PAGENAME}}|auto<nowiki>}}</nowiki>
+
<nowiki>{{Expand|auto}}</nowiki>
which gives:
which gives:
-
{{{{PAGENAME}}|auto}}
+
{{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>{{Expand|auto|5%}}</nowiki>
which gives:
which gives:
-
{{{{PAGENAME}}|auto|5%}}
+
{{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>{{Expand|60%|30px}}</nowiki>
which gives:
which gives:
-
{{{{PAGENAME}}|60%|30px}}
+
{{Expand|60%|30px}}
<big>'''Notes'''</big>
<big>'''Notes'''</big>
Line 31: Line 33:
<big>'''See also'''</big>
<big>'''See also'''</big>
----
----
 +
* [[MeritBadgeDotOrg:Article message boxes]]
 +
* [[Article Message_Box usage]]
* [[Template:Expand2|Expand2]] → Same message in a narrower format to fit smaller places
* [[Template:Expand2|Expand2]] → Same message in a narrower format to fit smaller places
* [[Template:Stub|Stub]]
* [[Template:Stub|Stub]]
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>

Current revision

Function


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

{{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 {{Expand}} without any parameters
{{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
{{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
{{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%
{{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