Template:Needs sources
From MeritBadgeDotOrg
(Difference between revisions)
(add examples) |
(formatting) |
||
Line 13: | Line 13: | ||
you get: | you get: | ||
{{:{{FULLPAGENAME}}}} | {{:{{FULLPAGENAME}}}} | ||
- | + | <br> | |
;There are two parameters that can be added: | ;There are two parameters that can be added: | ||
{<nowiki>{{</nowiki>{{PAGENAME}}|width|leftmargin<nowiki>}}</nowiki> | {<nowiki>{{</nowiki>{{PAGENAME}}|width|leftmargin<nowiki>}}</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> | |
;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>{{</nowiki>{{PAGENAME}}|auto<nowiki>}}</nowiki> | ||
which gives: | which gives: | ||
{{{{PAGENAME}}|auto}} | {{{{PAGENAME}}|auto}} | ||
- | + | <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>{{</nowiki>{{PAGENAME}}|auto|5%<nowiki>}}</nowiki> | ||
which gives: | which gives: | ||
{{{{PAGENAME}}|auto|5%}} | {{{{PAGENAME}}|auto|5%}} | ||
- | + | <br> | |
- | ;One last example of left margin of | + | ;One last example of left margin of 30px and width of 60%: |
- | {<nowiki>{{</nowiki>{{PAGENAME}}|60%| | + | {<nowiki>{{</nowiki>{{PAGENAME}}|60%|30px<nowiki>}}</nowiki> |
which gives: | which gives: | ||
- | {{{{PAGENAME}}|60%| | + | {{{{PAGENAME}}|60%|30px}} |
{{Documentation}}[[Category:Article Message Boxes]]</noinclude> | {{Documentation}}[[Category:Article Message Boxes]]</noinclude> | ||
<includeonly>[[Category:Articles needing references]]</includeonly> | <includeonly>[[Category:Articles needing references]]</includeonly> |
Revision as of 14:35, October 17, 2008
![]() | 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. |
Examples
- If you use Needs sources without any parameters
{{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. |
- There are two parameters that can be added
{{{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
{{{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
{{{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%
{{{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. |
Function
{{Needs sources}} lets you quickly label an article as one needing to be expanded.
{{Needs sources|width|leftmargin}} is the format for the optional variables 1 and 2. The default values are width = 80% and leftmargin=10%.
Examples
- If you use {{Needs sources}} without any parameters
{{Needs sources}}
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 automatically set the width to the minimum width needed
{{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
{{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%
{{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. |
See also
- MeritBadgeDotOrg:Article message boxes
- Article Message_Box usage
- Template:Needs sources
- Template:Expand
- Stub
- Workpage
[[Category:Maintenance templates|Template:Needs sources]]