Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Helper: Difference between revisions

Template page
mNo edit summary
m (Attempt to fix this template to make it somewhat useful)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><sup style="color:#0645ad">[<span title="{{#if:{{{hover-text|}}}|{{{hover-text}}}|Help reference or verify this claim}}" style="border-bottom:1px dotted">''{{{helper-text|citation needed}}}''</span>]</sup></includeonly>{{main other|[[Category:Pages needing references]]|[[Category:Maintenance templates]]}}<noinclude>
<templatestyles src="Template:Helper/styles.css/><includeonly><sup class="pw-helper" title="{{#if:{{{hover-text|}}}|{{{hover-text}}}|Help reference or verify this claim}}" style="color:#0645ad">[<span style="border-bottom:1px dotted">''{{{helper-text|citation needed}}}''</span>]</sup></includeonly>{{main other|[[Category:Pages needing references]]|[[Category:Maintenance templates]]}}<noinclude>
Creates an article helper, which prints suggestions to improve the text.
Creates an article helper, which prints suggestions to improve the text.


Usage:
Usage:


<small>''(details are optional and will default to "citation needed")''</small>
<small>''(details are optional and will default to "citation needed", displaying "Help reference the text" when hovering with the cursor)''</small>
<blockquote class="toccolours><nowiki>{{helper|helper-text=|hover-text}}</nowiki></blockquote>
<blockquote class="toccolours><nowiki>{{helper|helper-text=|hover-text=}}</nowiki></blockquote>


Example:
Example:


Snorting lemon juice can give you immortality<nowiki>{{helper}}</nowiki>
Capitalism breeds innovation.<nowiki>{{helper}}</nowiki>
<blockquote class="toccolours>Snorting lemon juice can give you immortality.{{helper}}</blockquote>
<blockquote class="toccolours>Capitalism breeds innovation.{{helper}}</blockquote>


I can speedrun Super Mario Bros with my nipples<nowiki>{{helper|helper-text=how?|hover-text=Why?}}</nowiki>
Epstein didn't kill himself.<nowiki>{{helper|helper-text=how?|hover-text=Why?}}</nowiki>
<blockquote class="toccolours>I can speedrun Super Mario Bros with my nipples.{{helper|helper-text=how?|hover-text=Why?}}</blockquote>
<blockquote class="toccolours>Epstein didn't kill himself.{{helper|helper-text=how?|hover-text=Why?}}</blockquote>
<templatedata>
<templatedata>
{
{
Line 19: Line 19:
"hover-text": {
"hover-text": {
"label": "Hover text",
"label": "Hover text",
"type": "string",
"type": "string"
"suggested": true
},
},
"helper-text": {
"helper-text": {
"label": "Helper text",
"label": "Helper text",
"type": "string",
"type": "string"
"suggested": true
}
}
},
},

Latest revision as of 00:53, 12 July 2022

Creates an article helper, which prints suggestions to improve the text.

Usage:

(details are optional and will default to "citation needed", displaying "Help reference the text" when hovering with the cursor)

{{helper|helper-text=|hover-text=}}

Example:

Capitalism breeds innovation.{{helper}}

Capitalism breeds innovation.[citation needed]

Epstein didn't kill himself.{{helper|helper-text=how?|hover-text=Why?}}

Epstein didn't kill himself.[how?]

Adds a customizable "citation needed" maintenance helper and adds to Pages needing references category

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Helper texthelper-text

no description

Stringoptional
Hover texthover-text

no description

Stringoptional