Template:Rosterimage: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
(change to crop and resize by width instead)
(cropped image functionality)
Line 1: Line 1:
<includeonly>{{#if: {{{3|}}}
<includeonly><div style="position: relative; width: 75px; height: 60px; overflow: hidden">{{#if: {{{3|}}}
|[[File:{{{3}}}|75px|link={{nraw|{{{1}}}|{{{2}}}}}]]
|[[File:{{{3}}}|75px|link={{nraw|{{{1}}}|{{{2}}}}}]]
|[[File:Roster-blank.jpg|75px|link={{nraw|{{{1}}}|{{{2}}}}}]]
|[[File:Roster-blank.jpg|link={{nraw|{{{1}}}|{{{2}}}}}]]
}}</includeonly><noinclude>Returns [[:File:Roster-blank.jpg]] at height of 60px if no [[:Category:Roster images|roster image]] is specified for an officer in [[Template:Roster]].
}}</div></includeonly><noinclude>Returns [[:File:Roster-blank.jpg]] at width of 75px if no [[:Category:Roster images|roster image]] is specified for an officer in [[Template:Roster]].
[[Category:Wiki System Templates]]
[[Category:Wiki System Templates]]
</noinclude>
</noinclude>

Revision as of 00:54, 30 January 2014

Returns File:Roster-blank.jpg at width of 75px if no roster image is specified for an officer in Template:Roster.