Difference between revisions of "Template:WikiUsername"

From Team Fortress Wiki
Jump to: navigation, search
(Created page with "<includeonly><span class="usernamegoeshere">WikiUsername</span></includeonly><noinclude>{{doc begin}} {{tl|WikiUsername}} is a ''client-side'' template that dynamically displa...")
 
m
Line 5: Line 5:
  
 
== Usage ==
 
== Usage ==
* ''{{tlx|WikiUsername}}'' displays ''{{User:Tark/Username}}''
+
* ''{{tlx|WikiUsername}}'' displays ''{{WikiUsername}}''
  
 
== Output ==
 
== Output ==

Revision as of 17:15, 31 May 2023

Documentation for WikiUsername

{{WikiUsername}} is a client-side template that dynamically displays the wiki username of the currently logged-in user.

This template should only be used in interface messages, tutorials, or any other context where it is crucial to display the user's username. Do NOT use this template within other templates as it will not work properly.

Usage

Output

  • If the user is logged in as TheSoldier, the output will be: TheSoldier
  • If the user is not logged in, the output will be: WikiUsername