Difference between revisions of "Template:AwardBox"

From Hack Forums Wiki
(add goal type)
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{Infobox
{{Infobox
|  bodystyle = overflow: auto; width: 20%; background: #333333; color: #d3d3d3; float: right;
|  bodystyle = overflow: auto; width: 20%; background: transparent; color: #d2d2d2; float: right; border-collapse: collapse; border-style: hidden; border-radius: 5px; box-shadow: 0 0 0 4px #1f1f1f; margin: 5px;
|  above     = <u>{{PAGENAME}}</u>
|  above     = {{PAGENAME}}
header1  =
abovestyle = background: #1f1f1f; font-weight: bold; font-size: 16px; text-align: center; color: white; padding: 0px 0px 3px 0px;
label1    =
|  labelstyle = border: 2px solid #1f1f1f; padding-left: 5px;
|  image     = [[File:{{{PAGENAME}}} (Award).png|center]]
datastyle  = border: 2px solid #1f1f1f; padding-left: 5px;
data1    = <i>{{{AwardDesc}}}</i><br><br>
|  image     = [[File:{{PAGENAME}} (Award).png|center|link=]]
label2    = Type:      |   data2 = {{{AwardType}}}
caption    = <i>{{{AwardDesc}}}</i><br>
<!--label3    = {{#ifeq:{{#expr: {{Table row counter|page={{PAGENAME}}}}}}||{{Empty}}|Total Recipients:}}                |  data3 = {{#ifeq:{{#expr: {{Table row counter|page={{PAGENAME}}}}}}||{{Empty}}|{{#expr: {{Table row counter|page={{{PAGENAME}}}}} - 1}}}}-->
label1    = Type:      | data1 = {{{AwardType}}}
|  label4    = Award ID:  |   data4 = [http://www.hackforums.net/myawards.php?awid={{{AwardID}}} <span style="color: white">{{{AwardID}}}</span>]
label2    = Award ID:  | data2 = [http://www.hackforums.net/myawards.php?awid={{{AwardID}}} <span style="color: white;">{{{AwardID}}}</span>]
}}
}}


Line 20: Line 20:
{{AwardNavbox}}
{{AwardNavbox}}
[[Category:Awards]]
[[Category:Awards]]
{{#switch:{{{AwardType|}}}|Regular = [[Category:Regular Awards]]|Paid = [[Category:Paid Awards]]|Limited = [[Category:Limited Awards]]|Discontinued = [[Category:Discontinued Awards]]|}}
{{#switch:{{{AwardType|}}}|Regular = [[Category:Regular Awards]]|Paid = [[Category:Paid Awards]]|Limited = [[Category:Limited Awards]]|Goal = [[Category:Goal Awards]]|Discontinued = [[Category:Discontinued Awards]]|}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
This template is used on Award pages (any article with the Award: namespace), and is used to describe the specific details of said award.
This template is used on Award pages (any article with the Award: namespace), and is used to describe the specific details of said award.
==Documentation==
===AwardDesc===
The official description of the award as it appears on [http://www.hackforums.net/myawards.php the Awards page].
===AwardType===
Valid arguments are Regular, Paid, Limited, Goal, Discontinued.
====Regular====
Anything that can be given out normally, and is not explicitly defined as Limited in its description or by Omniscient.
====Paid====
Anything that you can purchase with money; all awards on [http://www.hackforums.net/buyawards.php this page] are Paid Awards.
====Limited====
Anything explicitly defined as being in limited quantity. The only two that fall into this category are the [[Qwazz Star]] and [[Gavel of Dredd]].
====Goal====
Anything that is an award goal.
====Discontinued====
Anything that is no longer being distributed towards members. Awards that fall into this category often say that they're no longer being given out in their description.
===AwardID===
ID number of the award from the Awards Page.
===AwardDetails===
Go into more details on what the award is about, if it has a history or if there's anything special about it. Be creative.
===AwardRecip===
Wiki Table of the Award Recipients. Blank template is below.
<pre>
<!--DO NOT CHANGE ANYTHING BELOW ME -->
{{{!}} class="wikitable"
{{!}}-
! Recipient Name !! Reason !! Date Given
{{!}}-
<!--DO NOT CHANGE ANYTHING ABOVE ME -->
{{!}} Name Here {{!}}{{!}} Reason Here {{!}}{{!}} Date Here
{{!}}-
{{!}} Name Here {{!}}{{!}} Reason Here {{!}}{{!}} Date Here
{{!}}-
{{!}} Name Here {{!}}{{!}} Reason Here {{!}}{{!}} Date Here
{{!}}-
{{!}} Name Here {{!}}{{!}} Reason Here {{!}}{{!}} Date Here
{{!}}-
{{!}}}
}}
</pre>
A blank version of the template can be found below.
<pre>
<pre>
{{AwardBox
{{AwardBox
Line 37: Line 85:
{{AwardBox
{{AwardBox
| AwardDesc    = Full description of the award, as it appears on awards.php
| AwardDesc    = Full description of the award, as it appears on awards.php
| AwardType    = Purchased, Earned, Limited, or Discontinued.
| AwardType    = Paid, Regular, Limited, Discontinued.
| AwardID      = The exact Award ID #.
| AwardID      = The exact Award ID #.
| AwardDetails = If details for the award are public (donator awards), list them here. Else, detail why the award is usually given out.
| AwardDetails = If details for the award are public (donator awards), list them here. Else, detail why the award is usually given out.

Latest revision as of 14:36, 31 January 2022


This template is used on Award pages (any article with the Award: namespace), and is used to describe the specific details of said award.

Documentation

AwardDesc

The official description of the award as it appears on the Awards page.

AwardType

Valid arguments are Regular, Paid, Limited, Goal, Discontinued.

Regular

Anything that can be given out normally, and is not explicitly defined as Limited in its description or by Omniscient.

Anything that you can purchase with money; all awards on this page are Paid Awards.

Limited

Anything explicitly defined as being in limited quantity. The only two that fall into this category are the Qwazz Star and Gavel of Dredd.

Goal

Anything that is an award goal.

Discontinued

Anything that is no longer being distributed towards members. Awards that fall into this category often say that they're no longer being given out in their description.

AwardID

ID number of the award from the Awards Page.

AwardDetails

Go into more details on what the award is about, if it has a history or if there's anything special about it. Be creative.

AwardRecip

Wiki Table of the Award Recipients. Blank template is below.

<!--DO NOT CHANGE ANYTHING BELOW ME -->
{{{!}} class="wikitable"
{{!}}-
! Recipient Name !! Reason !! Date Given
{{!}}-
<!--DO NOT CHANGE ANYTHING ABOVE ME -->
{{!}} Name Here {{!}}{{!}} Reason Here {{!}}{{!}} Date Here
{{!}}-
{{!}} Name Here {{!}}{{!}} Reason Here {{!}}{{!}} Date Here
{{!}}-
{{!}} Name Here {{!}}{{!}} Reason Here {{!}}{{!}} Date Here
{{!}}-
{{!}} Name Here {{!}}{{!}} Reason Here {{!}}{{!}} Date Here
{{!}}-
{{!}}}
}}

A blank version of the template can be found below.

{{AwardBox
| AwardDesc    = 
| AwardType    = 
| AwardID      = 
| AwardDetails = 
| AwardRecip   = 
}}

Example usage is below.

{{AwardBox
| AwardDesc    = Full description of the award, as it appears on awards.php
| AwardType    = Paid, Regular, Limited, Discontinued.
| AwardID      = The exact Award ID #.
| AwardDetails = If details for the award are public (donator awards), list them here. Else, detail why the award is usually given out.
| AwardRecip   = Table of Award Recipients. When making the table, the pipe character must be escaped! Use {{!}} to do it.  
}}