Difference between revisions of "Template:NSFW"

From questden
(Okay, I hate the forced whitespace in this template messing up my formatting options. It's going.)
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>A banner used to warn readers about not safe for work content.
 
<noinclude>A banner used to warn readers about not safe for work content.
  
By default (and for backwards compatibility) the banner refers to galleriesHowever, you can specify what, exactly, contains nsfw material (for example, the article, or the quest).</noinclude><includeonly><!--
+
==Usage Examples==
 +
 
 +
{| style="text-align:center; margin: auto; background-color:#FFFFFF" class="wikitable"
 +
! Desription
 +
! Code
 +
! Result
 +
|-
 +
| style="text-align:left; width: 20%" | The default and depreciated usage.  NSFW galleries are no longer posted on quest pages.
 +
| style="width: 20%" |
 +
<nowiki>{{NSFW}}</nowiki>
 +
|
 +
{{NSFW}}
 +
|-
 +
| style="text-align:left; width: 20%" | You are allowed to specify what exactly is considered NSFW.  The template will assume you're talking about a quest, and add the appropriate tag.
 +
|
 +
  <nowiki>{{NSFW|quest}}</nowiki>
 +
|
 +
 
 +
{{NSFW|quest|suppresscat=1}} <!--Cheating and suppressing the category, since this template page doesn't need the NSFW tag-->
 +
+[[:Category:NSFW Quests]]
 +
|-
 +
| style="text-align:left; width: 20%" | '''Even if you specify something besides a quest''', the template is dumb, and will add the category.  (Unfortunately, mediawiki if-statements are limited and can only check if a parameter is called, not what value is input).
 +
|
 +
<nowiki>{{NSFW|tozol}}</nowiki>
 +
|
 +
 
 +
{{NSFW|tozol|suppresscat=1}}
 +
+[[:Category:NSFW Quests]]
 +
|-
 +
| style="text-align:left; width: 20%" | If you want to talk about something other than a quest or gallery, you can opt to suppress the category.
 +
| style="width: 20%" |
 +
<nowiki>{{NSFW|big bag of dicks
 +
|suppresscat=1}}</nowiki>
 +
|
 +
{{NSFW|big bag of dicks|suppresscat=1}}
 +
|}</noinclude><includeonly><!--
 
-->{{Notice
 
-->{{Notice
 
|image=Spoilerth tiny.png
 
|image=Spoilerth tiny.png
Line 8: Line 43:
 
|minortext=You were warned.
 
|minortext=You were warned.
 
}}<!--
 
}}<!--
-->{{#if:{{{suppresscat|}}}||{{#if:{{{1|}}}|[[Category:NSFW Quests]]|}}}}</includeonly>
+
-->{{#if:{{{suppresscat|}}}||{{#if:{{{1|}}}|[[Category:NSFW Quests]]|}}}}</includeonly><noinclude>[[Category:Templates]] [[Category:Banners]]</noinclude>
 
 
<noinclude>[[Category:Templates]]</noinclude>
 

Latest revision as of 03:29, 18 October 2015

A banner used to warn readers about not safe for work content.

Usage Examples

Desription Code Result
The default and depreciated usage. NSFW galleries are no longer posted on quest pages.
{{NSFW}}
Spoilerth tiny.png This gallery contains material that is not safe for work. You were warned.
You are allowed to specify what exactly is considered NSFW. The template will assume you're talking about a quest, and add the appropriate tag.
{{NSFW|quest}}


Spoilerth tiny.png This quest contains material that is not safe for work. You were warned.

+Category:NSFW Quests

Even if you specify something besides a quest, the template is dumb, and will add the category. (Unfortunately, mediawiki if-statements are limited and can only check if a parameter is called, not what value is input).
{{NSFW|tozol}}


Spoilerth tiny.png This tozol contains material that is not safe for work. You were warned.

+Category:NSFW Quests

If you want to talk about something other than a quest or gallery, you can opt to suppress the category.
{{NSFW|big bag of dicks
|suppresscat=1}}
Spoilerth tiny.png This big bag of dicks contains material that is not safe for work. You were warned.