Template:CharacterInfoBox: Difference between revisions

Template page
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
<noinclude>
<noinclude>
This template displays a remotely hosted image.
This template is used to create character info boxes. Use it like so:


Use it like so:
<pre>
<pre>
{{RemoteImage|url=https://example.com/image.jpg}}
{{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>
</pre>
</noinclude><includeonly>
</noinclude><includeonly>__NOTOC__
<img src="{{{url}}}" alt="Remote Image" style="max-width: 250px;" />
{| 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;" |
{{#if: {{{image|}}}
  | {{#if: {{#titleparts:{{{image}}}|1|1}}
      | [[File:{{{image}}}|250px|Profile Image]]
      | <img src="{{{image}}}" alt="Profile Image" style="max-width: 250px;" />
    }}
  | <img src="https://i.imgur.com/hOam9SK.jpg" alt="Profile Image" style="max-width: 250px;" />
}}
|-
| colspan="2" style="text-align: center;" | <hr />
|-
|'''Species:''' || {{{species|}}}
|-
|'''Sex:''' || {{{sex|}}}
|-
|'''Homeworld:''' || {{{homeworld|}}}
|-
|'''Occupation:''' || {{{occupation|}}}
|}
[[Category:Characters]]
</includeonly>
</includeonly>

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