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)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<onlyinclude><infobox>
<font color=white>
<title source="name"><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="likes"><label>Likes</font></label><default>Unknown</default></data>
<!-- START OF ACTUAL INFO BOX -->
<data source="dislikes"><label>Dislikes</font></label><default>Unknown</default></data>
{| border="0" cellpadding="2" cellspacing="0" style="background: #212121; border: 1px solid #d44d1c" align="center"
<data source="joined date"><label>Joined date</font></label><default>Unknown</default></data>
|-
<data source="friends with"><label>Friends with</font></label><default>Unknown</default></data>
!style="background:#d44d1c;" |<font color="white" style="font-size:120%">'''{{{name|{{PAGENAME}}}}}'''</font>
<data source="status"><label>Status</font></label><default>Unknown</default></data>
|-
</group>
|
</infobox>
<!-- BORDER AROUND THE IMAGE -->
</onlyinclude><noinclude><br style="clear:both;"/>
{| border="0" cellpadding="1" cellspacing="0" style="background: #212121; border: 1px solid #d44d1c" align="center"
<pre>
|-
{{Infobox User
![[File:{{{Picture|none.png}}}|285px|center|]]
|name =
|-
|image =
|}<div style="align=center; text-align:center">{{#if:{{{Quote|}}}|{{{Quote|}}}}}</div>
|imagecaption =
<!-- END OF BORDER AROUND IMAGE -->
|likes =
|-
|dislikes =
|
|joined date =
{| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #4a4a4a"
|friends with =
|-valign="top"
|status =  
{{#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
|name = Cat
|image = Cat.png
|imagecaption = My profile picture!
|likes = Banana
|dislikes =
|joined date = April 20th, 2014
|friends with = Other cats
|status = Active
}}
}}
|-valign="top"
</pre>
{{#if:{{{Joined date|}}} |
Result:
!width=100{{!}}Joined date:
{{Infobox User
!width=200{{!}}{{{Joined date|''Unknown''}}}
|name = Cat
|image = Cat.png
|imagecaption = My profile picture!
|likes = Banana
|dislikes =
|joined date = April 20th, 2014
|friends with = Other cats
|status = Active
}}
}}
|-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>

Latest revision as of 10:49, 4 June 2024


{{Infobox User
|name = 
|image =
|imagecaption =
|likes =
|dislikes =
|joined date =
|friends with =
|status = 
}}

Example:

{{Infobox User
|name = Cat
|image = Cat.png
|imagecaption = My profile picture!
|likes = Banana
|dislikes =
|joined date = April 20th, 2014
|friends with = Other cats
|status = Active
}}

Result: