Difference between revisions of "Template:Argbox"
From Game Detectives Wiki
| [unchecked revision] | [unchecked revision] |
| Line 10: | Line 10: | ||
{{!}}- style="background-color:#eeeeee" | {{!}}- style="background-color:#eeeeee" | ||
}} | }} | ||
| − | + | {{#if:{{{type|}}}| | |
| + | {{!}}Type | ||
| + | {{!}}style="text-align:center;"{{!}}{{{type}}} | ||
| + | {{!}}- style="background-color:#eeeeee" | ||
| + | }} | ||
{{#if:{{{status|}}}| | {{#if:{{{status|}}}| | ||
{{!}}Status | {{!}}Status | ||
| − | {{!}}{{#switch:{{{status}}}|Completed=style="text-align:center; background-color: #aaffaa"|On Going=style="text-align:center; background-color: #5ac3ec"|Abandoned=style="text-align:center; background-color: #fb5757"|On Hold=style="text-align:center; background-color: #F37338"|style="text-align:center; | + | {{!}}{{#switch:{{{status}}}|Completed=style="text-align:center; background-color: #aaffaa"|On Going=style="text-align:center; background-color: #5ac3ec"|Abandoned=style="text-align:center; background-color: #fb5757"|On Hold=style="text-align:center; background-color: #F37338"|style="text-align:center;"}}{{!}}{{{status}}} |
{{!}}- style="background-color:#eeeeee" | {{!}}- style="background-color:#eeeeee" | ||
}} | }} | ||
| Line 46: | Line 50: | ||
| creator = Valve | | creator = Valve | ||
| status = Completed | | status = Completed | ||
| + | | type = official ARG | ||
| discovered = 01-01-1970 | | discovered = 01-01-1970 | ||
| completed = 01-01-1971 | | completed = 01-01-1971 | ||
| Line 59: | Line 64: | ||
| creator = [[Valve]] | | creator = [[Valve]] | ||
| status = Completed | | status = Completed | ||
| + | | type = official ARG | ||
| discovered = 01-01-1970 | | discovered = 01-01-1970 | ||
| completed = 01-01-1971 | | completed = 01-01-1971 | ||
| Line 113: | Line 119: | ||
| | | | ||
| | | | ||
| + | | String | ||
| + | | Optional | ||
| + | |- | ||
| + | | type | ||
| + | | the type of the arg | ||
| + | | | ||
| + | | | ||
| String | | String | ||
| Optional | | Optional | ||
Revision as of 00:14, 21 June 2016
| Argbox | |
|---|---|
- 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
| creator = Valve
| status = Completed
| type = official ARG
| discovered = 01-01-1970
| completed = 01-01-1971
| timeline = [[Valve]]
}}
Results in...
| Valve ARG | |
|---|---|
| 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 |
| creator | creator of the arg | String | Optional | ||
| type | the type of the arg | String | Optional | ||
| status | status of the arg | On Going, On Hold, Completed or Abandoned
|
String | Optional | |
| discovered | time of the arg discovery | Date | Optional | ||
| completed | time of the arg completion | Date | Optional | ||
| timeline | timeline of the arg | Reference | Optional |
