Difference between revisions of "Template:Infobox"

From Purple's Collection
Jump to navigationJump to search
m (Does this improve having multiple boxes on the same page?)
m (Fix defaults of #switch operation)
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
|colspan=2 align=center|{{#if: {{{image|}}} | [[Image:{{{image}}}|250px]] | {{#ifexist: Image:{{PAGENAME}}.jpg | [[Image:{{PAGENAME}}.jpg|250px]] | No image avaliable}} }}
+
|colspan=2 align=center|{{#if: {{{image|}}} | {{#ifexist: Image:{{{image}}} | [[Image:{{{image}}}|250px]] | No image avaliable [[Category:NeedsImage]] }} | {{#ifexist: Image:{{PAGENAME}}.jpg | [[Image:{{PAGENAME}}.jpg|250px]] | No image avaliable <includeonly>[[Category:NeedsImage]]</includeonly>}} }}
 
|-
 
|-
 
!colspan=2 class="title"|{{PAGENAME}}
 
!colspan=2 class="title"|{{PAGENAME}}
Line 14: Line 14:
 
!Status:
 
!Status:
 
|{{#if: {{{status|}}} |  
 
|{{#if: {{{status|}}} |  
  {{#switch: {{{status|}}} | in = <span style="color:green">In Collection</span> | <span style="color:red">status</span>}}
+
  {{#switch: {{{status}}} | in = <span style="color:green">In Collection</span> | #default = {{{status}}}}}
 
  | <span style="color:orange">Unknown</span> }}
 
  | <span style="color:orange">Unknown</span> }}
 
|-
 
|-
 
!Condition:
 
!Condition:
 
|{{#if: {{{state|}}} |  
 
|{{#if: {{{state|}}} |  
  {{#switch: {{{state|}}} | Good = <span style="color:green">Good</span> | Alright = <span style="color:orange">Alright</span> | Bad = <span style="color:red">Bad</span> | state }}
+
  {{#switch: {{{state}}} | Good = <span style="color:green">Good</span> | Alright = <span style="color:orange">Alright</span> | Bad = <span style="color:red">Bad</span> | #default = {{{state}}} }}
 
  | Unknown }}
 
  | Unknown }}
 
|-
 
|-
Line 27: Line 27:
 
!Notes:
 
!Notes:
 
|{{{notes|None}}}
 
|{{{notes|None}}}
 +
|-
 +
!Location:
 +
|{{{location|<span style="color:orange">Unknown</span>}}}
 
|}
 
|}
 
</div>
 
</div>

Latest revision as of 15:39, 18 October 2020

No image avaliable
Infobox
Specs: Unknown
Date of entry: Unknown
Status: Unknown
Condition: Unknown
Identifier: Not Available
Notes: None
Location: Unknown