Template:Needs sources/doc
From MeritBadgeDotOrg
(Difference between revisions)
m (tweak) |
(clarify doc) |
||
| Line 1: | Line 1: | ||
| - | ;If you use {{ | + | <big>'''Function'''</big> |
| - | <nowiki>{{ | + | ---- |
| + | <nowiki>{{Template:Needs sources}}</nowiki> lets you quickly label an article as one needing sources. You can add optional variables 1 and 2 to over ride the default width and left margin. | ||
| + | |||
| + | <big>'''Examples'''</big> | ||
| + | ---- | ||
| + | ;If you use <nowiki>{{Template:Needs sources}}</nowiki> without any parameters: | ||
| + | <nowiki>{{Template:Needs sources}}</nowiki> | ||
you get: | you get: | ||
| - | {{: | + | {{Template:Needs sources}} |
<br> | <br> | ||
| - | ; | + | ;The '''"width"''' and ''"leftmargin"''' parameters that can be added: |
| - | + | <nowiki>{{Template:Needs sources|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:Needs sources|auto}}</nowiki> | |
which gives: | which gives: | ||
| - | {{ | + | {{Template:Needs sources|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:Needs sources|auto|5%}}</nowiki> | |
which gives: | which gives: | ||
| - | {{ | + | {{Template:Needs sources|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:Needs sources|60%|30px}}</nowiki> | |
which gives: | which gives: | ||
| - | {{ | + | {{Template:Needs sources|60%|30px}} |
| + | |||
| + | <big>'''Notes'''</big> | ||
| + | ---- | ||
| + | |||
| + | <big>'''See also'''</big> | ||
| + | ---- | ||
| + | * [[Template:Needs Sources]] | ||
| + | * [[Template:Expand]] | ||
| + | * [[Template:Stub|Stub]] | ||
| + | * [[Template:Workpage|Workpage]] | ||
| + | |||
| + | <includeonly> | ||
| + | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
| + | [[Category:Maintenance templates|[[Template:Needs sources]]]] | ||
| + | </includeonly> | ||
| + | |||
| + | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Revision as of 11:44, October 20, 2008
Function
{{Template:Needs sources}} lets you quickly label an article as one needing sources. You can add optional variables 1 and 2 to over ride the default width and left margin.
Examples
- If you use {{Template:Needs sources}} without any parameters
{{Template:Needs sources}}
you get:
| | This article appears to not provide sufficient references to reliable sources. Please help add sources for this article. Unverifiable links and articles may be removed. |
- The "width"' and "leftmargin" parameters that can be added
{{Template:Needs sources|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:Needs sources|auto}}
which gives:
| | This article appears to not provide sufficient references to reliable sources. Please help add sources for this article. Unverifiable links and articles may be removed. |
- To change the left margin to 5% and use auto width
{{Template:Needs sources|auto|5%}}
which gives:
| | This article appears to not provide sufficient references to reliable sources. Please help add sources for this article. Unverifiable links and articles may be removed. |
- One last example of left margin of 30px and width of 60%
{{Template:Needs sources|60%|30px}}
which gives:
| | This article appears to not provide sufficient references to reliable sources. Please help add sources for this article. Unverifiable links and articles may be removed. |
Notes
See also
