Difference between revisions of "Template:UserDefaultPage"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (reformatted)
m (Add Template:Doc/Template usage)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
<includeonly>{|
=Usage=
+
| My Wiki username is: || '''{{{1|{{PAGENAME}}}}}'''
Insert into empty user's page as '''<nowiki>{{contributions|UserName}}</nowiki>'''
+
|-
 
+
| My Wiki talk page: || [[User talk:{{{1|{{PAGENAME}}}}}]]
 
+
|-
=Output=
+
| My Wiki contributions: || [[Special:Contributions/{{{1|{{PAGENAME}}}}}]]
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
+
|-
</noinclude>
+
| My Wiki sandbox: || [[User:{{{1|{{PAGENAME}}}}}/Sandbox]]
My Wiki username is: '''{{{1|{{PAGENAME}}}}}'''
+
|}</includeonly><noinclude>{{Doc/Template
 
+
|descr= Adds the default userpage content.
My Wiki contributions: [[Special:Contributions/{{{1|{{PAGENAME}}}}}| Contributions:{{{1|{{PAGENAME}}}}}]]
+
|param1= username
 
+
|descr1= (Optional) username, default {{<nowiki/>PAGENAME}} (username on a User:* page)
I can do my private editing experiments in [[{{{1|{{PAGENAME}}}}}'s Sandbox]]
+
|example1= <nowiki>{{UserDefaultPage}}</nowiki>
 +
|result1= &nbsp;
 +
{{UserDefaultPage}}
 +
|example2= <nowiki>{{UserDefaultPage|Maruk}}</nowiki>
 +
|result2= &nbsp;
 +
{{UserDefaultPage|Maruk}}
 +
}}</noinclude>

Latest revision as of 16: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