Template:Member Portrait-Resize: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(Adding trimming)
Tag: Reverted
(Replacing default width to 65px to match the original Template:ID Portrait)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{Trim|{{#if: {{{IMAGE|}}}|{{Crop|{{{IMAGE|}}}|{{#if: {{ifnumber|{{{COLOR|}}}|a}}|{{{COLOR|}}}|100}}|{{#expr: {{#if: {{ifnumber|{{{COLOR|}}}|a}}|{{{COLOR|}}}|100}} * 0.8 round 0}}|{{#if: {{{MOVE UP|}}}|{{#expr: ({{#if: {{ifnumber|{{{COLOR|}}}|a}}|{{{COLOR|}}}|100}} / 83) * {{{MOVE UP|}}} round 0}}|0}}|{{#if: {{{MOVE LEFT|}}}|{{#expr: ({{#if: {{ifnumber|{{{COLOR|}}}|a}}|{{{COLOR|}}}|100}} / 83) * {{{MOVE LEFT|}}} round 0}}|0}}|{{{ZOOM|}}}|link={{{NAME|}}}}}|[[File:Roster-blank.jpg|{{#if: {{ifnumber|{{{COLOR|}}}|a}}|{{{COLOR|}}}|100}}px|link={{{NAME|}}}]]}}}}</includeonly><noinclude>Displays just the portrait from a [[:Category:ID subpages|character's ID subpage]], with custom image sizes.
<includeonly>{{#if: {{{IMAGE|}}}|{{Crop|{{{IMAGE|}}}|{{#if: {{ifnumber|{{{COLOR|}}}|a}}|{{{COLOR|}}}|65}}|{{#expr: {{#if: {{ifnumber|{{{COLOR|}}}|a}}|{{{COLOR|}}}|65}} * 0.8 round 0}}|{{#if: {{{MOVE UP|}}}|{{#expr: ({{#if: {{ifnumber|{{{COLOR|}}}|a}}|{{{COLOR|}}}|65}} / 83) * {{{MOVE UP|}}} round 0}}|0}}|{{#if: {{{MOVE LEFT|}}}|{{#expr: ({{#if: {{ifnumber|{{{COLOR|}}}|a}}|{{{COLOR|}}}|65}} / 83) * {{{MOVE LEFT|}}} round 0}}|0}}|{{{ZOOM|}}}|link={{{NAME|}}}}}|[[File:Roster-blank.jpg|{{#if: {{ifnumber|{{{COLOR|}}}|a}}|{{{COLOR|}}}|65}}px|link={{{NAME|}}}]]}}</includeonly><noinclude>Displays just the portrait from a [[:Category:ID subpages|character's ID subpage]], with custom image sizes.
[[Category:Wiki System Templates]]</noinclude>
[[Category:Wiki System Templates]]</noinclude>

Latest revision as of 14:03, 19 September 2023

Displays just the portrait from a character's ID subpage, with custom image sizes.