Difference between revisions of "Template:Infobox person"

From Powerbase
Jump to navigation Jump to search
Line 6: Line 6:
 
{{#if:{{{image|}}}|
 
{{#if:{{{image|}}}|
 
|-
 
|-
| colspan="2" style="text-align:center;" | [[File:{{{image|}}}|{{{image_size|250px}}}|alt={{{alt|}}}|{{{caption|}}}]]
+
| colspan="2" style="text-align:center;" | [[File:{{{image|}}}|{{{image_size|250px|alt={{{alt|}}}}}}|{{{caption|}}}]]
 
}}
 
}}
 
|-
 
|-
Line 41: Line 41:
 
{{Infobox person
 
{{Infobox person
 
| name          =  
 
| name          =  
| image        =  
+
| image        = filename.jpg    <!-- Just the filename, no [[ ]] or thumb or size here -->
| alt          =  
+
| alt          = Alternative text for accessibility
| caption      =  
+
| caption      = Optional caption text below the image
 
| birth_date    =  
 
| birth_date    =  
 
| birth_place  =  
 
| birth_place  =  
Line 56: Line 56:
 
</pre>
 
</pre>
  
All fields are optional. Use standard wikitext formatting within parameters (e.g., [[links]], dates in plain text or with templates).
+
All fields are optional.
 
+
Important: For the image to display correctly, put only the plain filename in |image= (e.g. Lori Hudaly.jpg), without [[ ]], |thumb, |300px or other parameters. The template handles the File: link, size, alt and caption internally.
The image row displays only if the '''image''' parameter is provided. It uses [[File:...]] syntax with the specified size, alt text, and caption.
 
  
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Revision as of 16:22, 12 February 2026


This is a simple Template:Tl template used on Powerbase.info for biographical articles.

Usage

{{Infobox person
| name          = 
| image         = filename.jpg     <!-- Just the filename, no [[ ]] or thumb or size here -->
| alt           = Alternative text for accessibility
| caption       = Optional caption text below the image
| birth_date    = 
| birth_place   = 
| nationality   = 
| residence     = 
| occupation    = 
| known_for     = 
| spouse        = 
| children      = 
| website       = 
}}

All fields are optional. Important: For the image to display correctly, put only the plain filename in |image= (e.g. Lori Hudaly.jpg), without [[ ]], |thumb, |300px or other parameters. The template handles the File: link, size, alt and caption internally.