Template:Infobox user: Difference between revisions

From Pikmin Fanon
mNo edit summary
(Fixed the thing of the parameter titles being as normal letters. Discovered from my infobox)
 
(38 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{| border="1" align="right" cellspacing="0" cellpadding="3" style="border:1px solid #7a7a7a; float:right; width:300px; background:#ffffff; color:black; margin:0px 0px 15px 15px; border-collapse:collapse;"
{| class="infobox" align="right" style="width: 30em; background-color:#fff; font-size: 80%; text-align: left; border-style: solid; border-width: 2px; border-color: grey"
! class="infoboxTitle" colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | {{#if:{{{icon|}}} |
{{{!}} style = "min-width:100%;"
{{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{name|{{PAGENAME}}}}}
{{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|40px|The icon used to represent this user.]]
{{!}}} | ''{{{name|{{PAGENAME}} }}}'' }}
|-
|-
|height="32" colspan="2" align="center" style="background: #D1BEF4;"|
{{#if:{{{image|}}}|{{!}} colspan="2" style="background: #fff; text-align:center" {{!}} [[File:{{{image|}}}{{#if:{{{size|}}}|{{!}}{{{size}}}}}]]|}}
<div style="top:+0.2em;font-size: 105%">'''''{{{Box title|No Title}}}'''''</div>
|-
{{#if: {{{Image file|}}}|
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
{{!}}-
|-
{{!}}colspan="2" align="center" valign="top" style="background: #FFFFFF;"{{!}}
{{#if:{{{t1|}}}|! width="40%" style="background: #eef" {{!}} {{{t1|Title}}}
[[Image:{{{Image file}}}|{{{Image size}}}px]]
{{!}} {{{i1|No information}}}|}}
|
|-
}}
{{#if:{{{t2|}}}|! width="40%" style="background: #eef" {{!}} {{{t2|Title}}}
{{!}} {{{i2|No information}}}|}}
|-
{{#if:{{{t3|}}}|! width="40%" style="background: #eef" {{!}} {{{t3|Title}}}
{{!}} {{{i3|No information}}}|}}
|-
{{#if:{{{t4|}}}|! width="40%" style="background: #eef" {{!}} {{{t4|Title}}}
{{!}} {{{i4|No information}}}|}}
|-
{{#if:{{{t5|}}}|! width="40%" style="background: #eef" {{!}} {{{t5|Title}}}
{{!}} {{{i5|No information''}}}|}}
|-
{{#if:{{{t6|}}}|! width="40%" style="background: #eef" {{!}} {{{t6|Title}}}
{{!}} {{{i6|No information}}}|}}
|-
{{#if:{{{t7|}}}|! width="40%" style="background: #eef" {{!}} {{{t7|Title}}}
{{!}} {{{i7|No information}}}|}}
|-
{{#if:{{{t8|}}}|! width="40%" style="background: #eef" {{!}} {{{t8|Title}}}
{{!}} {{{i8|No information}}}|}}
|-
{{#if:{{{t9|}}}|! width="40%" style="background: #eef" {{!}} {{{t9|Title}}}
{{!}} {{{i9|No information}}}|}}
|-
{{#if:{{{t10|}}}|! width="40%" style="background: #eef" {{!}} {{{t10|Title}}}
{{!}} {{{i10|No information}}}|}}
|-
|-
|height="32" Width="30%" valign="top" style="background: #D1BEF4;"|
{{#if:{{{t11|}}}|! width="40%" style="background: #eef" {{!}} {{{t11|Title}}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 1 title|No Title}}}'''</div>
{{!}} {{{i11|No information}}}|}}
|valign="top" style="background: #FFFFFF;"|
|}<noinclude>
<div style="top:+0.2em;font-size: 95%">{{{Row 1 info|No information}}}</div>
{{clear}}
{{#if: {{{Row 2 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top"  style="background: #D1BEF4;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 2 title}}}'''</div>
{{!}}valign="top"  style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 2 info|No information}}}</div>
{{#if: {{{Row 3 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top"  style="background: #D1BEF4;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 3 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 3 info|No information}}}</div>
{{#if: {{{Row 4 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 4 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 4 info|No information}}}</div>
{{#if: {{{Row 5 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 5 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 5 info|No information}}}</div>
{{#if: {{{Row 6 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 6 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 6 info|No information}}}</div>
{{#if: {{{Row 7 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 7 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 7 info|No information}}}</div>
{{#if: {{{Row 8 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 8 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 8 info|No information}}}</div>
{{#if: {{{Row 9 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 9 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF; border: 1px solid #aaaaaa"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 9 info|No information}}}</div>
{{#if: {{{Row 10 title|}}}|
{{!}}-
{{!}}height="32" Width="30%" valign="top" style="background: #D1BEF4;"{{!}}
<div style="top:+0.2em;font-size: 95%">'''{{{Row 10 title}}}'''</div>
{{!}}valign="top" style="background: #FFFFFF;"{{!}}
<div style="top:+0.2em;font-size: 95%">{{{Row 10 info|No information}}}</div>
{{#if: {{{Row 11 title|}}}|
{{!}}-
{{!}}height="32" colspan="2" align="center" valign="top" style="background: #aaaaaa;"{{!}}
Too many parameters
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|
}}
|}
<noinclude>


==Info==
{{todo|Some parameters could serve a dedicated purpose. Use Pikipedia's user infobox for inspiration.}}


This template is used at the top of a [[Help:User page|user's page]]. This creates an information box with data about the user.


==Parameters==
{|class="wikitable"
! Parameter !! Mandatory !! Default !! Detailed description
|-
! name
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || Specify your name here it is different from the title of the page.
|-
! image
| No || || Image name, with extension.
|-
! size
| No || || Image size.
|-
! caption
| No || || Caption for the image, if needed.
|-
! icon
| No || 40px || Icon file name, with extension.
|-
! t1
| No || || Title for the first piece of data about the user.
|-
! i1
| No || || Information for the first piece of data about the user.
|-
! t2
| No || || Title for the second piece of data about the user.
|-
! i2
| No || || Information for the second piece of data about the user.
|-
! t3
| No || || Title for the third piece of data about the user.
|-
! i3
| No || || Information for the third piece of data about the user.
|-
! t4
| No || || Title for the fourth piece of data about the user.
|-
! i4
| No || || Information for the fourth piece of data about the user.
|-
! t5
| No || || Title for the fifth piece of data about the user.
|-
! i5
| No || || Information for the fifth piece of data about the user.
|-
! t6
| No || || Title for the sixth piece of data about the user.
|-
! i6
| No || ||Information for the sixth piece of data about the user.
|-
! t7
| No || || Title for the seventh piece of data about the user.
|-
! i7
| No || || Information for the seventh piece of data about the user.
|-
! t8
| No || || Title for the eighth piece of data about the user.
|-
! i8
| No || || Information for the eighth piece of data about the user.
|-
! t9
| No || || Title for the ninth of data about the user.
|-
! i9
| No || || Information for the ninth piece of data about the user.
|-
! t10
| No || || Title for the tenth piece of data about the user.
|-
! i10
| No || || Information for the tenth piece of data about the user.
|-
! t11
| No || || Title for the eleventh piece of data about the user.
|-
! i11
| No || || Information for the eleventh piece of data about the user.
|}


==Skeleton==
<pre>
{{infobox
|name=
|image=
|size=
|caption=
|icon=
|t1=
|i1=
|t2=
|i2=
|t3=
|i3=
|t4=
|i4=
|t5=
|i5=
|t6=
|i6=
|t7=
|i7=
|t8=
|i8=
|t9=
|i9=
|t10=
|i10=
|t11=
|i11=
}}
</pre>


==Usage==
[[Category:Infobox templates]]</noinclude>
Syntax:<br>
<code>'''<nowiki>{{</nowiki>Infobox'''<br />
'''|'''Box title    = <br />
'''|'''Image file  = <br />
'''|'''Image size  = <br />
'''|'''Row 1 title  = <br />
'''|'''Row 1 info  = <br />
'''|'''Row 2 title  = <br />
'''|'''Row 2 info  = <br />
'''|'''Row 3 title  = <br />
'''|'''Row 3 info  = <br />
'''|'''Row 4 title  = <br />
'''|'''Row 4 info  = <br />
'''|'''Row 5 title  = <br />
'''|'''Row 5 info  = <br />
'''|'''Row 6 title  = <br />
'''|'''Row 6 info  = <br />
'''|'''Row 7 title  = <br />
'''|'''Row 7 info  = <br />
'''|'''Row 8 title  = <br />
'''|'''Row 8 info  = <br />
'''|'''Row 9 title  = <br />
'''|'''Row 9 info  = <br />
'''|'''Row 10 title = <br />
'''|'''Row 10 info  = <br />
'''<nowiki>}}</nowiki>'''</code>
 
Notes:
* Keeping the '''Box Title''' empty will result in displaying '''No title'''
* If you don't want to display image, just keep '''Image file Name''' and '''Image Size''' empty.
* Keeping the '''Row 1 title''' empty will result in displaying '''No title'''.
* Keeping the '''Row (any row) info''' empty will result in displaying '''No information'''.
* Keeping the '''Row (any below row 1) title''' empty will result in that row and the rest of the rows below it will not be displayed.
* Max row for information: 10 rows.
* "Box title" is case sensitive; if you put something else like, say, "Box '''T'''itle", the infobox's title will still display '''No title'''
 
[[Category:General wiki templates]]
</noinclude>

Latest revision as of 06:23, 2 February 2024

Infobox user

Info

To do: Some parameters could serve a dedicated purpose. Use Pikipedia's user infobox for inspiration.

This template is used at the top of a user's page. This creates an information box with data about the user.

Parameters

Parameter Mandatory Default Detailed description
name No {{PAGENAME}} Specify your name here it is different from the title of the page.
image No Image name, with extension.
size No Image size.
caption No Caption for the image, if needed.
icon No 40px Icon file name, with extension.
t1 No Title for the first piece of data about the user.
i1 No Information for the first piece of data about the user.
t2 No Title for the second piece of data about the user.
i2 No Information for the second piece of data about the user.
t3 No Title for the third piece of data about the user.
i3 No Information for the third piece of data about the user.
t4 No Title for the fourth piece of data about the user.
i4 No Information for the fourth piece of data about the user.
t5 No Title for the fifth piece of data about the user.
i5 No Information for the fifth piece of data about the user.
t6 No Title for the sixth piece of data about the user.
i6 No Information for the sixth piece of data about the user.
t7 No Title for the seventh piece of data about the user.
i7 No Information for the seventh piece of data about the user.
t8 No Title for the eighth piece of data about the user.
i8 No Information for the eighth piece of data about the user.
t9 No Title for the ninth of data about the user.
i9 No Information for the ninth piece of data about the user.
t10 No Title for the tenth piece of data about the user.
i10 No Information for the tenth piece of data about the user.
t11 No Title for the eleventh piece of data about the user.
i11 No Information for the eleventh piece of data about the user.

Skeleton

{{infobox
|name=
|image=
|size=
|caption=
|icon=
|t1=
|i1=
|t2=
|i2=
|t3=
|i3=
|t4=
|i4=
|t5=
|i5=
|t6=
|i6=
|t7=
|i7=
|t8=
|i8=
|t9=
|i9=
|t10=
|i10=
|t11=
|i11=
}}