Difference between revisions of "Template:CharacterInfo"
m (Again with me missing semi-colons... also fix the max-height value.) |
m (Remove the break because it isn't really needed with a div.) |
||
| Line 2: | Line 2: | ||
|+{{{name|Unknown}}}<br /> | |+{{{name|Unknown}}}<br /> | ||
{{#if: {{{profileurl|}}} | {{#if: {{{profileurl|}}} | ||
| − | | | + | |<div class="thumbinner" style="width: {{#expr: {{{profilesize|150}}} + 2}}px; margin: 0 auto"> |
<p style="margin: 0"> | <p style="margin: 0"> | ||
<span class="plainlinks" style="display: block; width: {{{profilesize|150}}}px; margin: 1px">[{{{profileurl}}} <img src="{{{profileurl}}}" style="max-width: 100%; max-height: {{{profilesize|150}}}px">]</span> | <span class="plainlinks" style="display: block; width: {{{profilesize|150}}}px; margin: 1px">[{{{profileurl}}} <img src="{{{profileurl}}}" style="max-width: 100%; max-height: {{{profilesize|150}}}px">]</span> | ||
Revision as of 23:35, 4 June 2015
| Name | Unknown |
| Aliases | N/A |
| Occupation | N/A |
| Age | Unknown |
| Birthday | Unknown |
| Date of Death | N/A |
| Original World | ??? |
| Current World | ??? |
| Race | Unknown |
| Gender | Unknown |
| Height | Unknown |
| Weight | Unknown |
| Hair Color | Unknown |
| Eye Color | Unknown |
| Relatives | None |
This is a template for character information.
To utilize it, add the following to a page:
{{CharacterInfo|PARAMETERS}}
PARAMETERS is a list of items separated by the pipe symbol, |. Each parameter in the list is in the format of NAME=VALUE. The following is a list of acceptable parameters:
- name
- aliases
- occupation
- age
- birthday
- dateofdeath
- originalworld
- currentworld
- race
- gender
- height
- weight
- haircolor
- eyecolor
- relatives
If any parameter is not included, then the default value will be used instead. The current defaults can be seen to the right.
In addition to the above, there are 3 additional parameters that are fields but control adding a profile image to the character information. They are as follows:
- profileurl: This is an external image URL for the profile image.
- profilesize: If given, the profile image will be locked into a maximum square of the size given (for example, 100 will max out at 100x100). If not given, it defaults to 150.
- profilecaption: If given, it will add a caption under the profile image.
An example of how to use the template:
{{CharacterInfo|profileurl=http://bobandgeorge.com/images/George.png|profilesize=100|profilecaption=Ice Cream|name=George|aliases=Blitz|occupation=Superhero|currentworld=Mega Man's|race=Human|gender=Male|haircolor=Blonde|relatives=Bob (''brother'')}}
This renders as (see to the right):
| Aliases | Blitz |
| Age | Unknown |
| Birthday | Unknown |
| Birthplace | ??? |
| Current Location | Mega Man's |
| Occupation | Superhero |
| Race | Human |
| Gender | Male |
| Height | Unknown |
| Weight | Unknown |
| Hair Color | Blonde |
| Eye Color | Unknown |
| Relatives | Bob (brother) |
