代替 , 代 , and 替 express that an action is done by someone in place of of someone else.
They are used in the same way: they are placed before a word denoting a person. It can be a pronoun, a noun or a proper name.
Scheme
subject
代替/代/替
object
who?
predicate
Examples
你可以替我去超市买东西吗?
Can you go to the supermarket for me?
nǐ kěyǐ tì wǒ qù chāoshì mǎi dōngxi ma
我代替他写了信
I wrote a letter for him
wǒ dàitì tā xiě le xìn
你代我走一趟
Go for me, please
nǐ dài wǒ zǒu yí tàng
代替, 代 and 替 can also be used as a verb "to replace".
Examples
新技术代替了旧技术
New technology replaces old technology
xīn jìshù dàitì le jiù jìshù
没有人代你
No one can replace you
méi yǒu rén dài nǐ
你歇会儿,我来替你
Take a break, I'll fill in for you
nǐ xiē huìr, wǒ lái tì nǐ
The preposition 替 can be used to express emotions related to another person. For example: "to be ashamed of him", "to be happy for you".