pe:name
Renders the name of the user specified, optionally linked to his or her profile.
You can use this tag for both the subject and the object of a sentence describing an action. For example, if a user with the user ID $tagger tags a photo of a user with the user ID $tagee, you could say:
<pe:name uid="$tagger" capitalize="true" /> tagged a photo of <pe:name subjectid="$tagger" uid="$tagee" />
Attributes:
| Required |
Name |
Type |
Description |
| required |
uid |
uid |
The ID of the user or Page whose name you want to show. You can also use "loggedinuser" or "profileowner". |
| optional |
firstnameonly |
bool |
Show only the user's first name. (default value is false) |
| |
linked |
bool |
Link to the user's profile. (default value is true) |
| |
lastnameonly |
bool |
Show only the user's last name. (default value is false) |
| |
possessive |
bool |
Make the user's name possessive (e.g. Andy's instead of Andy). (default value is false) |
| |
reflexive |
bool |
Use "yourself" if useyou is true. (default value is false) |
| |
shownetwork |
bool |
Displays the primary network for the uid. (default value is false) |
| |
useyou |
bool |
Use "you" if uid matches the logged in user. (default value is true) |
| |
ifcantsee |
string |
Alternate text to display if the logged in user cannot access the user specified. (default value is [empty string]) |
| |
capitalize |
bool |
Capitalize the text if useyou==true and loggedinuser==uid. (default value is false) |
| |
subjectid |
uid |
The ParaWorld ID of the subject of the sentence where this name is the object of the verb of the sentence. Will use the reflexive when appropriate. When subjectid is used, uid is considered to be the object and uid's name is produced. |
Examples
<pe:name uid="loggedinuser"/>
<pe:name uid="loggedinuser" useyou="false"/>
<pe:name uid="loggedinuser" useyou="false" linked="false"/>
<pe:name uid="f114ae44-f5e5-4072-9e40-0d792a9cfe7a"/>
Topic revision: r3 - 2008-05-25 - 11:09:15 -
LiXizhi