The official discord link if you wish to join the discord: https://discord.gg/j5RKwCvAFu

Support the wiki on our official Ko-Fi page or Patreon page!

Template:USERNAME/test: Difference between revisions

From The Codex
Rodejong
Rodejong (talk | contribs) (https://nl.wikipedia.org/w/index.php?title=Sjabloon:Aanhef&oldid=38992485)
 
Rodejong
Rodejong (talk | contribs) (Sorry)
 
Line 1: Line 1:
{{<includeonly>safesubst:</includeonly>#ifeq: {{<includeonly>safesubst:</includeonly>#invoke:CheckIfUserNameIsIP|testtip|{{<includeonly>safesubst:</includeonly>BASEPAGENAME}}}} | 0 | {{<includeonly>safesubst:</includeonly>BASEPAGENAME}} | anonymous user}}<noinclude>{{Template info|1=
{{<includeonly>safesubst:</includeonly>#ifeq: {{<includeonly>safesubst:</includeonly>#invoke:CheckIfUserNameIsIP|testtip|{{<includeonly>safesubst:</includeonly>BASEPAGENAME}}}} | 0 | {{<includeonly>safesubst:</includeonly>BASEPAGENAME}} | anonymous user}}<noinclude>{{Documentation}}</noinclude>
== Goal ==
This template displays the text ''anonymous user'' for an anonymous user, and the username for a registered user. Good to use in the opening lines of templates.
 
== Use ==
If used outside of templates, always substitute:
<pre>{{subst:USERNAME}}</pre>
 
The template must be used as a substitute outside of templates, so that the user actually sees the text when editing the page.
 
}}
[[Category:Wikipedia:User Message Templates|Wikipedia:User Message Templates]]
</noinclude>

Latest revision as of 18:51, 27 January 2024

anonymous user

Goal

This template displays the text anonymous user for an anonymous user, and the username for a registered user. Good to use in the opening lines of templates.

Use

If used outside of templates, always substitute:

{{subst:USERNAME}}

The template must be used as a substitute outside of templates, so that the user actually sees the text when editing the page.

}}