Template:Infobox User: Difference between revisions

From Screamer Wiki
Jump to: navigation, search
m (Tankman fan 44 moved page Template:UserInfobox to Template:Infobox User without leaving a redirect: Better name)
(Redesign.)
Line 1: Line 1:
<includeonly>
<onlyinclude><infobox>
<font color=white>
<title source="title"><default><font face="Rubik"; style="font-weight:bold">{{PAGENAME}}</font></default></title>
<!-- START OF PADDING AROUND INFO BOX -->
<image source="image"><default>NoImageAvailable.png</default><caption source="imagecaption"/></image>
{| border="0" cellpadding="20" width= "320px" style="float: right;"
<group>
|-
<header><font face=Rubik><font color="white">'''About This User'''</font></header>
|
<data source="interested in"><label>Interested in</font></label><default>Unknown</default></data>
<!-- START OF ACTUAL INFO BOX -->
<data source="joined date"><label>Joined date</font></label><default>Unknown</default></data>
{| border="0" cellpadding="2" cellspacing="0" style="background: #212121; border: 1px solid #d44d1c" align="center"
<data source="friends with"><label>Friends with</font></label><default>Unknown</default></data>
|-
</group>
!style="background:#d44d1c;" |<font color="white" style="font-size:120%">'''{{{name|{{PAGENAME}}}}}'''</font>
</infobox>
|-
</onlyinclude><noinclude><br style="clear:both;"/>
|
<pre>
<!-- BORDER AROUND THE IMAGE -->
{{Infobox User
{| border="0" cellpadding="1" cellspacing="0" style="background: #212121; border: 1px solid #d44d1c" align="center"
|title =
|-
|image =
![[File:{{{Picture|none.png}}}|285px|center|]]
|imagecaption =
|-
|interested in =  
|}<div style="align=center; text-align:center">{{#if:{{{Quote|}}}|{{{Quote|}}}}}</div>
|joined date =
<!-- END OF BORDER AROUND IMAGE -->
|friends with =
|-
|
{| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #4a4a4a"
|-valign="top"
{{#if:{{{Birth date|}}} |
!width=100{{!}}Birth date:
!width=200{{!}}{{{Birth date|''Unknown''}}}
}}
}}
|-valign="top"
</pre>
{{#if:{{{Interested in|}}} |
Example:
!width=100{{!}}Interested in:
<pre>
!width=200{{!}}{{{Interested in|''Unknown''}}}
{{Infobox User
|title =
|image = Cat.png
|imagecaption = My profile picture!
|interested in = Banana
|joined date = April 20th, 2014
|friends with = Other cats
}}
}}
|-valign="top"
</pre>
{{#if:{{{Joined date|}}} |
Result:
!width=100{{!}}Joined date:
{{Infobox User
!width=200{{!}}{{{Joined date|''Unknown''}}}
|title =
|image = Cat.png
|imagecaption = My profile picture!
|interested in = Banana
|joined date = April 20th, 2014
|friends with = Other cats
}}
}}
|-valign="top"
{{#if:{{{Friends with|}}} |
!width=100{{!}}Friends with:
!width=200{{!}}{{{Friends with|''Unknown''}}}
}}
|-valign="top"
{{#if:{{{Enemies|}}} |
!width=100{{!}}Enemies:
!width=200{{!}}{{{Enemies|''Unknown''}}}
}}
|-
|}
<!-- END OF FIRST SECTION  -->
|}
<!-- END OF ACTUAL INFOBOX -->
|}
<!-- END OF PADDING AROUND INFOBOX -->
</font>
</includeonly>
<noinclude>
<div><pre>
{{UserInfobox
|Picture =
|Birth date =
|Interested in =
|Joined date =
|Friends with =
|Enemies =
}}
</pre></div>
==Example==
Notes: Use the operator <br> in source mode to add linebreaks within the table. Sections left blank will not be displayed. The title that appears at the top of the infobox will be the same as the name of the page it is on. Note that the picture field requires the extension (.jpg, .jpeg, .png) to be present, and requires that the File: or Image: part of the link not be present.
Using the following:
<div><pre>
{{UserInfobox
|Picture = Cat.png
|Birth date = 6
|Interested in = Banana
|Joined date = April 20th, 2014
|Friends with = Other cats
|Enemies =
}}
</pre></div>
Results in the following (normally aligned on the right of the screen):
{|
|-
|{{UserInfobox
|Picture = Cat.png
|Birth date = 6
|Interested in = Banana
|Joined date = April 20th, 2014
|Friends with = Other cats
}}
|-
|}
<br clear=all>
[[Category:Templates]]
[[Category:Templates]]
[[Category:Infobox]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Revision as of 20:50, 5 October 2023


{{Infobox User
|title = 
|image =
|imagecaption =
|interested in = 
|joined date =
|friends with =
}}

Example:

{{Infobox User
|title = 
|image = Cat.png
|imagecaption = My profile picture!
|interested in = Banana
|joined date = April 20th, 2014
|friends with = Other cats
}}

Result: