Template:UserCharacterGallery: Difference between revisions

From 118Wiki
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}}} | # }}]] '''[[{{ #if: {{{PAGE|}}} | {{{PAGE}}} | # }}|{{ #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><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}}} | # }}]] '''[[{{ #if: {{{PAGE|}}} | {{{PAGE}}} | # }}|{{ #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=
<pre>
{{ UserCharacterGallery
{{ UserCharacterGallery
| NAME = Robin Hopper
| NAME = Robin Hopper
Line 14: Line 16:
| SHIP = [[Amity Outpost|Amity]]
| SHIP = [[Amity Outpost|Amity]]
}}
}}
</pre>
{{ UserCharacterGallery
| NAME = Robin Hopper
| IMAGE = Hopper-550.jpg
| PAGE = Robin Hopper
| PRIMARY = Yes
| RANK = Lt.
| BY = 2371
| BM = 09
| BD = 02
| SPECIES = Human/[[Centauran]]
| POST = Chief Science Officer
| SHIP = [[Amity Outpost|Amity]]
}}
<pre>
{{ UserCharacterGallery
| NAME = Kivik
| IMAGE = Kivik-550.jpg
| PAGE = Kivik
| PRIMARY =
| RANK = Lieutenant
| BY = 2366
| BM = 09
| BD = 07
| SPECIES = [[J'naii]]
| POST = Chief Science Officer
| SHIP = [[USS Kitty Hawk]]
}}
</pre>
</noinclude>
</noinclude>

Revision as of 19:26, 22 September 2022

Example Usage

{{ UserCharacterGallery
| NAME = Robin Hopper
| IMAGE = Hopper-550.jpg
| PAGE = Robin Hopper
| PRIMARY = Yes
| RANK = Lt.
| BY = 2371
| BM = 09
| BD = 02
| SPECIES = Human/[[Centauran]]
| POST = Chief Science Officer
| SHIP = [[Amity Outpost|Amity]]
}}
Hopper-550.jpg
Lt. Robin Hopper (Primary)
30-year-old Human/Centauran
Chief Science Officer (Amity)
{{ UserCharacterGallery
| NAME = Kivik
| IMAGE = Kivik-550.jpg
| PAGE = Kivik
| PRIMARY = 
| RANK = Lieutenant
| BY = 2366
| BM = 09
| BD = 07
| SPECIES = [[J'naii]]
| POST = Chief Science Officer
| SHIP = [[USS Kitty Hawk]]
}}