Difference between revisions of "Template:UserInfobox"

From Crappy Games Wiki
Jump to navigation Jump to search
(Of course it doesn't work)
Tag: Undo
(Removed sensitive and personal info, users have no reason to mention these on our wikis.)
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
  +
<infobox accent-color-source="BGColor" theme-source="BorderColor" accent-color-text-source="FontColor">
<includeonly>
 
  +
<title source="Title"><default><center>{{PAGENAME}}</center></default></title>
<!-- START OF PADDING AROUND INFO BOX -->
 
  +
<image source="image" /><header><center>''{{#if:{{{image|}}}|{{{caption}}}|}}''</center></header>
{| border="0" cellpadding="20" width= "320px" style="float: right;"
 
  +
<group>
|-
 
  +
<header>Personal Information</header>
|
 
  +
<data source="Nicknames"><label>Nicknames</label></data>
<!-- START OF ACTUAL INFO BOX -->
 
  +
<data source="Friends"><label>Friends</label></data>
{| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center"
 
  +
<data source="Enemies"><label>Enemies</label></data>
|-
 
  +
<data source="Occupation"><label>Occupation</label></data>
!style="background:green;" |'''<font color=White>{{{name|{{PAGENAME}}}}}</font>'''
 
  +
<data source="Affiliation"><label>Affiliation</label></data>
|-
 
  +
<data source="Birthday"><label>Birthday</label></data>
|
 
  +
<data source="Likes"><label>Likes</label></data>
<!-- BORDER AROUND THE IMAGE -->
 
  +
<data source="Dislikes"><label>Dislikes</label></data>
{| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center"
 
  +
</group>
|-
 
  +
<group>
![[image:{{{Picture|none.png}}}|330px|center|]]
 
  +
<header>Wiki Information</header>
|-
 
  +
<data source="Joined"><label>Joined</label></data>
|}<div style= align="center">{{#if:{{{Quote|}}}|{{{Quote|}}}}}</div>
 
  +
<data source="FirstEdit"><label>First Edit</label></data>
<!-- END OF BORDER AROUND IMAGE -->
 
  +
<data source="Wikis"><label>Wikis founded</label></data>
|-
 
  +
<data source="Admin"><label>Admin on</label></data>
|
 
  +
<data source="Status"><label>Status</label></data>
{| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #aaaaaa"
 
  +
</group>
|-valign="top"
 
  +
</infobox>
{{#if:{{{Gender|}}} |
 
  +
<noinclude>[[Category:Templates]]
!width=100{{!}}Gender:
 
  +
<div><pre>
!width=200{{!}}{{{Gender|}}}
 
  +
{{UserInfobox
  +
|BGColor=
  +
|BorderColor=
  +
|FontColor=
  +
|Title=
  +
|image=
  +
|caption=
  +
|Nicknames=
  +
|Friends=
  +
|Enemies=
  +
|Occupation=
  +
|Affiliation=
  +
|Birthday=
  +
|Likes=
  +
|Dislikes=
  +
|Joined=
  +
|FirstEdit=
  +
|Wikis=
  +
|Admin=
  +
|Status=
 
}}
 
}}
  +
</pre></div>
|-valign="top"
 
  +
==Example==
{{#if:{{{Joined|}}} |
 
  +
Notes: Use the operator <nowiki><br></nowiki> 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.
!width=100{{!}}Joined:
 
  +
!width=200{{!}}{{{Joined|}}}
 
  +
Using the following:
}}
 
|-valign="top"
 
{{#if:{{{Type|}}} |
 
!width=100{{!}}Type:
 
!width=200{{!}}{{{Type|}}}
 
}}
 
|-valign="top"
 
{{#if:{{{Wikis|}}} |
 
!width=100{{!}}Wikis:
 
!width=200{{!}}{{{Wikis|}}}
 
}}
 
|-valign="top"
 
{{#if:{{{Admin|}}} |
 
!width=100{{!}}Admin:
 
!width=200{{!}}{{{Admin|}}}
 
}}
 
|-valign="top"
 
{{#if:{{{Status|}}} |
 
!width=100{{!}}Status:
 
!width=200{{!}}{{{Status|}}}
 
}}
 
|-
 
|}
 
<!-- END OF FIRST SECTION -->
 
|}
 
<!-- END OF ACTUAL INFOBOX -->
 
|}
 
<!-- END OF PADDING AROUND INFOBOX -->
 
</includeonly>
 
<noinclude>
 
 
<div><pre>
 
<div><pre>
 
{{UserInfobox
 
{{UserInfobox
  +
|BGColor=#00FFFF
|name =
 
  +
|BorderColor=#CCCCCC
|Picture =
 
  +
|FontColor=#FFFFFF
|Quote =
 
  +
|Title=This is a test
|Gender =
 
  +
|image=Gandb_placeholder.jpg
|Joined =
 
  +
|caption=This is a test
|Type =
 
  +
|Nicknames=This is a test
|Wikis =
 
  +
|Friends=This is a test
|Admin =
 
  +
|Enemies=This is a test
|Status =
 
  +
|Occupation=This is a test
  +
|Affiliation=This is a test
  +
|Birthday=This is a test
  +
|Likes=This is a test
  +
|Dislikes=This is a test
  +
|Joined=This is a test
  +
|FirstEdit=This is a test
  +
|Wikis=This is a test
  +
|Admin=This is a test
  +
|Status=This is a test
 
}}
 
}}
 
</pre></div>
 
</pre></div>
  +
Results in the following (normally aligned on the right of the screen):
   
  +
{|
[[category:Templates]]
 
  +
|-
[[Category:Infobox templates]]
 
  +
|{{UserInfobox
  +
|BGColor=#00FFFF
  +
|BorderColor=#CCCCCC
  +
|FontColor=#FFFFFF
  +
|Title=This is a test
  +
|image=Gandb_placeholder.jpg
  +
|caption=This is a test
  +
|Nicknames=This is a test
  +
|Friends=This is a test
  +
|Enemies=This is a test
  +
|Occupation=This is a test
  +
|Affiliation=This is a test
  +
|Birthday=This is a test
  +
|Likes=This is a test
  +
|Dislikes=This is a test
  +
|Joined=This is a test
  +
|FirstEdit=This is a test
  +
|Wikis=This is a test
  +
|Admin=This is a test
  +
|Status=This is a test
  +
}}
  +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 11:11, 11 February 2021

{{UserInfobox
|BGColor=
|BorderColor=
|FontColor=
|Title=
|image=
|caption=
|Nicknames=
|Friends=
|Enemies=
|Occupation=
|Affiliation=
|Birthday=
|Likes=
|Dislikes=
|Joined=
|FirstEdit=
|Wikis=
|Admin=
|Status=
}}

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:

{{UserInfobox
|BGColor=#00FFFF
|BorderColor=#CCCCCC
|FontColor=#FFFFFF
|Title=This is a test
|image=Gandb_placeholder.jpg
|caption=This is a test
|Nicknames=This is a test
|Friends=This is a test
|Enemies=This is a test
|Occupation=This is a test
|Affiliation=This is a test
|Birthday=This is a test
|Likes=This is a test
|Dislikes=This is a test
|Joined=This is a test
|FirstEdit=This is a test
|Wikis=This is a test
|Admin=This is a test
|Status=This is a test
}}

Results in the following (normally aligned on the right of the screen):