Template:User page/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
<includeonly>{{ModernTodo|Someday complete work on this template, thereby standardizing non-stylized user pages.}}</includeonly>
<includeonly>{{ModernTodo|Someday complete work on this template, thereby standardizing non-stylized user pages.}}</includeonly>
<includeonly>{{ModernTodo|This template should become the second {{tl|MultiPage}}, but for user pages.}}</includeonly>
<includeonly>{{ModernTodo|This template should become the second {{tl|MultiPage}}, but for user pages.}}</includeonly>
{{ModernNote|Work on the template is temporarily suspended. The template author doesn't have any good ideas yet 🙁}}
{{ModernNote|The template is being worked on from time to time. The template author doesn't have any good ideas yet 🙁}}


== Preview ==
== Translations ==
<br>{{User page}}
The used strings are on [[/strings|strings subpage]]. Please follow the format to add translations for them.


== Parameters and Examples ==
== Parameters and Examples ==
{| class="standard-table" style="width:100%"
{| class="standard-table" style="width:100%"
!style="width:10%"|Parameter
! style="width:10%" | Parameter
!Description
! Description
!Example
! Example
|-
|-
|align="center"|No Parameters
| align="center" | No Parameters
|This template will automatically search and attempt to load these images {{code|UserAvatar-YOURNAME}} {{code|UserAvatarFrame-YOURNAME}} or {{code|UserCover-YOURNAME}}. If any of the applicable images are available, then they will replace their correspondent placeholder counterparts seen above.<br>
| This template will automatically search and attempt to load these images {{Code|UserAvatar-YOURNAME}} {{Code|UserAvatarFrame-YOURNAME}} or {{Code|UserCover-YOURNAME}}. If any of the applicable images are available, then they will replace their correspondent placeholder counterparts seen above.<br>
Another thing to note. If your user page has a subpage called "Achievements", and it has the {{code|<nowiki>{{Wikichievements}}</nowiki>}} template transcluded into it, then this template will detect that and load a box to the right of your userpage titled "Achievements". If you have any achievements defined in {{code|<nowiki>{{Wikichievements/Data}}</nowiki>}} then they will load in the aforementioned box.
Another thing to note. If your user page has a subpage called "Achievements", and it has the {{Code|<nowiki>{{Wikichievements}}</nowiki>}} template transcluded into it, then this template will detect that and load a box to the right of your userpage titled "Achievements". If you have any achievements defined in {{Code|<nowiki>{{Wikichievements/Data}}</nowiki>}} then they will load in the aforementioned box.
|{{CodeBlock|{{((}}{{ROOTPAGENAME}}{{))}}}}
| {{CodeBlock|{{((}}{{ROOTPAGENAME}}{{))}}}}
|-
|-
|align="center"|{{param|doc}}
| align="center" | {{Param|doc}}
|''Optional:'' Prevents the username defined in {{code|/settings}} from being loaded; ergo forcing {{code|<nowiki>{{PAGETITLE}}</nowiki>}} to be used instead.  
| ''Optional:'' Prevents the username defined in {{Code|/settings}} from being loaded; ergo forcing {{Code|<nowiki>{{PAGETITLE}}</nowiki>}} to be used instead.  
|{{CodeBlock|<nowiki>{{Userpage|doc=1}}</nowiki>}}
| {{CodeBlock|<nowiki>{{Userpage|doc=1}}</nowiki>}}
|-
|-
|align="center"|{{param|links}}
| align="center" | {{Param|links}}
|''Optional:'' For specifying links that will appear in a box to the right titled "Links".<br>
| ''Optional:'' For specifying links that will appear in a box to the right titled "Links".<br>
{{ModernNote|You can specify whatever content you want to appear in {{param|links}}}}
{{ModernNote|You can specify whatever content you want to appear in {{Param|links}}}}
|{{CodeBlock|<nowiki>{{Userpage|links=[[Category:Templates]]}}</nowiki>}}
| {{CodeBlock|<nowiki>{{Userpage|links=[[Category:Templates]]}}</nowiki>}}
|-
|-
|}
|}
== Preview ==
<br>{{User page}}

Revision as of 02:16, 1 April 2023


Template:ModernNote

Translations

The used strings are on strings subpage. Please follow the format to add translations for them.

Parameters and Examples

Parameter Description Example
No Parameters This template will automatically search and attempt to load these images UserAvatar-YOURNAME UserAvatarFrame-YOURNAME or UserCover-YOURNAME. If any of the applicable images are available, then they will replace their correspondent placeholder counterparts seen above.

Another thing to note. If your user page has a subpage called "Achievements", and it has the {{Wikichievements}} template transcluded into it, then this template will detect that and load a box to the right of your userpage titled "Achievements". If you have any achievements defined in {{Wikichievements/Data}} then they will load in the aforementioned box.

{{User page}}
{{{doc}}} Optional: Prevents the username defined in /settings from being loaded; ergo forcing {{PAGETITLE}} to be used instead.
{{Userpage|doc=1}}
{{{links}}} Optional: For specifying links that will appear in a box to the right titled "Links".

Template:ModernNote

{{Userpage|links=[[Category:Templates]]}}

Preview


Add a cover (PNG or JPG)


Add an avatar (PNG or JPG)


User page/doc


User SandboxUser Settings