Difference between revisions of "Template:Humor/doc"

From blackwiki
Jump to navigation Jump to search
imported>Technical 13
Line 11: Line 11:
  
 
If you dislike having your jokes spoiled, append the following to [[Special:MyPage/common.css]]:
 
If you dislike having your jokes spoiled, append the following to [[Special:MyPage/common.css]]:
<source lang="css">
+
<syntaxhighlight lang="css">
body.ns-2.action-view .ombox-humor,           
+
.ombox-humor,            /* hide [[Template:Humor]] */
body.ns-4.action-view .ombox-humor,            /* hide [[Template:Humor]] */
+
.ombox-humorantipolicy { /* hide [[Template:Humorantipolicy]] too */
body.ns-2.action-view .ombox-humorantipolicy,
 
body.ns-4.action-view .ombox-humorantipolicy { /* hide [[Template:Humorantipolicy]] too */
 
 
display: none;
 
display: none;
 
}
 
}
</source>
+
</syntaxhighlight>
  
 
=== See also ===
 
=== See also ===
Line 27: Line 25:
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 +
[[Category:Top icon templates]]
 
[[Category:Wikipedia header templates|{{PAGENAME}}]]
 
[[Category:Wikipedia header templates|{{PAGENAME}}]]
 
[[Category:Wikipedia templates which apply NOINDEX]]
 
[[Category:Wikipedia templates which apply NOINDEX]]
  
 
</includeonly>
 
</includeonly>

Revision as of 16:33, 28 December 2014

Usage

This template should never be used on pages in the article namespace, since it should never include any non-factual or non-encyclopedic articles. Only use it in other spaces such as Wikipedia namespace.

Use {{humor|irony=yes}} to display an irony caution:

If you dislike having your jokes spoiled, append the following to Special:MyPage/common.css:

.ombox-humor,            /* hide [[Template:Humor]] */
.ombox-humorantipolicy { /* hide [[Template:Humorantipolicy]] too */
	display: none;
}

See also