Template:ID Portrait: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{2|}}}|{{:{{{1}}}/ID|TEMPLATE=Member Portrait-100}}|{{:{{{1}}}/ID|TEMPLATE=Member Portrait}}}}</includeonly><noinclude>Creates portrait as specified from a character's [[:Category:ID subpages|ID subpage]].
<includeonly>{{#switch: {{{2|}}}
|83={{:{{{1}}}/ID|TEMPLATE=Member Portrait-83}}
|100={{:{{{1}}}/ID|TEMPLATE=Member Portrait-100}}
|{{:{{{1}}}/ID|TEMPLATE=Member Portrait}}}}</includeonly><noinclude>Creates portrait as specified from a character's [[:Category:ID subpages|ID subpage]].
===Example===
===Example===
<pre>{{ID Portrait|Roshanara Rahman}}</pre>
<pre>{{ID Portrait|Roshanara Rahman}}</pre>
Line 5: Line 8:
{{ID Portrait|Roshanara Rahman}}
{{ID Portrait|Roshanara Rahman}}


You can make the portrait the size of a standard crew tile image by adding "100" as a second parameter (returning an image of 100px width).
<pre>{{ID Portrait|Roshanara Rahman|100}}</pre>
{{ID Portrait|Roshanara Rahman|100}}
You can make the portrait the size of a standard manifest image by adding "83" as a second parameter (returning an image of 83px width).
<pre>{{ID Portrait|Roshanara Rahman|83}}</pre>
{{ID Portrait|Roshanara Rahman|83}}
[[Category:Wiki Templates]]</noinclude>
[[Category:Wiki Templates]]</noinclude>

Latest revision as of 05:43, 8 May 2019

Creates portrait as specified from a character's ID subpage.

Example

{{ID Portrait|Roshanara Rahman}}
Rahman-Official-Portrait-2397.png

You can make the portrait the size of a standard crew tile image by adding "100" as a second parameter (returning an image of 100px width).

{{ID Portrait|Roshanara Rahman|100}}
Rahman-Official-Portrait-2397.png

You can make the portrait the size of a standard manifest image by adding "83" as a second parameter (returning an image of 83px width).

{{ID Portrait|Roshanara Rahman|83}}
Rahman-Official-Portrait-2397.png