Template:Dummy reference/doc: Difference between revisions

From New Prairie Wiki
Jump to navigation Jump to search
Created page with "<includeonly><templatestyles src="Template:Fake link/styles.css" />{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{Error|Template:Dummy reference is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.}}Category:Articles with dummy references|<sup class="reference nowrap ltr fakelinks">[{{#ifeq:{{yes/no|{{{txtital|}}}}}|yes|<span style="font-style:italic">}}{{#if:{{{txtcol|}}}|<span style="color:{{{txtcol|}}..."
 
No edit summary
 
Line 1: Line 1:
<includeonly><templatestyles src="Template:Fake link/styles.css" />{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{Error|[[Template:Dummy reference]] is only for use in template documentation, guidelines and other Wikipedia-internal purposes. Do not use it in actual articles.}}[[Category:Articles with dummy references]]|<sup class="reference nowrap ltr fakelinks">[{{#ifeq:{{yes/no|{{{txtital|}}}}}|yes|<span style="font-style:italic">}}{{#if:{{{txtcol|}}}|<span style="color:{{{txtcol|}}}">}}{{{1|1}}}{{#if:{{{txtcol|}}}|</span>}}{{#ifeq:{{yes/no|{{{txtital|}}}}}|yes|</span>}}]</sup>}}</includeonly><noinclude>
{{Documentation subpage}}
{{documentation}}
<!-- Categories and interwikis go at the bottom of this page. -->
</noinclude>
{{Template redirect|Fake citation|Dummy cite}}
 
This template replicates the in-text citation rendered when using {{cite.php}} {{fnote}}.
 
When used in article space, the template instead produces an error message and adds the page it is used on to [[:Category:Articles with dummy references]].
 
== Usage ==
 
The default {{tl|dummy reference}} creates an in-text citation labeled {{code|1}}:
:{{dummy reference}}
 
For other labels simply add the values; for example {{tlx|dummy reference|2}} renders as:
:{{dummy reference|2}}
 
== TemplateData ==
<templatedata>
{
"params": {
"1": {
"label": "Label",
"description": "The number to use for the citation.",
"example": "2",
"type": "number",
"default": "1"
}
},
"description": "Replicates the in-text citation rendered by Cite Footnotes.\nWhen used in article space, it produces an error message.",
"format": "inline"
}
</templatedata>
 
== See also ==
{{fake template list}}
 
<includeonly>{{Sandbox other||
<!-- Categories and interwikis go here: -->
[[Category:Documentation assistance templates]]
 
}}</includeonly>

Latest revision as of 16:55, 20 August 2025

This template replicates the in-text citation rendered when using Cite Template:Fnote.

When used in article space, the template instead produces an error message and adds the page it is used on to Category:Articles with dummy references.

Usage

The default {{dummy reference}} creates an in-text citation labeled 1:

[1]

For other labels simply add the values; for example {{dummy reference|2}} renders as:

[2]

TemplateData

Replicates the in-text citation rendered by Cite Footnotes. When used in article space, it produces an error message.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Label1

The number to use for the citation.

Default
1
Example
2
Numberoptional

See also

Documentation templates
Template Appearance
{{fake clarify}} Template:Fake clarify
{{fake citation needed}} [citation needed]
{{fake verification needed}} Template:Fake verification needed
{{fake explain}} Template:Fake explain
{{fake heading}}
Section
{{fake notes and references}} Template:Fake notes and references
{{dummy reference}} [1]
{{dummy backlink}} Template:Dummy backlink
{{dummy footnote}} Template:Dummy footnote
{{fake link}} Template:Fake link
{{fake redlink}} Template:Fake redlink