Difference between revisions of "Template:Argbox"

From Game Detectives Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Adding a parameter for a generated link to a Hall of Fame subpage. Rewriting/fixing the parameters table)
Line 33: Line 33:
 
{{!}}Timeline
 
{{!}}Timeline
 
{{!}}style="text-align:center;"{{!}}{{{timeline}}}
 
{{!}}style="text-align:center;"{{!}}{{{timeline}}}
 +
{{!}}- style="background-color:#eeeeee"
 +
}}
 +
{{#ifeq:{{{halloffame|}}}|true|
 +
{{!}}Hall of Fame
 +
{{!}}style="text-align:center;"{{!}}[[{{FULLPAGENAME}}/Hall of Fame]]
 
{{!}}- style="background-color:#eeeeee"
 
{{!}}- style="background-color:#eeeeee"
 
}}
 
}}
Line 97: Line 102:
 
|-
 
|-
 
| name
 
| name
| the name of the arg infobox
+
| The name of the ARG infobox
 
| Title of the current page
 
| Title of the current page
 
|
 
|
Line 104: Line 109:
 
|-
 
|-
 
| image
 
| image
| the thumb of the arg infobox
+
| The thumb of the ARG infobox
 
|<code>Image:Example.png</code>
 
|<code>Image:Example.png</code>
 
| any valid link from local source or external
 
| any valid link from local source or external
Line 111: Line 116:
 
|-
 
|-
 
| imagewidth
 
| imagewidth
| width of the thumb image of the arg info box
+
| Width of the thumb image of the ARG info box
 
|<code>250</code>
 
|<code>250</code>
 
|any valid integer
 
|any valid integer
Line 118: Line 123:
 
|-
 
|-
 
| description
 
| description
| short description of the arg
+
| Short description of the ARG
 
|  
 
|  
 
|
 
|
Line 125: Line 130:
 
|-
 
|-
 
| creator
 
| creator
| creator of the arg
+
| Creator of the ARG
 
|  
 
|  
 
|
 
|
Line 132: Line 137:
 
|-
 
|-
 
| type
 
| type
| the type of the arg
+
| The type of the ARG
|
 
 
|  
 
|  
 +
| <code>Official</code>, <code>Independent</code>, <code>Community</code>
 
| String
 
| String
 
| Optional
 
| Optional
 
|-
 
|-
 
| status
 
| status
| status of the arg
+
| Status of the ARG
 
|  
 
|  
| <code>On Going</code>, <code>On Hold</code>, <code>Completed</code> or <code>Abandoned</code>
+
| <code>Active</code>, <code>On Hold</code>, <code>Completed</code> or <code>Abandoned</code>
 
| String
 
| String
 
| Optional
 
| Optional
 
|-
 
|-
 
| discovered
 
| discovered
| time of the arg discovery
+
| Date of the ARG discovery, [[:Meta:Style Guide#Date Formats|YYYY-MM-DD]]
 
|  
 
|  
 
|
 
|
Line 153: Line 158:
 
|-
 
|-
 
| completed
 
| completed
| time of the arg completion
+
| Date of the ARG completion
 
|  
 
|  
 
|
 
|
Line 160: Line 165:
 
|-
 
|-
 
| timeline
 
| timeline
| timeline of the arg
+
| Wikilink to the timeline article of the ARG
 
|  
 
|  
 
|
 
|
| Reference
+
| String
 +
| Optional
 +
|-
 +
| halloffame
 +
| Wether to render a link to a Hall of Fame
 +
|
 +
| <code>true</code> or emtpy
 +
| Boolean
 
| Optional  
 
| Optional  
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 15:54, 2 December 2016

Argbox

Example.png


Description
This template is used to create an arg infobox.
Syntax
Type {{argbox}} somewhere, with parameters as shown below.
Sample output
{{argbox
| float       = left
| name        = Valve ARG
| image       = File:Example.png
| imagewidth  = 150
| description = This it the description of an arg, I somehow forgot about it
| creator     = Valve
| type        = Official ARG
| status      = Completed
| discovered  = 01-01-1970
| completed   = 01-01-1971
| timeline    = [[Valve]]
}}

Results in...

Valve ARG
Completed on 01-01-1971
Example.png
This it the description of an arg, I somehow forgot about it
Type official ARG
Creator Valve
Discovered 01-01-1970
Completed 01-01-1971
Timeline Valve

Parameters

Parameter Description Default Accepted Values Type Status
float box is aligned to the the left or the right. right left or right String Optional
clear content is delayed until just the right or left column is complete. right left or right String Optional
name The name of the ARG infobox Title of the current page String Optional
image The thumb of the ARG infobox Image:Example.png any valid link from local source or external String Optional
imagewidth Width of the thumb image of the ARG info box 250 any valid integer Int Optional
description Short description of the ARG String Optional
creator Creator of the ARG String Optional
type The type of the ARG Official, Independent, Community String Optional
status Status of the ARG Active, On Hold, Completed or Abandoned String Optional
discovered Date of the ARG discovery, YYYY-MM-DD Date Optional
completed Date of the ARG completion Date Optional
timeline Wikilink to the timeline article of the ARG String Optional
halloffame Wether to render a link to a Hall of Fame true or emtpy Boolean Optional