FANDOM


(center image; image should link to character not actor; support float=, width=, and space on either side)
(wrong param for image link)
 
Line 9: Line 9:
 
<td>
 
<td>
 
<div style="position: relative; height: {{{actorvspace|100px}}};">
 
<div style="position: relative; height: {{{actorvspace|100px}}};">
<div style="background: #000; z-index: 2; -moz-border-radius: 4px; -webkit-border-radius: 4px; -khtml-border-radius: 4px; border-radius: 4px; overflow: hidden;">[[File:{{{image|Under construction icon.png}}}|100px|center|{{{character|Person}}}|link={{{characterarticle|{{{character|:Category:Characters}}}}}}]]</div>
+
<div style="background: #000; z-index: 2; -moz-border-radius: 4px; -webkit-border-radius: 4px; -khtml-border-radius: 4px; border-radius: 4px; overflow: hidden;">[[File:{{{image|Under construction icon.png}}}|100px|center|{{{character|Character}}}|link={{{chararticle|{{{character|:Category:Characters}}}}}}]]</div>
 
<div style="position: absolute; bottom: 0px; right: 0px; line-height: 1.1em; z-index: 4; text-align: right; background: <nowiki/>{{{bkgdcolor|{{{bgcolor|#888}}}}}}; -moz-border-radius-topleft: 8px; -webkit-border-top-left-radius: 8px; -khtml-border-top-left-radius: 8px; border-top-left-radius: 8px;">&nbsp;[[{{{actorarticle|{{{actor|:Category:Actors}}}}}}|<span style="color: <nowiki/>{{{actorcolor|#fff}}}; font-size: 80%;">'''{{{actor|''Actorname''}}}'''</span>]]</div>
 
<div style="position: absolute; bottom: 0px; right: 0px; line-height: 1.1em; z-index: 4; text-align: right; background: <nowiki/>{{{bkgdcolor|{{{bgcolor|#888}}}}}}; -moz-border-radius-topleft: 8px; -webkit-border-top-left-radius: 8px; -khtml-border-top-left-radius: 8px; border-top-left-radius: 8px;">&nbsp;[[{{{actorarticle|{{{actor|:Category:Actors}}}}}}|<span style="color: <nowiki/>{{{actorcolor|#fff}}}; font-size: 80%;">'''{{{actor|''Actorname''}}}'''</span>]]</div>
 
</div>
 
</div>

Latest revision as of 21:52, September 5, 2018

Charname
Export this template, then import, to install it.
Use edit summary: Copied from [[w:c:templates:Template:Portalportrait]] to properly attribute this template's editors.
This template is probably not already on your wiki.
Template documentation
Note: the template above may sometimes be partially or fully invisible.

View or edit this documentation. (How does this work?)

Editors can experiment with this template's sandbox and test case pages.
Description
This template is used to create a small portrait box with rounded corners for character/actor combinations.
Dependencies
Syntax
Type {{Portalportrait|...}} somewhere, with parameters as shown below.
Parameters
{{Portalportrait
 | nochar       =
 | bgcolor      =
 | charcolor    =
 | actorcolor   =
 | chararticle  =
 | actorarticle = 
 | character    = 
 | actor        = 
 | image        = 
 | actorvspace  =
}}

These are optional:

 | nochar       =
 | bgcolor      =
 | charcolor    =
 | actorcolor   =
 | chararticle  =
 | actorarticle = 
 | actorvspace  =

nochar= hides the upper character name display (no value needed).
bgcolor= defaults to #888 (gray).
charcolor= defaults to #fff (white).
actorcolor= defaults to #fff (white).
actorvspace= defaults to 100px.

Examples
{{Portalportrait
 | bgcolor      = #840
 | charcolor    = #eb0
 | actorcolor   = #fc0
 | chararticle  = w:c:castle:Richard Castle
 | actorarticle = w:c:castle:Nathan Fillion
 | character    = Richard Castle
 | actor        = Nathan Fillion
}}
Output
Richard Castle
{{Portalportrait
 | bgcolor      = #800
 | charcolor    = #fdd
 | actorcolor   = #faa
 | chararticle  = w:c:trueblood:Sookie Stackhouse
 | actorarticle = w:c:trueblood:Anna Paquin
 | character    = Sookie <small>Stackhouse</small>
 | actor        = Anna Paquin
}}
Sookie Stackhouse
{{Portalportrait
 | bgcolor      = #880
 | actorcolor   = #ffa
 | nochar       =
 | actorarticle = w:c:kungfupanda:Po
 | actor        = Po
}}
Under construction icon
 Po
Community content is available under CC-BY-SA unless otherwise noted.