Difference between revisions of "Gitem"
From Sega Retro
Scarred Sun (talk | contribs) m (Reverted edits by Black Squirrel (talk) to last revision by Hivebrain) |
|||
Line 1: | Line 1: | ||
− | <includeonly><div style="display:inline-block; vertical-align:top; margin-left:9px; margin-bottom:9px;"><div style="min-width:152px; min-height:152px; border:solid | + | <includeonly><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; font-size:0px;">{{#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}}}} |
<div style="position:relative; display:inline-block;"> | <div style="position:relative; display:inline-block;"> | ||
{{#loop: p | {{#loop: p | ||
|0 | |0 | ||
− | + | |{{#var:gpagecount}} | |
|[[File:{{{1}}}|120x120px{{#if:{{{page|}}}|{{!}}page={{#explode:{{#var:gpages}}|,|{{#var:p}}}}}}]] | |[[File:{{{1}}}|120x120px{{#if:{{{page|}}}|{{!}}page={{#explode:{{#var:gpages}}|,|{{#var:p}}}}}}]] | ||
}} | }} | ||
− | {{#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>}} | + | {{#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>}} |
− | </div></div>{{#if: {{{2|}}} | <div style="width:{{#var:gwidth}}px; padding-left:2px; padding-top: | + | </div></div>{{#if: {{{2|}}} | <div style="width:{{#var:gwidth}}px; padding-left:2px; padding-top:5px; padding-right:2px;">{{{2}}}</div> }}</div> |
</includeonly><noinclude> | </includeonly><noinclude> | ||
{{gitem|Sonic1 title.png|this is the title screen for sonic the hedgehog on mega drive}} | {{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|Two pages from a UK magazine}} | ||
{{gitem|Mega UK 01.pdf|page=10-11,13-14,18|Five 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|}} | ||
+ | <gallery> | ||
+ | Sonic1 title.png|this is the title screen for sonic the hedgehog on mega drive | ||
+ | </gallery> | ||
[[Category:Sega Retro templates]] | [[Category:Sega Retro templates]] | ||
</noinclude> | </noinclude> |
Revision as of 19:42, 17 September 2018
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 magazineExpression error: Unexpected < operator.
[[File:|120x120px]]