(Testing adding a slideshow into the template....) |
No edit summary |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <div style="width:250px;float:right;clear:none;margin:1em 0 1em 1em;border:1px solid {{Theme.Default.Border}};background:{{Theme.Default.BG}}; |
+ | <div style="width:250px; float:right; clear:none; margin:1em 0 1em 1em; border:1px solid {{Theme.Default.Border}}; background:{{Theme.Default.BG}}; border-radius:10px; padding:10px 10px 10px 10px;"><span style="position:relative; float:right; font-size:70%;">[[File:Information-silk.png|link=Marvel Database:User Page Template#Usage|User Page Template]]</span><div style="text-align:center; font-size:16px; font-weight:900; line-height:1.5em;">{{#if: {{{Title|}}} | {{{Title}}} | {{PAGENAME}} }}</div><div style="text-align:center;font-size:10px;font-weight:900;line-height:1em;"><br /></div><!-- |
− | -->{{#if: {{{Image2|}}} || {{#if: {{{Image|}}} | |
+ | -->{{#if: {{{Slideshow|}}}{{{Image2|}}} || {{#if: {{{Image|}}} | |
[[File:{{{Image}}}|{{{ImageSize|200px}}}|center|{{#if: {{{ImageText|}}} | {{{ImageText}}} | {{PAGENAME}} }}]] }} }}<!-- |
[[File:{{{Image}}}|{{{ImageSize|200px}}}|center|{{#if: {{{ImageText|}}} | {{{ImageText}}} | {{PAGENAME}} }}]] }} }}<!-- |
||
+ | |||
− | |||
-->{{#if: {{{Image2|}}} | |
-->{{#if: {{{Image2|}}} | |
||
+ | {{Slideshow |
||
− | <includeonly><gallery align=center type="slideshow" widths="250"></includeonly> |
||
− | {{{Image}}} |
+ | |{{#if:{{{Image|}}}|{{{Image}}}}} |
− | {{{Image2}}} |
+ | |{{#if:{{{Image2|}}}|{{{Image2}}}}} |
+ | |{{#if:{{{Image3|}}}|{{{Image3}}}}} |
||
− | <includeonly></gallery></includeonly> |
||
+ | }} |
||
}}<!-- |
}}<!-- |
||
+ | |||
+ | -->{{#if: {{{Image2|}}} ||{{#if: {{{Slideshow|}}} | {{{Slideshow}}} }} }}<!-- |
||
− | --><div style="text-align:center;font-size:14px;font-weight:900;line-height:2.5em;">{{#if: {{{Gallery|}}} | [[{{{Gallery}}}|Gallery]] | [[User:{{PAGENAME}}/Gallery|Gallery]] }}<br /></div><div style="clear:left;font-size:10px;text-align:center;border-top:2px solid {{Theme.Default.Border}};"> |
+ | --><div style="text-align:center; font-size:14px; font-weight:900; line-height:2.5em;">{{#if: {{{Gallery|}}} | [[{{{Gallery}}}|Gallery]] | [[User:{{PAGENAME}}/Gallery|Gallery]] }}<br /></div><div style="clear:left; font-size:10px; text-align:center; border-top:2px solid {{Theme.Default.Border}};"> |
<div style="width:90px;float:left;text-align:left;">Real Name</div> |
<div style="width:90px;float:left;text-align:left;">Real Name</div> |
||
<div style="width:160px;float:left;text-align:right;">{{#if: {{{RealName|}}} | {{{RealName}}} | Unknown }}</div> |
<div style="width:160px;float:left;text-align:right;">{{#if: {{{RealName|}}} | {{{RealName}}} | Unknown }}</div> |
||
Line 47: | Line 50: | ||
<div style="width:90px;float:left;text-align:left;">{{{CustomLabel|Label Needed!}}}</div> |
<div style="width:90px;float:left;text-align:left;">{{{CustomLabel|Label Needed!}}}</div> |
||
<div style="width:160px;float:left;text-align:right;">{{{Custom}}}</div> |
<div style="width:160px;float:left;text-align:right;">{{{Custom}}}</div> |
||
− | </div>{{brclear}}}}</div>{{#if: {{{Gender|}}} |<div style="width: |
+ | </div>{{brclear}}}}</div>{{#if: {{{Gender|}}} |<div style="width:110px;position:relative;left:90px;line-height:2em;">Characteristics</div><div style="clear:left;font-size:10px;text-align:center;border-top:1px solid {{Theme.Default.Border}};"> |
<div style="width:90px;float:left;text-align:left;">Gender</div> |
<div style="width:90px;float:left;text-align:left;">Gender</div> |
||
<div style="width:160px;float:left;text-align:right;">[[:Category:{{{Gender}}} Users|{{{Gender}}}]]{{#if: {{{Gender2|}}} |{{{Gender2}}}}}</div> |
<div style="width:160px;float:left;text-align:right;">[[:Category:{{{Gender}}} Users|{{{Gender}}}]]{{#if: {{{Gender2|}}} |{{{Gender2}}}}}</div> |
Revision as of 08:32, 15 December 2018
See Also
- User Page Template's Talk Page
- User Page Template's Contributions
- User Page Template's Talk Page Archive
- User Page Template's Personal Image Gallery
- User Page Template's Favourites
- User Page Template's Blog
- News submitted by User Page Template
Usage
Always Present Fields
| RealName = REAL NAME | CurrentAlias = CURRENT ALIAS | First = FIRST APPEARANCE | HistoryText = HISTORY / BIOGRAPHY | Powers = POWERS | Abilities = ABILITIES | Strength = PHYSICAL STRENGTH | Weaknesses = WEAKNESSES | Equipment = EQUIPMENT | Transportation = MEANS OF TRANSPORTATION | Weapons = WEAPONS | Notes = NOTES | Trivia = TRIVIA | Links = LINKS AND REFERENCES
Optional Fields
| Image = FILENAME | Aliases = ALIASES | Identity = SECRET OR PUBLIC | Affiliation = AFFILIATION | Relatives = RELATIVES | Universe = UNIVERSE / REALITY | BaseOfOperations = BASE OF OPERATIONS | CustomLabel = CUSTOM LABEL | Custom = CUSTOM | Gender = MALE, FEMALE, OTHER | Height = HEIGHT | Weight = WEIGHT | Eyes = EYE COLOR | Hair = HAIR COLOR | UnusualFeatures = UNUSUAL FEATURES | Citizenship = COUNTRY OF CITIZENSHIP | MaritalStatus = MARITAL STATUS | Occupation = OCCUPATION | Education = EDUCATION | Origin = ORIGIN OF POWERS / ABILITIES | PlaceOfBirth = PLACE OF BIRTH | PlaceOfDeath = PLACE OF DEATH | Creator = SINGLE CREATOR ( DON'T USE WITH CREATORS ) | Creators = MULTIPLE CREATORS ( DON'T USE WITH CREATOR ) | Last = LAST APPEARANCE | OtherMedia = APPEARANCES IN OTHER MEDIA | CustomSection1 = CUSTOM SECTION HEADER | CustomText1 = CUSTOM SECTION TEXT | CustomSection2 = CUSTOM SECTION HEADER | CustomText2 = CUSTOM SECTION TEXT
Manual Overrides
| Title = DEFAULT : PAGENAME | ImageSize = DEFAULT : 200 | ImageText = DEFAULT : PAGENAME | Gallery = DEFAULT : PAGENAME/GALLERY | HistoryHeader = DEFAULT : History | PowersAbilitiesHeader = DEFAULT : Powers and Ablities | ParaphernaliaHeader = DEFAULT : Paraphernalia | NotesHeader = DEFAULT : Notes | TriviaHeader = DEFAULT : Trivia | OtherMediaHeader = DEFAULT : Appearances in Other Media | SeeAlsoHeader = DEFAULT : See Also | LinksHeader = DEFAULT : Links and References
Empty Syntax (Standard Options)
{{Marvel Database:User Page Template | Image = | RealName = | CurrentAlias = | Aliases = | Identity = | Affiliation = | Relatives = | Universe = | BaseOfOperations = | Gender = | Height = | Weight = | Eyes = | Hair = | UnusualFeatures = | Citizenship = | MaritalStatus = | Occupation = | Education = | Origin = | PlaceOfBirth = | Creators = | First = | HistoryText = | Powers = | Abilities = | Strength = | Weaknesses = | Equipment = | Transportation = | Weapons = | Notes = | Trivia = | Links = }}
Category Magic
This template automatically categorizes articles that use it. The following is a list of categories handled: * Always: ** Category:Users * If Defined: ** Category:{{{Gender}}} Users ** Category:{{{Eyes}}}-Eyed Users ** Category:{{{Hair}}}-Haired Users ** Category:{{{Citizenship}}} Users ** Category:{{{MaritalStatus}}} Users * If Not Defined: ** None * Special Cases: ** Category:Bald Users (if {{{Hair}}} is Bald)
Note
* The 'Characteristics', 'Status' and 'Origin' headers within the infobox will only appear if values are set for 'Gender'', 'Citizenship' and 'Origin', respectively. * TODO: Handle: Bald / No Hair (two different things), Reddish Blond, etc ** Could be handled by | HairOverride = or something to that effect? * TODO: Handle: Sinister Six members (dynamic team memberships) * TODO: Should 'ImageText' be part of the default empty sytnax? * TODO: QA [[:Category: {Universe}]] code (see bottom), if works, then deploy to all wikis. * TODO: Add {{#ifexist logic to gallery/quotes/appearances etc and make 'tasks' out of them. ** Could also be done for any/every undefined field!