Документ взят из кэша поисковой машины. Адрес оригинального документа : http://dualopt1.cmm.msu.ru/bin/rdiff/TWiki/VarUSERINFO?rev1=2&rev2=1
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 21:31:20 2014
Кодировка:
%TOPICTITLE% (1 vs. 2) - TWiki
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r2  >  r1  ...
VarUSERINFO 2 - 2007-02-04 - Main.TWikiContributor
Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"
Changed:
<
<

USERINFO - retrieve details about a user (by default the logged-in user)

>
>

USERINFO{"WikiName"} -- retrieve details about a user

 
  • Syntax: %USERINFO%
Changed:
<
<
To format that information differently:
  • Syntax: %USERINFO{format="$username is really $wikiname"}%
  • Expands to: guest is really TWikiGuest.
    • The tokens $emails, $username, $wikiname, $wikiusername, and $groups are available for use in the format string .By default, the info will be formatted as a comma-separated list of the username, wikiusername, and emails.
To get information about another user:
  • Syntax: %USERINFO{"TWikiGuest" format="$username is really $wikiname"}%
>
>
  • Expands to: guest, TWikiGuest, (comma-separated list of the username, wikiusername, and emails)
  • With formatted output, using tokens $emails, $username, $wikiname, $wikiusername, and $groups:
    • Example: %USERINFO{ format="$username is really $wikiname" }%
    • Expands to: guest is really TWikiGuest
  • Retrieve information about another user:
    • Example: %USERINFO{ "TWikiGuest" format="$username is really $wikiname" }%
 
  • Expands to: guest is really TWikiGuest
Changed:
<
<
    • The parameter should be the wikiname of a user. You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled, or if you are an admin. (User details are hidden in this TWiki)
>
>
    • Note: The parameter should be the wikiname of a user. You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled, or if you are an admin. (User details are hidden in this TWiki)
 
Deleted:
<
<

VarUSERINFO 1 - 2005-03-27 - Main.TWikiContributor
Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TWikiVariables"

USERINFO - retrieve details about a user (by default the logged-in user)

  • Syntax: %USERINFO%
  • Expands to: =guest, TWikiGuest, =
To format that information differently:
  • Syntax: %USERINFO{format="$username is really $wikiname"}%
  • Expands to: guest is really TWikiGuest.
    • The tokens $emails, $username, $wikiname, $wikiusername, and $groups are available for use in the format string .By default, the info will be formatted as a comma-separated list of the username, wikiusername, and emails.
To get information about another user:
  • Syntax: %USERINFO{"TWikiGuest" format="$username is really $wikiname"}%
  • Expands to: guest is really TWikiGuest
    • The parameter should be the wikiname of a user. You can only get information about another user if the {AntiSpam}{HideUserDetails} configuration option is not enabled, or if you are an admin. (User details are hidden in this TWiki)


Revision 2r2 - 2007-02-04 - 09:04:37 - TWikiContributor
Revision 1r1 - 2005-03-27 - 13:14:15 - TWikiContributor
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarUSERINFO
Syndicate this site RSSATOM