Difference between revisions of "Gitem"
From Sonic Retro
BSonirachi (talk | contribs) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |{{{1|}}}|{{{2|}}} | + | <includeonly>{{clearvar|fileerror}}<!--{{#ifeq:{{#mediawidth:{{{1|}}}}}|0|{{#vardefine:fileerror|1}}}}{{#ifeq:{{#mediawidth:{{{1|}}}}}||{{#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; display:table-cell; height:152px; vertical-align:middle;">{{#vardefine:gwidth|152}}{{#switch:{{#var:fileerror}} |
− | <noinclude>[[Category: | + | |1=[[:File:{{{1|}}}|Thumbnail error.]] |
+ | |2=[[:File:{{{1|}}}|File missing.]][[Category:Gitem missing file]] | ||
+ | |3=File not defined. | ||
+ | |= | ||
+ | <div style="position:relative; display:inline-block;"> | ||
+ | {{#switch:{{lc:{{fileext|{{{1|}}}}}}} | ||
+ | <!-- PDF thumbnail --> | ||
+ | |pdf={{#vardefine:gpages|{{expandpages|{{{page|}}}}}}}{{#vardefine:gpagecount|{{#expr:{{charcount|{{#var:gpages}}|,}}+1}}}}{{#vardefine:gwidth|{{#expr:({{d2w|{{{1}}}|120|120}}*{{#var:gpagecount}})+32}}}}{{#ifexpr:{{#var:gwidth}}<152|{{#vardefine:gwidth|152}}}} | ||
+ | {{#loop: p | ||
+ | |0 | ||
+ | |{{#var:gpagecount}} | ||
+ | |[[File:{{{1|}}}|120x120px{{#if:{{{page|}}}|{{!}}page={{#explode:{{#var:gpages}}|,|{{#var:p}}}}}}{{#if:{{{link|}}}|{{!}}link={{{link|}}}}}]] | ||
+ | }} | ||
+ | {{#ifeq:{{fileext|{{{1|}}}}}|pdf|<div style="color:#FFF; position:absolute; font-size:14px; background:red; width:32px; height:23px; bottom:0; right:0; pointer-events:none;">'''PDF'''</div>}} | ||
+ | <!-- Video thumbnail --> | ||
+ | |mp4|mov|mkv|avi|flv|mpg|wmv|mpeg={{#ifexist:File:{{{1|}}}|[[File:Video Placeholder.svg|120x120px|link={{#if:{{{link|}}}|{{{link|}}}|File:{{{1|}}}}}]]{{UseFile|{{{1|}}}}}|[[File:Video Placeholder.svg|120x120px|link=cdn:File:{{{1|}}}]]}} | ||
+ | <!-- Any other thumbnail --> | ||
+ | |{{#if:{{#var:galleryscreens}}{{{screen|}}}|{{Bobscreen|{{{1|}}}|width={{#if:{{{width|}}}|{{{width|}}}|{{#if:{{#var:gallerywidths}}|{{#var:gallerywidths}}|120}}}}|height={{{height|120}}}|forcewidescreen={{{forcewidescreen|}}}}} | ||
+ | |[[File:{{{1|}}}|120x120px{{#if:{{{link|}}}|{{!}}link={{{link|}}}}}]] | ||
+ | }} | ||
+ | }}</div>}}</div>{{#if: {{{2|}}} | <div style="width:{{#var:gwidth}}px; padding-left:2px; padding-top:5px; padding-right:2px;">{{{2}}}<!--{{#var:fileerror}}--></div> }}</div> | ||
+ | </includeonly><noinclude> | ||
+ | {{gitem|Sonic1 title.png|this is the title screen for sonic the hedgehog on mega drive}} | ||
+ | {{gitem|Mega UK 01.pdf|page=10-11|Two pages from a UK magazine}} | ||
+ | {{gitem|Mega UK 01.pdf|page=10-11,13-14,18|Five pages from a UK magazine}} | ||
+ | {{gitem|Rush titlescreen.png|sonic rush title screen}} | ||
+ | {{gitem|}} | ||
+ | {{gitem|fakefilename.png}} | ||
+ | {{gitem|The Zone (AU) s01e03 14-May-1994.mp4}} | ||
+ | {{gitem|10Six PC US Trailer (1998).mp4}} | ||
+ | {{gitem|Specialstage1.png|Special Stage|screen=yes}} | ||
+ | <gallery> | ||
+ | Sonic1 title.png|this is the title screen for sonic the hedgehog on mega drive | ||
+ | </gallery> | ||
+ | [[Category:Templates]] | ||
+ | </noinclude> |
Latest revision as of 20:45, 13 August 2023
Expression error: Unexpected < operator. File:Mega UK 01.pdfFile:Mega UK 01.pdf
PDF
Expression error: Unexpected < operator. File:Mega UK 01.pdfFile:Mega UK 01.pdfFile:Mega UK 01.pdfFile:Mega UK 01.pdfFile:Mega UK 01.pdf
PDF
File not defined.
Special Stage