Content deleted Content added
→Redirects: add {talias} |
adapt from template:clarify/doc |
||
Line 1:
{{Documentation subpage}}
{{High use}}
<!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE---->
Use this template
This [[Wikipedia:Template|template]] is a [[Wikipedia:Avoid self-references|self-reference]] and so is part of the Wikipedia project rather than the encyclopedic content. It also adds articles to [[:Category:Articles needing examples]] or a dated subcategory of it.
== Usage ==
This is an [[Wikipedia:WikiProject Inline Templates|inline template]] which should be placed immediately after the material in question, as with a footnote. For example:
*{{tlx |Example needed |date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} → {{Example needed |date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}▼
::The wikilink on "example needed" is set to [[WP:AUDIENCE]].
(If there already is an example, just not one that meets your standards (in some way), use this template and explain in the reason parameter, an edit summary, or on the talk page.
==Parameters==
;Abbreviated parameter sets:
: {{tlx|example needed|2=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
: {{tlx|example needed|2=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|3=plural=yes}}
:{{tlx|example needed|2=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|3=reason= }}
▲
;Full parameter set:
:{{tlx|example needed|2=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|3=reason= |4=text= |5=pre-text= |6=post-text= |7=plural=|8=link=}}
;Parameter descriptions
;{{Para|plural}}
:Synonymous with <code>pl</code>, <code>s</code> when used as the unnamed first parameter. Can also be invoked with the named parameter <code>plural=yes</code>
;{{Para|date}}
:Like all inline templates, this template allows a date parameter which records when the tag was added. If the date parameter was not included when this template was added, the date parameter will automatically be added soon after by a [[WP:BOT|bot]]. Alternatively, you may add the date automatically (without requiring bot intervention) by [[WP:SUBST|substituting]] the template. That is: {{tlxs|Example needed}} is equivalent to {{tlx|Example needed|2=date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}. This substitution technique also works if other parameters{{snd}} {{para|reason}} {{para|pre-text}} {{para|post-text}}{{snd}} are included.
;{{Para|reason}}
:Because it may not be immediately apparent to other readers and / or editors what the specific reason the tagged passage is in need of examples, it is generally helpful to add a brief reason for the tag: <code><nowiki>{{Example needed|reason=</nowiki><var>What the problem is</var><nowiki>}}</nowiki></code> (this is preferable to using an HTML <code><!-- comment --></code> after the tag, as it is tidier to keep all of the {{Tlx|Example needed}}-related code inside the template). If the request reason would be lengthy, use the article's talk page to address the issue in detail.
:As well as being visible in the source code for readers and editors' benefit, the <code>reason</code> parameter is, if provided, displayed as a pop-up when the mouse is hovered over the 'clarification needed' link in the article.<!-- For technical reasons, this mouse-over pop-up feature does not work if the reason text contains double quotes. Use single quotes instead, or use the code <code>&quot;</code> if it is essential to include a double quote. (Seems to no longer be a problem, since ca. 2015)-->
;{{Para|text}}
:The particular text needing examples may be highlighted within the prose by wrapping this template around it:
::As an example:
:::''This is some understandable text preceding the template'', <code>{{tlp|Example needed|text{{=}}this is some unclear or ambiguous text,|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}</code> ''and this is some understandable text following the template''.
::produces:
:::''This is some understandable text preceding the template'', {{Example needed|text=this is some text needing examples,|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} ''and this is some understandable text following the template''.
:Please note: when using this <code>text=</code> parameter, please ensure you leave a '''space''' before starting the template code.
;{{Para|pre-text}}
;{{Para|post-text}}
:One can specify additional text to appear before and / or after the displayed 'example needed' tag using either (or both) the two parameters listed above.
::Examples follow:
:#<code><nowiki>{{Example needed|pre-text=reference or}}</nowiki></code>
:#:will cause the text 'remove or' to appear <u>before</u> 'clarification needed' like this:{{Example needed|pre-text=reference or}}
:#<code><nowiki>{{Clarify|post-text=(complicated jargon)}}</nowiki></code>
:#:will cause '(obscure)' to appear <u>after</u> 'clarification needed' like this:{{Example needed|post-text=(obscure)}}
:#<code><nowiki>{{Example needed|post-text=(see [[Talk:Example#Example needed|talk]])}}</nowiki></code>
:#:can be used to link to a discussion on the article's [[talk page]]; this example produces:{{Example needed|post-text=(see [[Talk:Example#Example needed|talk]])}}
;{{Para|link}}
:Used to specify the link on the "examples needed" text. For example:
:<code><nowiki>{{Example needed|link=WP:EXAMPLES}}</nowiki></code>
::will produce: {{Example needed|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|link=WP:EXAMPLES}}
== Examples ==
Line 27 ⟶ 75:
== TemplateData ==
<!-- needs updating as of 2024 edits -->
<templatedata>
{
|