Template:inlinecontentwarning

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
m (forgot br, added default usage, made prettier?)
(undid revision 717231; it's "preceding", not "preceeding"; "the proceeding" does not mean "the following"; this is just the default wording—it applies in most cases and can be overridden if necessary)
 
(includes 13 intermediate revisions)
Line 1: Line 1:
-
<span style="background-color: #DEF; border: 1px solid #69C; padding:2px;font-size:x-small">[[Image:Exclamation Mark.png|12px|{{{2|The external website linked here contains offensive language and/or content.}}}]]&nbsp;{{{1|content&nbsp;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.
'''Usage:'''<br />
'''Usage:'''<br />
-
<code><nowiki>{{inlinecontentwarning|warning message|exclamation image caption message}}</nowiki></code>
+
<code><nowiki>{{inlinecontentwarning|warning message|tooltip to display}}</nowiki></code>
-
 
+
-
<code><nowiki>{{inlinecontentwarning}}</nowiki></code>
+
:''Both parameters are optional.''
:''Both parameters are optional.''
 +
 +
When someone rolls over this template, a [[Wikipedia:Tooltip|tooltip]] will be displayed containing what you entered for the second parameter.
 +
 +
The tooltip should be a brief message further explaining the warning. It should be checked to see if the tooltip appears completely, because after a certain length they will be cut off by the browser. They will also disappear after a few seconds, requiring a user to take their cursor off of the warning and back on it again to see it again.
'''Example:'''<br />
'''Example:'''<br />
-
<code><nowiki>{{inlinecontentwarning|sample warning message|This is an example content warning.}} [http://www.nasa.gov Read me.]</nowiki></code>
+
<code><nowiki>[http://www.nasa.gov Read me.] {{inlinecontentwarning|sample warning message|This is an example content warning.}}</nowiki></code>
Yields:<br />
Yields:<br />
-
{{inlinecontentwarning|sample warning message|This is an example content warning.}} [http://www.nasa.gov Read me.]
+
[http://www.nasa.gov Read me.] {{inlinecontentwarning|sample warning message|This is an example content warning.}}
-
Place the warning template ''before'' the link in question.
+
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>

Current revision as of 06:07, 23 January 2011

The external website linked here contains offensive language and/or content. content warning


This template is used to indicate readers of objectionable material.

Usage:
{{inlinecontentwarning|warning message|tooltip to display}}

Both parameters are optional.

When someone rolls over this template, a tooltip will be displayed containing what you entered for the second parameter.

The tooltip should be a brief message further explaining the warning. It should be checked to see if the tooltip appears completely, because after a certain length they will be cut off by the browser. They will also disappear after a few seconds, requiring a user to take their cursor off of the warning and back on it again to see it again.

Example:
[http://www.nasa.gov Read me.] {{inlinecontentwarning|sample warning message|This is an example content warning.}}

Yields:
Read me. This is an example content warning. sample warning message

In most cases, be sure to place the warning template before the link in question, especially in running text.