Template:JSPokerGroup: Difference between revisions
From questden
Jump to navigationJump to search
(Create template for groups, to keep the formatting consistent) |
m (The usual horrors. No, I can't preview this. Templates.) |
||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
Unlike JSPokerCharacter, JSPoker itself doesn't give a monkey's about this template. | Unlike JSPokerCharacter, JSPoker itself doesn't give a monkey's about this template. | ||
It's purely to make things neat on the wiki. | It's purely to make things neat on the wiki. | ||
The URL generation is actually a bit broken since it will insert a # even if deck isn't provided. | |||
This is due to MediaWiki choking on a million dicks and interpreting it as the start of a numbered list if it's within the parser function argument expansion. | |||
--></noinclude><includeonly>|- | --></noinclude><includeonly>|- | ||
|'''[http://poker.lionsphil.co.uk/{{{characters}}}{{#if:{{{deck|}}}| | |'''[http://poker.lionsphil.co.uk/{{{characters}}}#{{#if:{{{deck|}}}|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! --> |
Latest revision as of 19:14, 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 acharacter1
,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.