Difference between revisions of "Template:Infobox"

From Dvorak - A Blank-Card Game
Jump to navigationJump to search
(Added playability, and some extra code)
(Added completion status, tried to fix bugs)
Line 11: Line 11:
! Players
! Players
| {{{players|Unknown}}}
| {{{players|Unknown}}}
|-
! Completion status
| {{#switch: {{{completion}}}
| Abandoned = This is an [[:Category:Abandoned decks|'''abandoned''' deck]]. It is not playable (presumably due to being incomplete). [[Category:Abandoned decks]]
| Unfinished = This is an [[:Category:Unfinished decks|'''unfinished''' deck]]. It is incomplete. [[Category:Unfinished decks]]
| Finished = This is an [[:Category:Finished decks|'''finished''' deck]]. It is complete. [[Category:Finished decks]]
}}
{{ #ifeq: {{{completion}}}|Abandoned||
|-  
|-  
! Playability status
! Playability status
| {{#switch: {{{playability}}}
| {{#switch: {{{playability}}}
| Abandoned = This is an [[:Category:Abandoned decks|'''abandoned''' deck]]. It is not playable (presumably due to being incomplete). [[Category:Abandoned decks]]
  | Unplayable = This is an [[:Category:Unplayable decks|'''unplayable''' deck]]. It is not playable (presumably due to being incomplete). [[Category:Unplayable decks]]  
  | Unplayable = This is an [[:Category:Unplayable decks|'''unplayable''' deck]]. It is not playable (presumably due to being incomplete). [[Category:Unplayable decks]]  
  | Untested = This is an [[:Category:Untested decks|'''untested''' deck]]. Its cards are complete, but it hasn't yet been tested. [[Category:Untested decks]]
  | Untested = This is an [[:Category:Untested decks|'''untested''' deck]]. Its cards are complete, but it hasn't yet been tested. [[Category:Untested decks]]
Line 22: Line 29:
  | Star = [[Image:Star.gif|32px|right]] This is a [[:Category:Star decks|'''star''' deck]]. It's playable, and has been selected as one of the best decks on the site. [[Category:Star decks]]
  | Star = [[Image:Star.gif|32px|right]] This is a [[:Category:Star decks|'''star''' deck]]. It's playable, and has been selected as one of the best decks on the site. [[Category:Star decks]]
  | This deck has not been categorised. <includeonly>[[Category:Uncategorised decks]]</includeonly>
  | This deck has not been categorised. <includeonly>[[Category:Uncategorised decks]]</includeonly>
}}
{{ #if: {{{playability|Abandoned}}}||
|-
! Completion status
| {{#switch: {{{completion}}}
| Unfinished = This is an [[:Category:Unfinished decks|'''unfinished''' deck]]. It is incomplete. [[Category:Unfinished decks]]
| Finished = This is an [[:Category:Finished decks|'''finished''' deck]]. It is complete. [[Category:Finished decks]]
}}
}}
|-  
|-  
Line 105: Line 105:
'''players''' is the number of players that the deck is suited to. If left blank it defaults to "unknown".
'''players''' is the number of players that the deck is suited to. If left blank it defaults to "unknown".


'''playability''' is the playability status of the deck: its value can be "abandoned", "unplayable", "untested", "playable", "proven", "polished", "star".
'''completion''' is the completion status of the deck: its value can be "abandoned", "unfinished", "finished".
 
'''playability''' is the playability status of the deck: its value can be "unplayable", "untested", "playable", "proven", "polished", "star".


'''status''' is the development status of the deck: its value can be "unfinished", "nomic", "CCG set", "CCG deck", "subpage" or "unfinishedplayable".
'''status''' is the development status of the deck: its value can be "nomic", "CCG set", "CCG deck", or "subpage".


'''unlocked''' defines whether site visitors are encouraged from contributing cards, or not. If set to "true", visitors are told "This deck is '''under construction'''. Anyone is welcome to contribute - check the talk page to find out more." - if left blank, visitors are warned that "This deck is '''locked'''. Further cards should not be added - if you have any suggestions, you can leave them on the talk page for the deck creator."
'''unlocked''' defines whether site visitors are encouraged from contributing cards, or not. If set to "true", visitors are told "This deck is '''under construction'''. Anyone is welcome to contribute - check the talk page to find out more." - if left blank, visitors are warned that "This deck is '''locked'''. Further cards should not be added - if you have any suggestions, you can leave them on the talk page for the deck creator."
</noinclude>
</noinclude>

Revision as of 05:48, 14 July 2010

Infobox
Designer
Date Unknown
Players Unknown
Completion status

{{ #ifeq: {{{completion}}}|Abandoned||

Playability status This deck has not been categorised.
Additional Ruleset
This deck has not been categorised.
Padlock.gif
This deck is locked. Further cards should not be added - if you have any suggestions, you can leave them on the talk page for the deck creator.
Cards.gif Print this deck

Telnet.gif Generate MUSHcode

Cards.gif Generate Lackey export


Usage

Note : a french version of this template exists.

{{Infobox
| title =
| designer =
| designer2 =
| designer3 =
| designer4 =
| designer5 =
| designer6 =
| designer7 =
| date =
| players =
| playability =
| completion =
| mechanic =
| advancedruleset = 
| unlocked =
}}

title is the title of the deck. If left blank it defaults to the page title.

designer is the designer of the deck. If this exactly matches a wiki user name, it will link automatically to that user's page.

designer2 through to designer7 are the other designers of the deck, again linking to wiki profiles where appropriate. For multiple designers, use "designer" for the first, and these for the rest.

date is the date that the deck was created, if any. If left blank it defaults to "unknown".

players is the number of players that the deck is suited to. If left blank it defaults to "unknown".

completion is the completion status of the deck: its value can be "abandoned", "unfinished", "finished".

playability is the playability status of the deck: its value can be "unplayable", "untested", "playable", "proven", "polished", "star".

status is the development status of the deck: its value can be "nomic", "CCG set", "CCG deck", or "subpage".

unlocked defines whether site visitors are encouraged from contributing cards, or not. If set to "true", visitors are told "This deck is under construction. Anyone is welcome to contribute - check the talk page to find out more." - if left blank, visitors are warned that "This deck is locked. Further cards should not be added - if you have any suggestions, you can leave them on the talk page for the deck creator."