Template:Expand/doc
From MeritBadgeDotOrg
(Difference between revisions)
(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 {{ | + | ;If you use <nowiki>{{Template:Expand}}</nowiki> without any parameters: |
| - | <nowiki>{{ | + | <nowiki>{{Template:Expand}}</nowiki> |
you get: | you get: | ||
| - | {{: | + | {{Template:Expand}} |
<br> | <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% | 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>{{Template:Expand|auto}}</nowiki> | |
which gives: | which gives: | ||
| - | {{ | + | {{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>{{Template:Expand|auto|5%}}</nowiki> | |
which gives: | which gives: | ||
| - | {{ | + | {{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>{{Template:Expand|60%|30px}}</nowiki> | |
which gives: | which gives: | ||
| - | {{ | + | {{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| | + | [[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
