Template:CharacterInfoBox: Difference between revisions

Template page
No edit summary
No edit summary
Line 19: Line 19:
| colspan="2" style="text-align: center;" |
| colspan="2" style="text-align: center;" |
{{#if: {{{image|}}}
{{#if: {{{image|}}}
   | {{#ifexpr: {{#urlencode:{{{image}}}|PATH}} = {{#urlencode:{{{image}}}}}
   | {{#if: {{#pos:{{{image}}}|http}}
       | <img src="{{{image}}}" alt="Profile Image" style="max-width: 250px;" />
       | <img src="{{{image}}}" alt="Profile Image" style="max-width: 250px;" />
       | [[File:{{{image}}}|250px|Profile Image]]
       | [[File:{{{image}}}|thumb|250px|center|Profile Image]]
     }}
     }}
   | <img src="https://i.imgur.com/hOam9SK.jpg" alt="Profile Image" style="max-width: 250px;" />
   | <img src="https://i.imgur.com/hOam9SK.jpg" alt="Profile Image" style="max-width: 250px;" />

Revision as of 12:05, 18 May 2024

This template is used to create character info boxes. Use it like so:

{{CharacterInfoBox
| image=http://example.com/image.jpg  (if it's an external image URL)
| image=Example.jpg  (if it's an uploaded [[File:Example.jpg]] here)
| species=Human
| sex=Male
| homeworld=Earth
| occupation=Explorer
}}