Template:Needs sources/doc

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(create doc page)
Current revision (10:26, October 20, 2008) (edit) (undo)
(add links)
 
(4 intermediate revisions not shown.)
Line 1: Line 1:
-
==Examples==
+
<big>'''Function'''</big>
-
;If you use {{PAGENAME}} without any parameters:
+
----
-
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>
+
'''<nowiki>{{Needs sources}}</nowiki>''' lets you quickly label an article as one needing to be expanded.
-
you get:
+
 
-
{{:{{FULLPAGENAME}}}}
+
'''<nowiki>{{Needs sources|width|leftmargin}}</nowiki>''' is the format for the optional variables 1 and 2. The default values are width = 80% and leftmargin=10%.
-
<br>
+
 
-
;There are two parameters that can be added:
+
 
-
{<nowiki>{{</nowiki>{{PAGENAME}}|width|leftmargin<nowiki>}}</nowiki>
+
<big>'''Examples'''</big>
-
The deafult values for these fields are: width = 80% and leftmargin=10%
+
----
 +
;If you use <nowiki>{{Needs sources}}</nowiki> without any parameters:
 +
<nowiki>{{Needs sources}}</nowiki>
 +
which gives:
 +
{{Needs sources}}
<br>
<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>{{Needs sources|auto}}</nowiki>
which gives:
which gives:
-
{{{{PAGENAME}}|auto}}
+
{{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>{{</nowiki>{{PAGENAME}}|auto|5%<nowiki>}}</nowiki>
+
<nowiki>{{Needs sources|auto|5%}}</nowiki>
which gives:
which gives:
-
{{{{PAGENAME}}|auto|5%}}
+
{{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>{{</nowiki>{{PAGENAME}}|60%|30px<nowiki>}}</nowiki>
+
<nowiki>{{Needs sources|60%|30px}}</nowiki>
which gives:
which gives:
-
{{{{PAGENAME}}|60%|30px}}
+
{{Needs sources|60%|30px}}
 +
 
 +
<big>'''See also'''</big>
 +
----
 +
* [[MeritBadgeDotOrg:Article message boxes]]
 +
* [[Article Message_Box usage]]
 +
* [[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>

Current revision

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


Personal tools
language