Difference between revisions of "Template:AwardBox"

From Hack Forums Wiki
Line 6: Line 6:
|  header1  =
|  header1  =
|  label1    =
|  label1    =
|  data1    = <nowiki>''</nowiki><i>{{{AwardDesc}}}</i><nowiki>''</nowiki><br><br>
|  data1    = <i>{{{AwardDesc}}}</i><br><br>
|  label2    = Type:                                                                                                       |  data2 = {{{AwardType}}}
|  label2    = Type:       |  data2 = {{{AwardType}}}
<!--|  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}}}}-->
<!--|  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}}}}-->
|  label4    = Award ID:                                                                                                   |  data4 = [http://www.hackforums.net/myawards.php?awid={{{AwardID}}} <span style="color: white">{{{AwardID}}}</span>]
|  label4    = Award ID:   |  data4 = [http://www.hackforums.net/myawards.php?awid={{{AwardID}}} <span style="color: white">{{{AwardID}}}</span>]
[[Category:Awards]]
{{#switch:{{{AwardType|}}}|Regular = [[Category:Regular Awards]]|Paid = [[Category:Paid Awards]]|Limited = [[Category:Limited Awards]]|Discontinued = [[Category:Discontinued Awards]]|}}
}}
}}
==Details==
==Details==
{{#if: {{{AwardDetails|}}}|{{{AwardDetails}}}|There are no known details about this award at this time.}}
{{#if: {{{AwardDetails|}}}|{{{AwardDetails}}}|There are no known details about this award at this time.}}
Line 20: Line 19:


{{AwardNavbox}}
{{AwardNavbox}}
[[Category:Awards]]
{{#switch:{{{AwardType|}}}|Regular = [[Category:Regular Awards]]|Paid = [[Category:Paid Awards]]|Limited = [[Category:Limited Awards]]|Discontinued = [[Category:Discontinued Awards]]|}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>

Revision as of 14:04, 10 July 2015


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

{{AwardBox
| AwardName    = 
| AwardPic     = 
| AwardDesc    = 
| AwardStatus  = 
| AwardFounded = 
| AwardType    = 
| AwardID      = 
| AwardDetails = 
| AwardRecip   = 
}}

Example usage is below.

{{AwardBox
| AwardName    = Full name of the award, as it appears on awards.php
| AwardPic     = Image of the award (no File: is necessary, but include (Award))
| AwardDesc    = Full description of the award, as it appears on awards.php
| AwardType    = Purchased, Earned, Limited, or 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.  
}}