|
|
Line 1: |
Line 1: |
| <noinclude> | | <noinclude> |
| This template is used to create character info boxes. Use it like so: | | This template displays a remotely hosted image. |
|
| |
|
| | Use it like so: |
| <pre> | | <pre> |
| {{CharacterInfoBox | | {{RemoteImage|url=https://example.com/image.jpg}} |
| | 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>__NOTOC__ | | </noinclude><includeonly> |
| {| class="infobox" style="border: 1px solid #000; width: 250px; float: right;"
| | <img src="{{{url}}}" alt="Remote Image" style="max-width: 250px;" /> |
| |-
| |
| ! colspan="2" style="text-align: center; font-size: 1.25em;" | Character Information
| |
| |-
| |
| | colspan="2" style="text-align: center;" |
| |
| {{#if: {{{image|}}}
| |
| | {{#switch: {{#pos:{{{image}}}|http}}
| |
| | 0 = <img src="{{{image}}}" alt="Profile Image" style="max-width: 250px;" />
| |
| | #default = [[File:{{{image}}}|250px|Profile Image]]
| |
| }}
| |
| | <img src="https://i.imgur.com/U2BrC9O.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:36, 18 May 2024
This template displays a remotely hosted image.
Use it like so:
{{RemoteImage|url=https://example.com/image.jpg}}