Template:Infobox user: Difference between revisions

From Pikmin Fanon
(now let's see if i works)
(Fixed the thing of the parameter titles being as normal letters. Discovered from my infobox)
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox" align="right" style="width: 30em; font-size: 80%; text-align: left; border-style: solid; background: #fff; border-width: 2px; border-color: gray;"
{| 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|}}} |
! class="infoboxTitle" colspan="2" style="font-size: 140%; background: #ccf; text-align: center;" | {{#if:{{{icon|}}} |
  {{{!}} style = "min-width: 100%;"
  {{{!}} style = "min-width:100%;"
  {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{customname|{{BASEPAGENAME}} }}}''
  {{!}} style = "vertical-align: middle; padding-left: 32px;" {{!}} ''{{{name|{{PAGENAME}}}}}
  {{!}} style = "width: 32px;" {{!}} [[File:{{{icon|}}}|40px]]
  {{!}} style = "width: 32px;" {{!}} [[File:{{{icon}}}|40px|The icon used to represent this user.]]
  {{!}}} | ''{{{customname|{{PAGENAME}} }}}'' }}
  {{!}}} | ''{{{name|{{PAGENAME}} }}}'' }}
|-
|-
{{#if:{{{image|}}}|{{!}} colspan="2" style="background: #fff; text-align: center" {{!}} [[File:{{{image|}}}{{#if:{{{size|}}}|{{!}}{{{size|}}}}}]]|}}
{{#if:{{{image|}}}|{{!}} colspan="2" style="background: #fff; text-align:center" {{!}} [[File:{{{image|}}}{{#if:{{{size|}}}|{{!}}{{{size}}}}}]]|}}
|-
|-
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align: center" {{!}} {{{caption|}}} }}
{{#if:{{{caption|}}}|{{!}} colspan="2" style="text-align:center" {{!}} {{{caption}}} }}
|-
|-
{{#if:{{{info1|}}}|{{!}} width="40%" style="background: #eef" {{!}} {{{title1|Title}}}
{{#if:{{{t1|}}}|! width="40%" style="background: #eef" {{!}} {{{t1|Title}}}
{{!}} {{#if:{{{info|''No information''}}} }} |}}
{{!}} {{{i1|No information}}}|}}
|}
|-
<noinclude>
{{#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}}}|}}
|-
{{#if:{{{t11|}}}|! width="40%" style="background: #eef" {{!}} {{{t11|Title}}}
{{!}} {{{i11|No information}}}|}}
|}<noinclude>
{{clear}}
 
==Info==
{{todo|Some parameters could serve a dedicated purpose. Use Pikipedia's user infobox for inspiration.}}


{{clean|Improve this template to resemble other infoboxes, for use on user pages. Then, rename it to [[Template:Infobox user]].}}
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.


==Usage==
==Parameters==
Syntax:<br>
{|class="wikitable"
<code>'''<nowiki>{{</nowiki>Infobox'''<br />
! Parameter !! Mandatory !! Default !! Detailed description
'''|'''Box title    = <br />
|-
'''|'''Image file  = <br />
! name
'''|'''Image size   = <br />
| No || ''<nowiki>{{PAGENAME}}</nowiki>'' || Specify your name here it is different from the title of the page.
'''|'''Row 1 title  = <br />
|-
'''|'''Row 1 info  = <br />
! image
'''|'''Row 2 title  = <br />
| No || || Image name, with extension.
'''|'''Row 2 info  = <br />
|-
'''|'''Row 3 title  = <br />
! size
'''|'''Row 3 info  = <br />
| No || || Image size.
'''|'''Row 4 title  = <br />
|-
'''|'''Row 4 info  = <br />
! caption
'''|'''Row 5 title  = <br />
| No || || Caption for the image, if needed.
'''|'''Row 5 info  = <br />
|-
'''|'''Row 6 title  = <br />
! icon
'''|'''Row 6 info  = <br />
| No || 40px || Icon file name, with extension.
'''|'''Row 7 title  = <br />
|-
'''|'''Row 7 info  = <br />
! t1
'''|'''Row 8 title  = <br />
| No || || Title for the first piece of data about the user.
'''|'''Row 8 info  = <br />
|-
'''|'''Row 9 title  = <br />
! i1
'''|'''Row 9 info  = <br />
| No || || Information for the first piece of data about the user.
'''|'''Row 10 title = <br />
|-
'''|'''Row 10 info  = <br />
! t2
'''<nowiki>}}</nowiki>'''</code>
| 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.
|}


Notes:
==Skeleton==
* Keeping the '''Box Title''' empty will result in displaying '''No title'''
<pre>
* If you don't want to display image, just keep '''Image file Name''' and '''Image Size''' empty.
{{infobox
* Keeping the '''Row 1 title''' empty will result in displaying '''No title'''.
|name=
* Keeping the '''Row (any row) info''' empty will result in displaying '''No information'''.
|image=
* 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.
|size=
* Max row for information: 10 rows.
|caption=
* "Box title" is case sensitive; if you put something else like, say, "Box '''T'''itle", the infobox's title will still display '''No title'''
|icon=
|t1=
|i1=
|t2=
|i2=
|t3=
|i3=
|t4=
|i4=
|t5=
|i5=
|t6=
|i6=
|t7=
|i7=
|t8=
|i8=
|t9=
|i9=
|t10=
|i10=
|t11=
|i11=
}}
</pre>


[[Category:Infobox templates| ]]
[[Category:Infobox templates]]</noinclude>
</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=
}}