Template:UserCharacterGallery: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div style="float:left; text-align: center; background-color: {{ #switch: {{{PRIMARY|}}} | Yes = lemonchiffon | gainsboro }}; margin: 5px; border-radius: 20px; border: {{ #switch: {{{PRIMARY|}}} | Yes = 4px solid goldenrod | 0 }}; overflow: hidden;">[[Image:{{ #if: {{{IMAGE|}}} | {{{IMAGE}}} | Noimage.jpg }}|200px|none|link={{ #if: {{{PAGE|}}} | {{{PAGE}}} | {{{NAME}}} }}]] '''[[{{ #if: {{{PAGE|}}} | {{{PAGE}}} | | <includeonly><div style="float:left; text-align: center; background-color: {{ #switch: {{{PRIMARY|}}} | Yes = lemonchiffon | gainsboro }}; margin: 5px; border-radius: 20px; border: {{ #switch: {{{PRIMARY|}}} | Yes = 4px solid goldenrod | 0 }}; overflow: hidden;">[[Image:{{ #if: {{{IMAGE|}}} | {{{IMAGE}}} | Noimage.jpg }}|200px|none|link={{ #if: {{{PAGE|}}} | {{{PAGE}}} | {{{NAME}}} }}]] '''[[{{ #if: {{{PAGE|}}} | {{{PAGE}}} | {{{NAME}}} }}|{{ #if: RANK | {{{RANK}}} | }} {{{NAME}}}]] {{ #switch: {{{PRIMARY|}}} | Yes = <span style="color:darkgoldenrod;">(Primary)</span> | }}'''<br/><small>{{age|{{{BY}}}|{{{BM}}}|{{{BD}}}}}-year-old {{{SPECIES}}}<br/>{{{POST}}} ({{{SHIP}}})</small></div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
=Example Usage & Notes= | =Example Usage & Notes= |
Revision as of 19:48, 22 September 2022
Example Usage & Notes
This template is designed for images using approximately a 5x7 aspect ratio (550x750px specifically) and using other AR's may mess it up.
Since this is a "Floating" element, that means it will appear to the left of text which follows. If you are finding this annoying and want it on its own line, you must add the clear template after it, using the following code:
{{clear}}
- Note - This is not necessary if you are using the UserCharacterGallery-START and UserCharacterGallery-END templates (explained below).
Primary Character
{{ UserCharacterGallery | NAME = Robin Hopper | IMAGE = Hopper-550.jpg | PAGE = | PRIMARY = Yes | RANK = Lt. | BY = 2371 | BM = 09 | BD = 02 | SPECIES = Human/[[Centauran]] | POST = Chief Science Officer | SHIP = [[Amity Outpost|Amity]] }} {{clear}}
Regular Character
{{ UserCharacterGallery | NAME = Kivik | IMAGE = Kivik-550.jpg | PAGE = | PRIMARY = | RANK = Lieutenant | BY = 2366 | BM = 09 | BD = 07 | SPECIES = [[J'naii]] | POST = Chief Science Officer | SHIP = [[USS Kitty Hawk|Kitty Hawk]] }} {{clear}}
Incomplete Character
{{ UserCharacterGallery | NAME = New Guy | IMAGE = | PAGE = New Guy's Page | PRIMARY = | RANK = Ensign | BY = 2379 | BM = 01 | BD = 02 | SPECIES = Vulcan | POST = | SHIP = Unassigned }} {{clear}}
Stacking
If you want to include multiple entries, you must wrap your template in the following code:
{{UserCharacterGallery-START}}
{{ UserCharacterGallery | NAME = Robin Hopper | IMAGE = Hopper-550.jpg | PAGE = | PRIMARY = Yes | RANK = Lt. | BY = 2371 | BM = 09 | BD = 02 | SPECIES = Human/[[Centauran]] | POST = Chief Science Officer | SHIP = [[Amity Outpost|Amity]] }} {{ UserCharacterGallery | NAME = Kivik | IMAGE = Kivik-550.jpg | PAGE = | PRIMARY = | RANK = Lieutenant | BY = 2366 | BM = 09 | BD = 07 | SPECIES = [[J'naii]] | POST = Chief Science Officer | SHIP = [[USS Kitty Hawk|Kitty Hawk]] }} {{ UserCharacterGallery | NAME = Tri'lea Polgonz | IMAGE = Polgonz-550.jpg | PAGE = Tri'lea Doyoxo Polgonz | PRIMARY = | RANK = | BY = 2370 | BM = 10 | BD = 02 | SPECIES = [[Betazoid]] | POST = Noble | SHIP = Twentieth House }}
{{UserCharacterGallery-END}}