Template:Expand/doc

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(add {{documentation subpage}})
(update doc page)
Line 1: Line 1:
-
{{documentation subpage}}
+
<big>'''Examples'''</big>
-
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
+
----
-
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
+
;If you use {{PAGENAME}} without any parameters:
-
==Usage==
+
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>
-
Self-explanatory.
+
you get:
 +
{{:{{FULLPAGENAME}}}}
 +
<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>
 +
;To automatically set the width to the minimum width needed:
 +
{<nowiki>{{</nowiki>{{PAGENAME}}|auto<nowiki>}}</nowiki>
 +
which gives:
 +
{{{{PAGENAME}}|auto}}
 +
<br>
 +
;To change the left margin to 5% and use auto width:
 +
{<nowiki>{{</nowiki>{{PAGENAME}}|auto|5%<nowiki>}}</nowiki>
 +
which gives:
 +
{{{{PAGENAME}}|auto|5%}}
 +
<br>
 +
;One last example of left margin of 30px and width of 60%:
 +
{<nowiki>{{</nowiki>{{PAGENAME}}|60%|30px<nowiki>}}</nowiki>
 +
which gives:
 +
{{{{PAGENAME}}|60%|30px}}
-
===Notes===
+
<big>'''Notes'''</big>
 +
----
''Articles tagged with this template are automatically added to [[:Category:Articles that need to be expanded]].''
''Articles tagged with this template are automatically added to [[:Category:Articles that need to be expanded]].''
-
==See also==
+
<big>'''See also'''</big>
 +
----
* [[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]]

Revision as of 16:03, October 17, 2008

Examples


If you use Expand/doc without any parameters
{{Expand/doc}}

you get: 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



[[Category:Maintenance templates|Template:Expand]]



There are two parameters that can be added
{{{Expand/doc|width|leftmargin}}

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

To automatically set the width to the minimum width needed
{{{Expand/doc|auto}}

which gives: 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



[[Category:Maintenance templates|Template:Expand]]



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

which gives: 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



[[Category:Maintenance templates|Template:Expand]]



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

which gives: 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



[[Category:Maintenance templates|Template:Expand]]



Notes


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

See also


Personal tools
language