Template:ID Portrait Resize: Difference between revisions

Jump to navigation Jump to search
Replacing documentation with transclusion from subpage
(Adding clarification to point out the similarities with the other ID portrait template as well as differences)
(Replacing documentation with transclusion from subpage)
Tag: Replaced
 
Line 1: Line 1:
<includeonly>{{Trim|{{:{{{1|}}}/ID|TEMPLATE=Member Portrait-Resize|{{{2|}}}}}}}</includeonly><noinclude>Creates portrait as specified in a character's [[:Category:ID subpages|ID subpage]], much like [[Template:ID Portrait|the similarly named 'ID Portrait' template]], except it allows for any width to be specified, defaulting to 100px when unspecified.
<includeonly>{{Trim|{{:{{{1|}}}/ID|TEMPLATE=Member Portrait-Resize|{{{2|}}}}}}}</includeonly><noinclude>{{doc}}</noinclude>
 
==Usage==
<pre>{{ID Portrait Resize|Noa T'Nessa Levinson}}</pre>
{{ID Portrait Resize|Noa T'Nessa Levinson}}
 
<pre>{{ID Portrait Resize|Noa T'Nessa Levinson|83}}</pre>
{{ID Portrait Resize|Noa T'Nessa Levinson|83}}
 
<pre>{{ID Portrait Resize|Noa T'Nessa Levinson|60}}</pre>
{{ID Portrait Resize|Noa T'Nessa Levinson|60}}
 
You can even have non-standard sizes:
 
<pre>{{ID Portrait Resize|Noa T'Nessa Levinson|156}}</pre>
{{ID Portrait Resize|Noa T'Nessa Levinson|156}}
 
==Template Data==
<templatedata>
{
"params": {
"1": {
"label": "Character",
"description": "The character name whose portrait to display. Must have an ID subpage created.",
"example": "Noa T'Nessa Levinson",
"type": "line",
"required": true
},
"2": {
"label": "Image size",
"description": "The size to display the image at in pixels. Defaults to 100 when this is unspecified.",
"example": "83",
"type": "number"
}
},
"description": "Displays the image from the specified character's ID subpage, with an optionally supplied size (defaults to 100 pixels with no size specified)."
}
</templatedata>
[[Category:Templates]]</noinclude>

Navigation menu