Template:User: Difference between revisions
Jump to navigation
Jump to search
m (Minor colour updates) |
No edit summary |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| style="background-color: # | {| style="background-color: #E0E0E0; border: 1px solid #AAAAAA; border-radius: 5px; width: 300px; float:right; margin-left: 10px; font-size: 12pt" cellspacing="0" cellpadding="0" | ||
|-align="center" valign="middle" | |-align="center" valign="middle" | ||
| | | style="padding: 7px" | '''{{{name|{{PAGENAME}}}}}''' | ||
|- | |||
| | |||
{| style="background-color:#F9F9F9; font-size:9pt; width:300px" cellpadding="0" cellspacing="5" | |||
|-align="left" valign="top" | |-align="left" valign="top" | ||
| style="width: 120px;" | '''LDraw username''' | | style="width:120px; max-width:120px; min-width:120px" | '''LDraw username''' | ||
| {{{ldraw username|<span style="color:#999">Not supplied</span>}}} | | {{{ldraw username|<span style="color:#999">Not supplied</span>}}} | ||
|-align="left" valign="top" | |-align="left" valign="top" | ||
| '''Age''' | |||
| {{{age|<span style="color:#999">Not supplied</span>}}} | | {{{age|<span style="color:#999">Not supplied</span>}}} | ||
|-align="left" valign="top" | |-align="left" valign="top" | ||
Line 12: | Line 15: | ||
| {{{country|<span style="color:#999">Not supplied</span>}}} | | {{{country|<span style="color:#999">Not supplied</span>}}} | ||
|-align="left" valign="top" | |-align="left" valign="top" | ||
| '''Role(s)''' | |||
| {{{role|<span style="color:#999">N/A</span>}}} | | {{{role|<span style="color:#999">N/A</span>}}} | ||
|-align="left" valign="top" | |-align="left" valign="top" | ||
| '''Image''' | |||
| {{{image|<span style="color:#999">N/A</span>}}} | |||
|-align=" | |} | ||
| | |-align="right" valign="middle" | ||
| style="color: #AAAAAA; font-size: 7pt; font-weight: bold; padding: 0px 10px" | User infobox | |||
|}<noinclude> | |}<noinclude> | ||
{{merge|Template:Person}} | |||
{{merge|Template:PersonPic}} | |||
==Usage== | ==Usage== | ||
<pre style="overflow:auto">{{User | <pre style="overflow:auto">{{User | ||
|name = <!-- Delete this | |name = <!-- Delete this line completely to use the {{PAGENAME}} parameter --> | ||
|ldraw username = | |ldraw username = | ||
|age = | |age = | ||
|country = | |country = | ||
|role = <!-- Each role should be separated with the <br> tag --> | |role = <!-- Each role should be separated with the <br> tag --> | ||
|image = <!-- This parameter should | |image = <!-- This parameter should use this page's sub-template: {{user/image|ImageName.jpg}} --> | ||
}}</pre> | }}</pre> | ||
Line 40: | Line 44: | ||
'''name''' | '''name''' | ||
:Name of the user as displayed at the top of the infobox. To use the {{code| | :Name of the user as displayed at the top of the infobox. To use the {{code|<nowiki>{{PAGENAME}}</nowiki>}} parameter, remove this line from the infobox. Leaving the field blank will cause the name to be displayed incorrectly. | ||
'''ldraw username''' | '''ldraw username''' | ||
Line 50: | Line 54: | ||
'''country''' | '''country''' | ||
:The user's country of residence. | :The user's country of residence. | ||
'''role''' | '''role''' | ||
Line 58: | Line 59: | ||
'''image''' | '''image''' | ||
:An image of the user. This could also be their LDraw Discussion Forum avatar. | :An image of the user. This could also be their LDraw Discussion Forum avatar. Use the {{code|<nowiki>{{user/image}}</nowiki>}} template to insert an auto-resized image. | ||
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude> | [[Category:Infobox templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 12:33, 2 April 2018
User | ||||||||||
| ||||||||||
User infobox |
The contents of this page overlaps with Template:Person It is suggested to merge these pages into one. |
The contents of this page overlaps with Template:PersonPic It is suggested to merge these pages into one. |
Usage
{{User |name = <!-- Delete this line completely to use the {{PAGENAME}} parameter --> |ldraw username = |age = |country = |role = <!-- Each role should be separated with the <br> tag --> |image = <!-- This parameter should use this page's sub-template: {{user/image|ImageName.jpg}} --> }}
Parameters
If the parameter is not known, the field should be removed from the infobox to ensure that "Not supplied" or "N/A" (see example above right) is displayed, rather than the field appearing empty. [This is due to a wiki limitation.]
name
- Name of the user as displayed at the top of the infobox. To use the {{PAGENAME}} parameter, remove this line from the infobox. Leaving the field blank will cause the name to be displayed incorrectly.
ldraw username
- The user's LDraw username.
age
- The user's age.
country
- The user's country of residence.
role
- The user's role(s) within the LDraw community.
image
- An image of the user. This could also be their LDraw Discussion Forum avatar. Use the {{user/image}} template to insert an auto-resized image.