Difference between revisions of "Template:JSPokerCharacter"

From questden
m (Initial pass at some table templating stuff.)
 
m (Note about coupling to parsing code)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>Shh.
+
<noinclude>Define a [[JSPoker]] character table row. Completely useless outside of that. Arguments (mostly required):
</noinclude><includeonly>|-
+
;url:Full URL of the character, to load them by.
|[{{{url|MISSING}}}]||[[{{{quest}}}|{{{character}}}]]||[[{{{author}}}]]||{{{sfw}}}</includeonly><!-- No trailing WSP! -->
+
;quest:Canonical page name of the quest they're from (will be used as a link target).
 +
;character:Name of the character.
 +
;author:Who made the poker character (''not'' necessarily the author of the quest).
 +
;authorext:''(Optional)'' Extra fluff to stick after the author. Not as fancy as [[Template:Infobox]]'s; this is a straight insert.
 +
;sfw:One of the following to indicate how (un)safe for work it is:
 +
::'''safe'''&mdash;If you got caught playing at work, you'd be in more trouble for slacking off than for the imagery.
 +
::'''soft'''&mdash;Nudity, considerable lewdness, uncontrollable outbursts of blushing.
 +
::'''hard'''&mdash;Porn.
 +
<!-- Please note:
 +
    The USE of this template (not the output of it) is parsed by JSPoker.
 +
    Don't change its arguments or how they're used or that will break.
 +
--></noinclude><includeonly>|-
 +
|'''[[{{{quest|MISSING QUEST}}}|{{{character|MISSING CHARACTER}}}]]'''
 +
|[[{{{author|MISSING AUTHOR}}}]]{{#if:{{{authorext|}}}|{{{authorext}}}|<nowiki />}}
 +
| style="text-align: center; font-weight: bold; font-variant: small-caps; color: white; {{#ifeq:{{{sfw|}}}|safe|background-color: green;|{{#ifeq:{{{sfw|}}}|soft|background-color: goldenrod;|{{#ifeq:{{{sfw|}}}|hard|background-color: red;|background-color: black;}}}}}}" |{{#ifeq:{{{sfw|}}}|safe|safe|{{#ifeq:{{{sfw|}}}|soft|nudity|{{#ifeq:{{{sfw|}}}|hard|hardcore|MISSING SFW}}}}}}</includeonly><!-- No trailing WSP! -->

Latest revision as of 16:29, 28 November 2013

Define a JSPoker character table row. Completely useless outside of that. Arguments (mostly required):

url
Full URL of the character, to load them by.
quest
Canonical page name of the quest they're from (will be used as a link target).
character
Name of the character.
author
Who made the poker character (not necessarily the author of the quest).
authorext
(Optional) Extra fluff to stick after the author. Not as fancy as Template:Infobox's; this is a straight insert.
sfw
One of the following to indicate how (un)safe for work it is:
safe—If you got caught playing at work, you'd be in more trouble for slacking off than for the imagery.
soft—Nudity, considerable lewdness, uncontrollable outbursts of blushing.
hard—Porn.