Template:CharacterInfoBox: Difference between revisions

Template page
No edit summary
Tags: Manual revert Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
<noinclude>
This template is used to create character info boxes. Use it like so:
<pre>
{{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
}}
</pre>
</noinclude><includeonly>__NOTOC__
{| class="infobox" style="border: 1px solid #000; width: 250px; float: right;"
{| class="infobox" style="border: 1px solid #000; width: 250px; float: right;"
|-
|-
! colspan="2" style="text-align: center; font-size: 1.25em;" | Character Information
! colspan="2" style="text-align: center; font-size: 1.25em;" | Character Information
|-
|-
| colspan="2" style="text-align: center;" | [[File:{{{image|Placeholder.jpg}}}|250px|Profile Image]]
| colspan="2" style="text-align: center;" |
{{#if:{{{image|}}}|{{#ifexist:File:{{{image}}}|[[File:{{{image}}}|250px]]|<img src="{{{image}}}" alt="Profile Image" style="max-width: 250px;" />}}|<img src="https://i.imgur.com/U2BrC9O.jpg" alt="Profile Image" style="max-width: 250px;" />}
|-
|-
| colspan="2" style="text-align: center;" | <hr />
| colspan="2" style="text-align: center;" | <hr />
Line 15: Line 30:
|'''Occupation:''' || {{{occupation|}}}
|'''Occupation:''' || {{{occupation|}}}
|}
|}
[[Category:Characters]]
</includeonly>

Revision as of 11:26, 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
}}