Template:Needs sources

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(add left indetn pipe)
(add examples)
Line 7: Line 7:
}}
}}
<noinclude>
<noinclude>
 +
 +
==Examples==
 +
;If you use {{PAGENAME}} without any parameters:
 +
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>
 +
you get:
 +
{{:{{FULLPAGENAME}}}}
 +
 +
;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%
 +
 +
;To automatically set the width to the minimum width needed:
 +
{<nowiki>{{</nowiki>{{PAGENAME}}|auto<nowiki>}}</nowiki>
 +
which gives:
 +
{{{{PAGENAME}}|auto}}
 +
 +
;To change the left margin to 5% and use auto width:
 +
{<nowiki>{{</nowiki>{{PAGENAME}}|auto|5%<nowiki>}}</nowiki>
 +
which gives:
 +
{{{{PAGENAME}}|auto|5%}}
 +
 +
;One last example of left margin of 10px and width of 60%:
 +
{<nowiki>{{</nowiki>{{PAGENAME}}|60%|10px<nowiki>}}</nowiki>
 +
which gives:
 +
{{{{PAGENAME}}|60%|10ppx}}
 +
{{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:32, 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 10px and width of 60%
{{{Needs sources|60%|10px}}

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.


Personal tools
language