A
A
antivir2011-08-26 12:03:45
Habr
antivir, 2011-08-26 12:03:45

Question about %username%

Periodically I see this variable in topics. For example, in the title of this .
Instead of it, the account name on Habré should be displayed and it is not displayed only for me, or is it just such a feature?

Answer the question

In order to leave comments, you need to log in

8 answer(s)
F
Flanker72, 2011-08-26
@Flanker72

This is a fixed expression used to indicate that the username should be here. Used for anonymous access or simply to refer to an abstract user. So, it’s quite normal that it doesn’t turn into a username for you. Framing with percent signs came by replacing such an expression with a username in templating engines.

V
v0rtex, 2011-08-26
@v0rtex

These are the features of the local jargon =)

K
korvindest, 2011-08-26
@korvindest

In addition to what was answered above, I can also add that %username% is a windows environment variable that stores the name of the current user.

V
VBart, 2011-08-26
@VBart

This variable is for the parser in your brain. =)

S
Sergey Belov, 2011-08-26
@BeLove

And you can also look here - lurkmore.ru/Greetings_Leprs

Y
YasonBy, 2011-08-26
@YasonBy

There are a couple of scripts in this thread to replace %username% with the username.

R
Roman Misyurev, 2011-08-26
@Sudo

And, anticipating future possible questions: %companyname%, %devicename%, %address% will also not be interpreted into something more specific, even if you have an account on Habré =)

Y
ykrop, 2011-08-29
@ykrop

%username% is a semantic entity. one username can have several nicknames on the resource. if a username, for example, changes its nickname, and it is remembered mainly by the old nickname, then in correspondence it can be mentioned by the old nickname and everyone will understand that this is the old% username% with a new nickname.
usually this is just an appeal to a person, a user of some portal. they say it came from a leprosarium, where, due to some mistake, the username of the user was not shown in the greeting and tagline script, but instead the %username% substitution template was shown. for example: "The turkey is the only animal more cunning than a man, %username%."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question