Template:Needs sources

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(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 10px and width of 60%:
+
;One last example of left margin of 30px and width of 60%:
-
{<nowiki>{{</nowiki>{{PAGENAME}}|60%|10px<nowiki>}}</nowiki>
+
{<nowiki>{{</nowiki>{{PAGENAME}}|60%|30px<nowiki>}}</nowiki>
which gives:
which gives:
-
{{{{PAGENAME}}|60%|10ppx}}
+
{{{{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.


Personal tools
language