Template:ID Portrait: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
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>{{#if: {{{switch|}}}
|83={{:{{{1}}}/ID|TEMPLATE=Member Portrait-100}}
|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 a second parameter (any second parameter will trigger the larger image).
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|big}}</pre>
<pre>{{ID Portrait|Roshanara Rahman|100}}</pre>


{{ID Portrait|Roshanara Rahman|big}}
{{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>

Revision as of 05:42, 8 May 2019

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

Example

{{ID Portrait|Roshanara Rahman}}

100=

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}}

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}}

100=

Rahman-Official-Portrait-2397.png