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 40: Line 40:
 
<pre>
 
<pre>
 
{{Infobox person
 
{{Infobox person
| name          =  
+
| name          = Lori Tanur-Hudaly
| image        = filename.jpg    <!-- Just the filename, no [[ ]] or thumb or size here -->
+
| image        = Lori Hudaly.jpg    <!-- Plain filename only – no [[ ]], no |thumb, no size -->
| alt          = Alternative text for accessibility
+
| alt          = Portrait of Lori Tanur-Hudaly standing outdoors
| caption      = Optional caption text below the image
+
| caption      = Lori Tanur-Hudaly
| birth_date    =  
+
| birth_date    = October 1981
| birth_place  =  
+
| birth_place  = South Africa
| nationality  =  
+
| nationality  = South African
| residence    =  
+
| residence    = London, United Kingdom
| occupation    =  
+
| occupation    = Recruiter, activist
| known_for    =  
+
| known_for    = Association with [[Stop the Hate UK]] and pro-Zionist activism
| spouse        =  
+
| spouse        = Adam
| children      =  
+
| children      = 3
 
| website      =  
 
| website      =  
 
}}
 
}}
Line 57: Line 57:
  
 
All fields are optional.   
 
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.
+
'''Critical for image display:''' 
 +
Put '''only the bare filename''' (e.g. Lori Hudaly.jpg) in the |image= parameter. 
 +
Do '''not''' wrap it in [[File:...]], |thumb, |300px, or any other markup – the template already creates the correct [[File: ]] link internally
 +
Any extra markup in |image= will prevent the image from displaying.
  
 
[[Category:Infobox templates]]
 
[[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Revision as of 16:24, 12 February 2026


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

Usage

{{Infobox person
| name          = Lori Tanur-Hudaly
| image         = Lori Hudaly.jpg     <!-- Plain filename only – no [[ ]], no |thumb, no size -->
| alt           = Portrait of Lori Tanur-Hudaly standing outdoors
| caption       = Lori Tanur-Hudaly
| birth_date    = October 1981
| birth_place   = South Africa
| nationality   = South African
| residence     = London, United Kingdom
| occupation    = Recruiter, activist
| known_for     = Association with [[Stop the Hate UK]] and pro-Zionist activism
| spouse        = Adam
| children      = 3
| website       = 
}}

All fields are optional. Critical for image display: Put only the bare filename (e.g. Lori Hudaly.jpg) in the |image= parameter. Do not wrap it in File:..., |thumb, |300px, or any other markup – the template already creates the correct [[File: ]] link internally. Any extra markup in |image= will prevent the image from displaying.