Difference between revisions of "Template:Expansionbox"
m (linkified) |
(Credits to subpage, added fields and documentation.) |
||
Line 1: | Line 1: | ||
− | <noinclude> | + | <noinclude>{{Template Overview |
+ | |usedon=[[expansion]] | ||
+ | |purpose=list pertinent expansion information | ||
+ | |template=<nowiki>{{Expansionbox | ||
+ | |title = | ||
+ | |image = | ||
+ | |release = | ||
+ | |developer = | ||
+ | |publisher = | ||
+ | |website = | ||
+ | }}</nowiki> | ||
+ | |display={{Expansionbox}}<br clear="all"> | ||
+ | |parameters= | ||
+ | |category=Information | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=title | ||
+ | |usage=optional | ||
+ | |takes=a string | ||
+ | |denotes=the name of the expansion | ||
+ | |generates=the title of the expansionbox. Defaults to the article name if no title is provided | ||
+ | |validvalues=Any string. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=image | ||
+ | |usage=mandatory | ||
+ | |takes=a file name and extension | ||
+ | |denotes=the image to be used | ||
+ | |generates=the box art image for the expansionbox | ||
+ | |validvalues=Filename.png. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=release | ||
+ | |usage=mandatory | ||
+ | |takes=a date | ||
+ | |denotes=the release date of the expansion | ||
+ | |generates=the release date of the expansion | ||
+ | |validvalues=June 1, 2010. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=developer | ||
+ | |usage=mandatory | ||
+ | |takes=a string | ||
+ | |denotes=the developer of the expansion | ||
+ | |generates=the developer of the expansion | ||
+ | |validvalues=A string. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=publisher | ||
+ | |usage=mandatory | ||
+ | |takes=a string | ||
+ | |denotes=the publisher of the expansion | ||
+ | |generates=the publisher of the expansion | ||
+ | |validvalues=A string. | ||
+ | }} | ||
+ | {{Template Parameter | ||
+ | |name=website | ||
+ | |usage=optional | ||
+ | |takes=a url | ||
+ | |denotes=the website of the expansion | ||
+ | |generates=the link to the official website of the expansion | ||
+ | |validvalues=A url without the <nowiki>http://</nowiki>. | ||
+ | }}</noinclude><includeonly> | ||
{| class="uoguidetable leftalign" style="float:right; font-size:12px; margin:1px 1px 1em 1em; width:250px;" | {| class="uoguidetable leftalign" style="float:right; font-size:12px; margin:1px 1px 1em 1em; width:250px;" | ||
! colspan="2" | {{{title|{{PAGENAME}}}}} | ! colspan="2" | {{{title|{{PAGENAME}}}}} | ||
|- | |- | ||
− | | colspan="2" style="text-align:center;" | [[Image:{{{ | + | | colspan="2" style="text-align:center;" | [[Image:{{{image}}}|250px|{{PAGENAME}} box art]] |
|- | |- | ||
! style="text-align:right;" | Release date: | ! style="text-align:right;" | Release date: | ||
− | | {{{ | + | | {{{release}}} |
− | {{#if: {{{website| | + | |- |
+ | ! style="text-align:right;" | Developer: | ||
+ | | {{{developer}}} | ||
+ | |- | ||
+ | ! style="text-align:right;" | Publisher: | ||
+ | | {{{publisher}}} | ||
+ | {{#if: {{{website|}}}| | ||
{{!}}- | {{!}}- | ||
! style="text-align:right;" {{!}} Website: | ! style="text-align:right;" {{!}} Website: | ||
− | {{!}} [http://{{{website | + | {{!}} [http://{{{website}}} {{{website}}}] |
}} | }} | ||
|- | |- | ||
− | ! colspan="2" style="text-align:center;" | | + | ! colspan="2" style="text-align:center;" | [[{{PAGENAME}}/Credits|Credits]] |
− | + | |}</includeonly> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | [[ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |} | + |
Revision as of 05:05, 8 June 2012
Template:Expansionbox is designed for use on expansion pages to list pertinent expansion information.
Template
{{Expansionbox |title = |image = |release = |developer = |publisher = |website = }}
Display
Expansionbox | |
---|---|
[[Image:{{{image}}}|250px|Expansionbox box art]] | |
Release date: | {{{release}}} |
Developer: | {{{developer}}} |
Publisher: | {{{publisher}}} |
Credits |
Parameters
title
- Usage: Optional
- Description: The title parameter takes a string denoting the name of the expansion. This is used to generate the title of the expansionbox. Defaults to the article name if no title is provided.
- Valid Value(s): Any string.
image
- Usage: Mandatory
- Description: The image parameter takes a file name and extension denoting the image to be used. This is used to generate the box art image for the expansionbox.
- Valid Value(s): Filename.png.
release
- Usage: Mandatory
- Description: The release parameter takes a date denoting the release date of the expansion. This is used to generate the release date of the expansion.
- Valid Value(s): June 1, 2010.
developer
- Usage: Mandatory
- Description: The developer parameter takes a string denoting the developer of the expansion. This is used to generate the developer of the expansion.
- Valid Value(s): A string.
publisher
- Usage: Mandatory
- Description: The publisher parameter takes a string denoting the publisher of the expansion. This is used to generate the publisher of the expansion.
- Valid Value(s): A string.
website
- Usage: Optional
- Description: The website parameter takes a url denoting the website of the expansion. This is used to generate the link to the official website of the expansion.
- Valid Value(s): A url without the http://.