Difference between revisions of "Template:Infobox Person"

From Meekipedia
Jump to: navigation, search
m
m
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right;" cellspacing="1" cellpadding="0"
+
{| class=infobox style="border: 1px solid #ccc; background-color: white; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right;" cellspacing="1" cellpadding="0"
! colspan="2" style="font-size: larger; text-align: center; background-color: #f4db83; padding: 2px 20px 2px 20px;" | '''{{{name}}}'''
+
! colspan="2" style="font-size: larger; text-align: center; background-color: white; padding: 2px 20px 2px 20px;" | '''{{{name}}}'''
 
|-
 
|-
{{#if:{{{image|}}}|
+
! colspan="2" | [[Image:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}px|100px}}|]]  
! style="font-size: 90%; text-align: center; border: 2px black solid;" colspan="2" {{!}} [[Image:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}px|200px}}|]]  
+
|-{{#if: {{{caption|}}} | {{Caption|{{{caption}}}|}} | {{blank}} }}
{{#if:{{{caption|}}}|{{{caption}}} }}
+
|-{{#if: {{{race|}}} | {{Race|{{{race}}}|}} | {{blank}} }}
}}
+
|-{{#if: {{{birth_year|}}} | {{BirthYear|{{{birth_year}}}|}} | {{blank}} }}
|-
+
|-{{#if: {{{hometown|}}} | {{Hometown|{{{hometown}}}|}} | {{blank}} }}
{{#if:{{{race|}}}| {{!}} '''Race'''
+
|-{{#if: {{{footnotes|}}}  | {{Footnotes|{{{footnotes}}}|}} | {{blank}} }}
{{!}} {{{race}}}
+
{{!-}}
+
}}
+
{{#if:{{{age|}}}| {{!}} '''Age'''
+
{{!}} {{{age}}}
+
{{!-}}
+
}}
+
{{#if:{{{hometown|}}}| {{!}} '''Hometown'''
+
{{!}} {{{hometown}}}
+
{{!-}}
+
}}
+
! colspan="2" style="font-size: smaller;" | {{{footnotes|}}}
+
 
|}
 
|}
 
<noinclude>
 
<noinclude>
 
=== Usage ===
 
=== Usage ===
Copy and paste the below code to the character page and fill in as many information as you can provide to the list of properties. Unfilled property (except "name") will not appear in the final page. "image_size" has a default value of 200 if otherwise unspecified.
+
Copy and paste the below code to the character page and fill in as many information as you can provide to the list of properties. Unfilled property (except "name" and "image", Blank.jpg should be used in the case of missing profile image) will not appear in the final page. "image_size" has a default value of 100 if otherwise unspecified.
  
 
<!-- the dashed outline of the fields are not supposed to be there, so I think there is still something wrong with the template -->
 
<!-- the dashed outline of the fields are not supposed to be there, so I think there is still something wrong with the template -->
  
<!-- if you need to add a regular property, just copy and paste a block of code such as for "race", starting from the {{#if to }} then change the value; preserve the line-break formatting of these blocks unless you know exactly what will happen to the modification -->
+
<!-- style class "infobox" is added by Jon in MediaWiki:Common.css, but this css file needs to be called in the actual wiki page, which Jon hasn't figured out how to do  -->
 +
 
 +
<!-- if you need to add a regular property, contact Jon -->
 +
 
 +
<!--
 +
see the following for details:
 +
Template:Caption, Templates:Race, Templates:BirthYear, Templates:Hometown, Templates:Footnotes
 +
-->
  
 
<pre style="overflow:auto;">
 
<pre style="overflow:auto;">

Latest revision as of 10:24, 27 June 2010

{{{name}}}
[[Image:{{{image}}}|100px|]]

Usage

Copy and paste the below code to the character page and fill in as many information as you can provide to the list of properties. Unfilled property (except "name" and "image", Blank.jpg should be used in the case of missing profile image) will not appear in the final page. "image_size" has a default value of 100 if otherwise unspecified.



{{Infobox_Person
|name       = 
|image      = 
|image_size =
|caption    =
|race       = 
|age        =
|hometown   =
|footnotes  =
}}