Difference between revisions of "Template:UserDefaultPage"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{contributions}}" to "{{UserDefaultPage}}")
m (Add Template:Doc/Template usage)
 
Line 7: Line 7:
 
|-
 
|-
 
| My Wiki sandbox: || [[User:{{{1|{{PAGENAME}}}}}/Sandbox]]
 
| My Wiki sandbox: || [[User:{{{1|{{PAGENAME}}}}}/Sandbox]]
|}</includeonly><noinclude>
+
|}</includeonly><noinclude>{{Doc/Template
Adds the default userpage content.
+
|descr= Adds the default userpage content.
 
+
|param1= username
== Usage ==
+
|descr1= (Optional) username, default {{<nowiki/>PAGENAME}} (username on a User:* page)
{{<nowiki/>contributions|'''''username'''''}}
+
|example1= <nowiki>{{UserDefaultPage}}</nowiki>
* username: (Optional) username, default {{<nowiki/>PAGENAME}} (username on a User:* page)
+
|result1= &nbsp;
 
 
== Output ==
 
<nowiki>{{UserDefaultPage}}</nowiki>
 
 
{{UserDefaultPage}}
 
{{UserDefaultPage}}
 
+
|example2= <nowiki>{{UserDefaultPage|Maruk}}</nowiki>
 
+
|result2= &nbsp;
<nowiki>{{contributions|ForcedUserName}}</nowiki>
+
{{UserDefaultPage|Maruk}}
{{contributions|ForcedUserName}}
+
}}</noinclude>
 
 
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
 
</noinclude>
 

Latest revision as of 17:23, 1 February 2021

Adds the default userpage content.

This template is used on these pages.

Usage

{{UserDefaultPage|username}}

  • username: (Optional) username, default {{PAGENAME}} (username on a User:* page)
Examples
Code Result
{{UserDefaultPage}}  
My Wiki username is: UserDefaultPage
My Wiki talk page: User talk:UserDefaultPage
My Wiki contributions: Special:Contributions/UserDefaultPage
My Wiki sandbox: User:UserDefaultPage/Sandbox
{{UserDefaultPage|Maruk}}  
My Wiki username is: Maruk
My Wiki talk page: User talk:Maruk
My Wiki contributions: Special:Contributions/Maruk
My Wiki sandbox: User:Maruk/Sandbox