Template:Real-Vetting

{{#if:

{{#vardefine:rating|{{lc:{{{rating|}}}}}}} {{#vardefine:status|{{lc:{{{status|}}}}}}}

{{#vardefine:background-color| {{#ifeq: | provisional | F5F5F5 | {{#switch: | great    = E4FFE4 | good     = F6FFE5 | trash    = FFEEEE | abandoned = C0C0C0 | testing  = {{#ifeq:  | meta | D8BFD8 | F0F0FF }} | trial    = F0CC7A | archived = F8F8F4 | #default = FFFFFF }} }} }}

{{#vardefine:border-color| {{#ifeq: | provisional | 696969 | {{#switch: | great    = 229922 | good     = 669011 | trash    = 992222 | abandoned = AAAAAA | testing  = {{#ifeq: {{#var:status}} | meta | 9400D3 | 000099 }} | trial    = FFA500 | archived = 602000 | #default = 000000 }} }} }}

{{#vardefine:icon| {{#switch: | great | good     = | trash    = | abandoned = | testing | trial    = | archived = | #default = }} }}

{{#vardefine:first paragraph| {{#ifeq: {{#var:status}} | meta | This build is in the metagame and deserves to be stored. | {{#ifeq: {{#var:status}} | provisional | {{#switch: | archived = '''This build was provisionally vetted {{lc:{{{category|}}}}}. This build was archived {{#if: {{{date|}}} | {{{date}}} | No date specified }}, for the following reason{{#if: {{{reason2|}}} | s }}:''' | #default = This build is provisionally vetted {{#var:rating}} pending more votes. }}   | {{#switch: {{#var:rating}} | abandoned = This build article seems to be abandoned. | testing | trial    = This build is in the {{#var:rating}} phase. | archived = This build was archived {{#if: {{{date|}}} | {{{date}}} | No date specified }}, for the following reason{{#if: {{{reason2|}}} | s }}:  | #default = The PvXwiki community finds this to be a {{#var:rating}} build. }}  }} }} }}

{{#vardefine:second paragraph| {{ #if: {{#var:rating}} | {{#switch: {{#var:rating}} | testing = {{#ifeq: {{#var:status}} | meta | However, it has not received a rating. }} Please join the discussion and [{{fullurl:{{FULLPAGENAME}}|action=rate}} rate] this build if you have experience with this or closely related builds. | trial = You can help by discussing changes on its talk page. The vetting procedure for this build will start once it has entered the next phase, testing. No ratings are to be submitted at this stage. | great = This build has received {{#ifeq: {{#var:status}} | provisional | a provisional | an overall }} [{{fullurl:{{FULLPAGENAME}}|action=rate}} rating] in the range from 4.75 to 5.0 and thus qualifies for the highest category of working builds: Great. | good = This build has received {{#ifeq: {{#var:status}} | provisional | a provisional | an overall }} [{{fullurl:{{FULLPAGENAME}}|action=rate}} rating] in the range from 3.75 to < 4.75 and thus qualifies for the lower category of working builds: Good. | trash = This build has received an overall [{{fullurl:{{FULLPAGENAME}}|action=rate}} rating] below 3.75 and thus does not qualify for being stored on PvXwiki. It is subject to deletion 2 weeks from {{{date|the date this tag was applied}}}. | abandoned = This build article seems to be abandoned. If you make meaningful edits please replace this tag. This build is subject to deletion 2 weeks from {{{date|the date this tag was applied}}}. | archived = }} }}
 * {{#if: {{{reason1|}}} | {{{reason1}}} |  NO REASON SPECIFIED  }}{{#if: {{{reason2|}}} |
 * {{{reason2}}} }}{{#if: {{{reason3|}}} |
 * {{{reason3}}} }}{{#if: {{{reason4|}}} |
 * {{{reason4}}} }}{{#if: {{{reason5|}}} |
 * {{{reason5}}} }}{{#if: {{{reason6|}}} |
 * {{{reason6}}} }}{{#if: {{{reason7|}}} |
 * {{{reason7}}} }}{{#if: {{{reason8|}}} |
 * {{{reason8}}} }}{{#if: {{{reason9|}}} |
 * {{{reason9}}} }}
 *  NO RATING SPECIFIED  {{#switch: {{NAMESPACE}} | Build | Archive = }} }}

{{#vardefine:type boxes| {{#if:  | {{Mssg|{{#var:rating}}|{{{1}}}}} }}{{#if: {{{2|}}}  | {{Mssg|{{#var:rating}}|{{{2}}}}} }}{{#if: {{{3|}}}  | {{Mssg|{{#var:rating}}|{{{3}}}}} }}{{#if: {{{4|}}}  | {{Mssg|{{#var:rating}}|{{{4}}}}} }}{{#if: {{{5|}}}  | {{Mssg|{{#var:rating}}|{{{5}}}}} }}{{#if: {{{6|}}}  | {{Mssg|{{#var:rating}}|{{{6}}}}} }}{{#if: {{{7|}}}  | {{Mssg|{{#var:rating}}|{{{7}}}}} }}{{#if: {{{8|}}}  | {{Mssg|{{#var:rating}}|{{{8}}}}} }}{{#if: {{{9|}}}  | {{Mssg|{{#var:rating}}|{{{9}}}}} }}{{#if: {{{10|}}} | {{Mssg|{{#var:rating}}|{{{10}}}}} }}{{#if: {{{11|}}} | {{Mssg|{{#var:rating}}|{{{11}}}}} }}{{#if: {{{12|}}} | {{Mssg|{{#var:rating}}|{{{12}}}}} }}{{#if: {{{13|}}} | {{Mssg|{{#var:rating}}|{{{13}}}}} }} }}

{{#vardefine:rating link| {{#if: {{{category|}}} | {{#switch: {{lc:{{{category}}}}} | meta = Meta | great = Great | good = Good | other = Other | tested = Tested }} | No category specified {{#switch: {{NAMESPACE}} | Build | Archive = }} }} }}

{{#vardefine:category| {{#ifeq: {{#var:status}} | meta | {{#if: {{{1|}}} | {{Mssg2|Meta|{{{1}}}}}  }}{{#if: {{{2|}}}  | {{Mssg2|Meta|{{{2}}}}}  }}{{#if: {{{3|}}}  | {{Mssg2|Meta|{{{3}}}}}  }}{{#if: {{{4|}}}  | {{Mssg2|Meta|{{{4}}}}}  }}{{#if: {{{5|}}}  | {{Mssg2|Meta|{{{5}}}}}  }}{{#if: {{{6|}}}  | {{Mssg2|Meta|{{{6}}}}}  }}{{#if: {{{7|}}}  | {{Mssg2|Meta|{{{7}}}}}  }}{{#if: {{{8|}}}  | {{Mssg2|Meta|{{{8}}}}}  }}{{#if: {{{9|}}}  | {{Mssg2|Meta|{{{9}}}}}  }}{{#if: {{{10|}}} | {{Mssg2|Meta|{{{10}}}}} }}{{#if: {{{11|}}} | {{Mssg2|Meta|{{{11}}}}} }}{{#if: {{{12|}}} | {{Mssg2|Meta|{{{12}}}}} }}{{#if: {{{13|}}} | {{Mssg2|Meta|{{{13}}}}} }} }}{{#ifeq: {{#var:status}} | provisional | {{#switch: {{#var:rating}} | great | good | trash   = | #default = }} }}

{{#switch: {{#var:rating}} | great    = | good     = | trial    = | testing  = | archived = }}

{{#if: {{{date|}}} | | {{#switch: {{#var:rating}} | abandoned | trash    = | archived = }} }}

{{#if: {{{1|}}} |  }} {{#if: {{{2|}}} |  }} {{#if: {{{3|}}} |  }} {{#if: {{{4|}}} |  }} {{#if: {{{5|}}} |  }} {{#if: {{{6|}}} |  }} {{#if: {{{7|}}} |  }} {{#if: {{{8|}}} |  }} {{#if: {{{9|}}} |  }} {{#if: {{{10|}}} | }} {{#if: {{{11|}}} | }} {{#if: {{{12|}}} | }} {{#if: {{{13|}}} | }}

{{#if: {{{#var:rating}} | }} {{#if: {{#var:status}} | }} }}

}}

Usage
Keyword arguments:
 * rating: X can be any of Trial, Testing, Great, Good, Archived, Trash or Abandoned. Must be defined or an error will be displayed and the build will be added to Category:Builds missing rating.


 * status: used for provisional and meta builds as follows (omit if build has neither status):
 * meta
 * Should not be used if rating is not Good, Great or Testing.
 * Testing builds should only have 'status=meta' if they are for one of the gametypes allowed to bypass vetting in this manner (see here).
 * provisional
 * Adds builds to Category:Provisional builds.
 * If the rating is not Trash, Good or Great, the build will instead be added to Category:Provisional needing rating.
 * date: should be provided if rating is Archived, Trash or Abandoned.
 * category: should be provided if rating is Archived. Should be Meta, Great, Good, Other or Tested depending on where the build resided before archival. Otherwise build will be added to Category:Archived needing category.
 * reason1-reason9: at least one should be provided if rating is Archived. Otherwise build will be added to Category:Archived needing reason.

Unnamed parameters:
 * Up to 13 gameplay types
 * Builds with no gameplay types defined will be added to Category:Builds missing type.