Difference between revisions of "Template:Example needed span"

From blackwiki
Jump to navigation Jump to search
imported>ScottSteiner
m (Case change)
imported>SUM1
(Formatting; added categories, plural, date)
Line 1: Line 1:
 +
{{ {{{|safesubst:}}}#invoke:Unsubst||date=__DATE__|$B=
 
{{Fix-span
 
{{Fix-span
|name=Example needed-span
+
| name       = Example needed-span
|link=Wikipedia:AUDIENCE
+
| link       = Wikipedia:AUDIENCE
|text=example needed
+
| text       = example{{#switch:{{{1}}}|plural|s=s}} needed
|class=Template-Fact
+
| class     = Template-Fact
|span-class=citation-needed-content
+
| span-class = citation-needed-content
|title=This text needs specific examples
+
| title     = This text needs specific examples.
}}{{#ifeq:{{NAMESPACE}}|{{<includeonly>subst:</includeonly>NAMESPACE}}|<includeonly>[[Category:Pages with incorrectly substituted templates]]</includeonly>|}}<noinclude>
+
| date      = {{{date|}}}
 +
| cat        = [[Category:All articles needing examples]]
 +
| cat-date  = Category:Articles needing examples
 +
}}}}
 +
{{#ifeq:{{NAMESPACE}}|{{<includeonly>subst:</includeonly>NAMESPACE}}|<includeonly>[[Category:Pages with incorrectly substituted templates]]</includeonly>|}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 11:48, 5 February 2020

[example needed]

50px Template documentation[view] [edit] [history] [purge]

Usage

This inline template is used to highlight text that may need one or more examples.

{{Example needed-span|Text needing an example|date=Month and year}}

Parameters

  • |text= or |1= (or an empty parameter): the text that is considered to need one or more examples
  • |date=: the date the tag was added
  • |plural=: enter 'y' or 'yes' to change 'example' to 'examples'.

Example

Input:

{{Example needed-span|Lorem ipsum dolor sit amet|date=June 2026}}

Result:

[example needed]


Input with plural setting:

{{Example needed-span|Lorem ipsum dolor sit amet|date=June 2026|plural=y}}

Result:

[example needed]


TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Example needed span

Use this inline template to highlight text that may need one or more examples.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Text needing an example1 text

The text that is considered to need one or more examples

Stringrequired
Month and yeardate

Month and year of tagging; e.g., 'January 2013', but not 'jan13'

Example
January 2013
Auto value
{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}
Stringsuggested
Pluralplural

Enter 'y' or 'yes' to change 'example' to 'examples'.

Example
y
Auto value
y
Stringoptional

See also