UserDefaultPage – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{contributions}}" to "{{UserDefaultPage}}")
m (Fix attempt)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|
<includeonly>{| class="wikitable plainlinks align-center" style="box-shadow: 0 0 0.5em rgba(0,0,0,0.1); line-height: 1.5em; min-width: 40em"
| My Wiki username is: || '''{{{1|{{PAGENAME}}}}}'''
| colspan="2" style="position: relative" | <div style="font-size: .8em; line-height: 1.25em; position: absolute; top: 0; right: 0.5em">
[[User:{{{1|{{PAGENAME}}}}}/common.css|CSS]]<!--
-->{{#ifexist:User talk:{{{1|{{PAGENAME}}}}}/common.js|<nowiki/> &bull; [[User:{{{1|{{PAGENAME}}}}}/common.js|JS]]}}<!--
-->{{#ifexist:User talk:{{{1|{{PAGENAME}}}}}|<nowiki/> &bull; [[User talk:{{{1|{{PAGENAME}}}}}|Talk]]}}
</div>
'''{{{1|{{PAGENAME}}}}}'''<br><small>is my username</small>
|-
|-
| My Wiki talk page: || [[User talk:{{{1|{{PAGENAME}}}}}]]
| style="width: 50%" | [[User:{{{1|{{PAGENAME}}}}}/Sandbox|<div>'''My Sandbox'''<br><small>User:{{{1|{{PAGENAME}}}}}/Sandbox</small></div>]]
|-
| style="width: 50%" | [[Special:Contributions/{{{1|{{PAGENAME}}}}}|<div>'''My Contributions'''<br><small>Special:Contributions/{{{1|{{PAGENAME}}}}}</small></div>]]
| My Wiki contributions: || [[Special:Contributions/{{{1|{{PAGENAME}}}}}]]
|}</includeonly><noinclude>{{Doc/Template
|-
|descr= Adds the default userpage content.
| My Wiki sandbox: || [[User:{{{1|{{PAGENAME}}}}}/Sandbox]]
|param1= username
|}</includeonly><noinclude>
|descr1= (Optional) username, default {{<nowiki/>PAGENAME}} (username on a User:* page)
Adds the default userpage content.
|example1= <nowiki>{{UserDefaultPage}}</nowiki>
 
|result1= <nowiki/>
== Usage ==
{{<nowiki/>contributions|'''''username'''''}}
* username: (Optional) username, default {{<nowiki/>PAGENAME}} (username on a User:* page)
 
== Output ==
<nowiki>{{UserDefaultPage}}</nowiki>
{{UserDefaultPage}}
{{UserDefaultPage}}
 
|example2= <nowiki>{{UserDefaultPage|Maruk}}</nowiki>
 
|result2= <nowiki/>
<nowiki>{{contributions|ForcedUserName}}</nowiki>
{{UserDefaultPage|Maruk}}
{{contributions|ForcedUserName}}
}}</noinclude>
 
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
</noinclude>

Latest revision as of 21:10, 5 February 2024

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}}
{{UserDefaultPage|Maruk}}