Difference between revisions of "Template:JSPokerGroup"

From questden
(Create template for groups, to keep the formatting consistent)
 
m (Attempt to work around syntactic hate)
Line 10: Line 10:
 
     It's purely to make things neat on the wiki.
 
     It's purely to make things neat on the wiki.
 
--></noinclude><includeonly>|-
 
--></noinclude><includeonly>|-
|'''[http://poker.lionsphil.co.uk/{{{characters}}}{{#if:{{{deck|}}}|#deck={{{deck}}}|}} {{{title|MISSING TITLE}}}]'''
+
|'''[http://poker.lionsphil.co.uk/{{{characters}}}{{#if:{{{deck|}}}|{{Hash}}deck={{{deck}}}|}} {{{title|MISSING TITLE}}}]'''
 
|{{{description|MISSING DESCRIPTION}}}
 
|{{{description|MISSING DESCRIPTION}}}
 
| 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! -->
 
| 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! -->

Revision as of 20:11, 4 December 2013

Define a JSPoker character group. Completely useless outside of that. Arguments:

title
A name for this grouping to display on the wiki.
description
A description for display; you probably want to list the cast here.
characters
A URL fragment for the characters to pass to JSPoker, e.g. #character=http://example.com/ruby.js#character=http://example.com/tom.js. (Yes, I know, but MediaWiki has no array type and I'm not doing a character1, character2, character3… dance.)
deck
Base URL of the deck (optional). Remember the trailing slash if it's a directory. See the JSPoker documentation for what it expects to find there.
sfw
One of the values to indicate how (un)safe for work it is from the JSPokerCharacter template

It is expected, if not strictly required, the the characters have individual entries in the character list which have their other details.