Template:NSFW: Difference between revisions

From questden
Jump to navigationJump to search
Added usage examples table
mNo edit summary
Line 47: Line 47:
-->{{#if:{{{suppresscat|}}}||{{#if:{{{1|}}}|[[Category:NSFW Quests]]|}}}}</includeonly>
-->{{#if:{{{suppresscat|}}}||{{#if:{{{1|}}}|[[Category:NSFW Quests]]|}}}}</includeonly>


<noinclude>[[Category:Templates]]</noinclude>
<noinclude>[[Category:Templates]]
[[Category:Banners]]</noinclude>

Revision as of 00:49, 17 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}}


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}}


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}}


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}}


This big bag of dicks contains material that is not safe for work. You were warned.