Difference between revisions of "Template:Infobox Person"

From Meekipedia
Jump to: navigation, search
m
m
 
(46 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="float: right; width: 22em; text-align: left; font-size: 95%; border: #a0a0a0 1px solid; padding: 3px; background-color: #f8f8f8;"
+
{| 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;" colspan="2" {{!}} [[Image:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}px|200px}}|]]  
+
|-{{#if: {{{caption|}}} | {{Caption|{{{caption}}}|}} | {{blank}} }}
{{#if:{{{caption|}}}|<br>{{{caption}}} }}
+
|-{{#if: {{{race|}}} | {{Race|{{{race}}}|}} | {{blank}} }}
}}
+
|-{{#if: {{{birth_year|}}} | {{BirthYear|{{{birth_year}}}|}} | {{blank}} }}
|-
+
|-{{#if: {{{hometown|}}} | {{Hometown|{{{hometown}}}|}} | {{blank}} }}
{{#if:{{{race|}}}| <tr><td> '''Race''' </td><td> {{{race}}} </td></tr>
+
|-{{#if: {{{footnotes|}}} | {{Footnotes|{{{footnotes}}}|}} | {{blank}} }}
{{!-}}
+
}}
+
{{#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 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 -->
 +
 
 +
<!-- 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
 +
-->
  
<font color="red">Please do not use yet.</font>
 
 
<pre style="overflow:auto;">
 
<pre style="overflow:auto;">
 
{{Infobox_Person
 
{{Infobox_Person

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