Template:inlinecontentwarning

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(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...)
(Used a different example (Loreum Ipsum instead of the NASA link) and further explained it.)
Line 5: Line 5:
'''Usage:'''<br />
'''Usage:'''<br />
<code><nowiki>{{inlinecontentwarning|warning message|tooltip to display}}</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 tooltip will be displayed containing what you entered for the second parameter.
 +
 +
The [[Wikipedia:Tooltip|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
'''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>[[Wikipedia:Loreum Ipsum|Loreum Ipsum]] {{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.]
+
[[Wikipedia:Loreum Ipsum|Loreum Ipsum]] {{inlinecontentwarning|sample warning message|This is an example content warning.}}
-
 
+
-
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 04:31, 16 November 2008

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


This template is used to indicate readers of objectionable material found in external links.

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

Example:
[[Wikipedia:Loreum Ipsum|Loreum Ipsum]] {{inlinecontentwarning|sample warning message|This is an example content warning.}}

Yields:
Loreum Ipsum 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.

Personal tools