Template:REVISIONUSER2: Difference between revisions
(Creation) |
m (1 revision imported) |
||
(No difference)
|
Latest revision as of 20:53, 11 March 2024
Catrone3
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. 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.
Usage
Use {{REVISIONUSER2}}
instead of {{REVISIONUSER}}
Use {{REVISIONUSER2|pagename}}
instead of {{REVISIONUSER:pagename}}
Note the pipe instead of a colon.
Example
Suppose you want to link the last editor of User:Deadfire/Sandbox.
[[User:{{REVISIONUSER2|User:Deadfire/Sandbox}}]]
produces:
[[User:]]
Alternative approach
Wrapping {{REVISIONUSER}}
with {{#invoke:String2|nowiki|...}}
so it looks like {{#invoke:String2|nowiki|{{REVISIONUSER}}}}
also works.