fixes |
More templateinfo |
||
Line 61: | Line 61: | ||
{{Documentation|content= | {{Documentation|content= | ||
See also: [[Template:User Info]] | See also: [[Template:User Info]] | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 68: | Line 66: | ||
"image": { | "image": { | ||
"description": "URL of image. Has higher priority than \"img\".", | "description": "URL of image. Has higher priority than \"img\".", | ||
"type": "url" | "type": "url", | ||
"example": "https://example.com/baUhso.png", | |||
"autovalue": "https://", | |||
"label": "External image" | |||
}, | }, | ||
"img": { | "img": { | ||
"description": "Filename of image (without the \" | "description": "Filename of image (without the \"File:\" prefix). User avatar will be shown if both \"image\" and this are unspecified.", | ||
"type": "string" | "type": "string", | ||
"example": "MoeGirlPedia.jpg", | |||
"label": "Internal image", | |||
"autovalue": "" | |||
}, | }, | ||
"width": { | "width": { | ||
"description": "CSS width of info box.", | |||
"type": "string", | "type": "string", | ||
"autovalue": " | "default": "250px", | ||
"example": "267px", | |||
"autovalue": "", | |||
"label": "Box width" | |||
}, | }, | ||
"user": { | "user": { | ||
"description": "User name. Defaults to {{BASEPAGENAME}}.", | "description": "User name. Used fow showing avatar and statistics. Defaults to {{BASEPAGENAME}}.", | ||
"type": "string" | "type": "string", | ||
"example": "DGCK81LNN", | |||
"label": "User" | |||
}, | }, | ||
"ribbon-fc": { | "ribbon-fc": { | ||
"type": "string", | "type": "string", | ||
" | "default": "#000", | ||
"example": "#042", | |||
"label": "Title color" | |||
}, | }, | ||
"ribbon-c": { | "ribbon-c": { | ||
"example": " | "example": "#6FC", | ||
" | "default": "#6CF", | ||
"label": "Title bar fill color" | |||
}, | }, | ||
"lwidth": { | "lwidth": { | ||
"description": "CSS width of left column.", | "description": "CSS width of left column.", | ||
"type": "string", | "type": "string", | ||
" | "default": "80px", | ||
"example": "90px", | |||
"label": "Left column width" | |||
}, | }, | ||
"Name": { | "Name": { | ||
"description": "Defaults to the value of \"user\".", | "description": "Defaults to the value of \"user\".", | ||
"type": "content" | "type": "content", | ||
"example": "Roy" | |||
}, | }, | ||
"Aliases": { | "Aliases": { | ||
"type": "content" | "type": "content", | ||
"example": "Royi, LNN, Innocent Souls" | |||
}, | }, | ||
"Sex": { | "Sex": { | ||
"type": "content" | "type": "content", | ||
"example": "Male" | |||
}, | }, | ||
"Gender": { | "Gender": { | ||
Line 111: | Line 127: | ||
}, | }, | ||
"hide": { | "hide": { | ||
"description": " | "description": "Set to anything to hide statistics.", | ||
"type": "boolean" | "type": "boolean", | ||
"example": "yes", | |||
"label": "Hide statistics?" | |||
}, | }, | ||
"Bio": { | "Bio": { | ||
"type": "content" | "type": "content", | ||
"example": "A normal Chinese student" | |||
}, | }, | ||
"Status": { | "Status": { | ||
"type": "content" | "type": "content", | ||
"example": "In school" | |||
}, | }, | ||
"title": { | "title": { | ||
"description": "Infobox title.", | "description": "Infobox title.", | ||
" | "default": "About Me", | ||
"example": "About DGCK81LNN", | |||
"label": "Title" | |||
} | } | ||
}, | }, | ||
Line 141: | Line 163: | ||
"Bio", | "Bio", | ||
"Status" | "Status" | ||
] | ], | ||
"description": "Displays info box for user page.\nCapitalized parameters are displayed directly as info rows, and optional rows will not appear when omitted; you can also add more rows by providing unspecified named parameters.", | |||
"format": "block" | |||
} | } | ||
</templatedata> | </templatedata> | ||
}} | |||
[[zh:Template:User_Infobox]] | |||
</noinclude> | </noinclude> |
See also: Template:User Info
Displays info box for user page. Capitalized parameters are displayed directly as info rows, and optional rows will not appear when omitted; you can also add more rows by providing unspecified named parameters.
Parameter | Description | Type | Status | |
---|---|---|---|---|
External image | image | URL of image. Has higher priority than "img".
| URL | optional |
Internal image | img | Filename of image (without the "File:" prefix). User avatar will be shown if both "image" and this are unspecified.
| String | optional |
Box width | width | CSS width of info box.
| String | optional |
User | user | User name. Used fow showing avatar and statistics. Defaults to {{BASEPAGENAME}}.
| String | optional |
Title color | ribbon-fc | no description
| String | optional |
Title bar fill color | ribbon-c | no description
| Unknown | optional |
Title | title | Infobox title.
| Unknown | optional |
Left column width | lwidth | CSS width of left column.
| String | optional |
Name | Name | Defaults to the value of "user".
| Content | optional |
Aliases | Aliases | no description
| Content | optional |
Sex | Sex | no description
| Content | optional |
Gender | Gender | no description | Content | optional |
Hide statistics? | hide | Set to anything to hide statistics.
| Boolean | optional |
Bio | Bio | no description
| Content | optional |
Status | Status | no description
| Content | optional |