Template:inlinecontentwarning
From Homestar Runner Wiki
(Difference between revisions)
It's dot com (Talk | contribs) (nbsp not necessary with the style) |
(Being bold here...making the 2nd parameter to be a tooltip for the entire thing and the image. I never worked with MediaWiki's template parser before, so I might be doing this a little wrong...) |
||
Line 1: | Line 1: | ||
- | <span style="background-color: #DEF; border: 1px solid #69C; padding:2px;font-size:x-small; white-space: nowrap" >[[Image:Exclamation Mark.png|12px|{{{2|The external website linked here contains offensive language and/or content.}}}]] {{{1|content warning}}}</span><noinclude> | + | <span style="background-color: #DEF; border: 1px solid #69C; padding:2px;font-size:x-small;white-space:nowrap;" title="{{{2|The external website linked here contains offensive language and/or content.}}}">[[Image:Exclamation Mark.png|12px|{{{2|The external website linked here contains offensive language and/or content.}}}]] {{{1|content warning}}}</span><noinclude> |
---- | ---- | ||
This template is used to indicate readers of objectionable material found in external links. | This template is used to indicate readers of objectionable material found in external links. | ||
'''Usage:'''<br /> | '''Usage:'''<br /> | ||
- | <code><nowiki>{{inlinecontentwarning|warning message| | + | <code><nowiki>{{inlinecontentwarning|warning message|tooltip to display}}</nowiki></code> |
<code><nowiki>{{inlinecontentwarning}}</nowiki></code> | <code><nowiki>{{inlinecontentwarning}}</nowiki></code> | ||
Line 14: | Line 14: | ||
Yields:<br /> | Yields:<br /> | ||
{{inlinecontentwarning|sample warning message|This is an example content warning.}} [http://www.nasa.gov Read me.] | {{inlinecontentwarning|sample warning message|This is an example content warning.}} [http://www.nasa.gov Read me.] | ||
+ | |||
+ | When someone rolls over this template, a [[Wikipedia:Tooltip|tooltip]] will be displayed containing what you entered for the second parameter. | ||
In most cases, be sure to place the warning template ''before'' the link in question, especially in running text. | In most cases, be sure to place the warning template ''before'' the link in question, especially in running text. | ||
[[Category:Content and Language Warnings|{{PAGENAME}}]]</noinclude> | [[Category:Content and Language Warnings|{{PAGENAME}}]]</noinclude> |
Revision as of 02:16, 16 November 2008
This template is used to indicate readers of objectionable material found in external links.
Usage:
{{inlinecontentwarning|warning message|tooltip to display}}
{{inlinecontentwarning}}
- Both parameters are optional.
Example:
{{inlinecontentwarning|sample warning message|This is an example content warning.}} [http://www.nasa.gov Read me.]
Yields:
sample warning message Read me.
When someone rolls over this template, a tooltip will be displayed containing what you entered for the second parameter.
In most cases, be sure to place the warning template before the link in question, especially in running text.