Difference between revisions of "Gitem"
From Sega Retro
(added error management) |
|||
Line 1: | Line 1: | ||
<includeonly>{{clearvar|fileerror}}{{#ifeq:{{#mediawidth:{{{1|}}}}}|0|{{#vardefine:fileerror|1}}}}{{#iferror:{{#mediawidth:{{{1|}}}}}|{{#vardefine:fileerror|2}}|}}{{#if:{{{1|}}}||{{#vardefine:fileerror|3}}}}<div style="display:inline-block; vertical-align:top; margin-left:9px; margin-bottom:9px;"><div style="min-width:152px; min-height:152px; border:solid #C8CCD1 1px; display:block; text-align:center; padding:15px;">{{#vardefine:gwidth|152}}{{#switch:{{#var:fileerror}} | <includeonly>{{clearvar|fileerror}}{{#ifeq:{{#mediawidth:{{{1|}}}}}|0|{{#vardefine:fileerror|1}}}}{{#iferror:{{#mediawidth:{{{1|}}}}}|{{#vardefine:fileerror|2}}|}}{{#if:{{{1|}}}||{{#vardefine:fileerror|3}}}}<div style="display:inline-block; vertical-align:top; margin-left:9px; margin-bottom:9px;"><div style="min-width:152px; min-height:152px; border:solid #C8CCD1 1px; display:block; text-align:center; padding:15px;">{{#vardefine:gwidth|152}}{{#switch:{{#var:fileerror}} | ||
|1=[[:File:{{{1|}}}|Thumbnail error.]] | |1=[[:File:{{{1|}}}|Thumbnail error.]] | ||
− | |2=[[:File:{{{1|}}}|File missing.]] | + | |2=[[:File:{{{1|}}}|File missing.]][[Category:Gitem missing file]] |
|3=File not defined. | |3=File not defined. | ||
|= | |= |
Revision as of 07:13, 9 April 2020
Expression error: Unexpected < operator.
<div style="width:Expression error: Unexpected < operator.px; padding-left:2px; padding-top:5px; padding-right:2px;">Two pages from a UK magazineExpression error: Unexpected < operator.
<div style="width:Expression error: Unexpected < operator.px; padding-left:2px; padding-top:5px; padding-right:2px;">Five pages from a UK magazineFile not defined.