Bản mẫu:REVISIONUSER2/doc
| Đây là một trang con tài liệu dành cho Bản mẫu:REVISIONUSER2. Nó gồm có các thông tin hướng dẫn sử dụng, thể loại và các nội dung khác không thuộc về phần trang bản mẫu gốc. |
| Bản mẫu này được sử dụng ở rất nhiều trang, vì thế những thay đổi đến nó sẽ hiện ra rõ ràng. Vui lòng thử nghiệm các thay đổi ở trang con /sandbox, /testcases của bản mẫu, hoặc ở không gian người dùng của bạn. Cân nhắc thảo luận các thay đổi tại trang thảo luận trước khi áp dụng sửa đổi. |
The magic word {{REVISIONUSER}} gives poor formatting and fails in wikilinks if the username starts with an asterisk '*' or semicolon ';'. This template is a workaround. It is not needed if phab:T28781 is fixed.
Usage Bản mẫu:REVISIONUSER2/doc
Use {{REVISIONUSER2}} instead of {{REVISIONUSER}}
Use {{REVISIONUSER2|pagename}} instead of {{REVISIONUSER:pagename}}
Note the pipe instead of a colon.
Example Bản mẫu:REVISIONUSER2/doc
Suppose you want to link the last editor of User:*Casper/sandbox.
[[User:{{REVISIONUSER2|User:*Casper/sandbox}}]] produces:
[[User:]]
For comparison, [[User:{{REVISIONUSER:User:*Casper/sandbox}}]] produces:
[[User:]]
The latter fails if the last editor is *Casper and phab:T28781 is unfixed.
Usernames starting with * or ; are relatively rare. {{REVISIONUSER}} may work correctly if it is not in the output but only used in a test during processing.
Alternative approach Bản mẫu:REVISIONUSER2/doc
Wrapping {{REVISIONUSER}} with {{#invoke:String2|nowiki|...}} so it looks like {{#invoke:String2|nowiki|{{REVISIONUSER}}}} also works.