Template:ValidateUP/sandbox
This page was last edited by Izno and not ValidateUP.
This is the template sandbox page for Template:ValidateUP (diff). See also the companion subpage for test cases. |
This template is designed to be placed at the top of userpages so that if someone other than the owner of the userpage edits it (for instance changes the SHA or PGP key) this template will notify viewers.
Terms
[edit]Owner: Refers to the user who the userpage "belongs" to; e.g. User:Example "belongs" to Example, so Example is the "owner"
Usage
[edit]Basic Usage
[edit]Basic usage will only be shown if the last revision was not made by the owner.
- Use:
{{ValidateUP}}
- Output if last edited by owner:
- Output if not last edited by owner:
- This page was last edited by Example2 and not Example
Usage with Default Message
[edit]Usage with default message will show the default message unless the page was not edited by the owner.
- Use:
{{ValidateUP|1}}
- Output if last edited by owner:
- This page was last edited by Example
- Output if not last edited by owner:
- This page was last edited by Example2 and not Example
Usage with Custom Message
[edit]Usage with custom message will show the custom message unless the page was not edited by the owner. This message can be the content of the page, in order to hide the content in the case of malicious edits. It should be noted that headers (e.g. ==Header== ) will break the template and should be replaced with header levels (e.g. <h2>Header</h2> ).
- Use:
{{ValidateUP|Custom message}}
(Where "Custom message" is the message.)
- Output if last edited by owner:
- Custom message
- Output if not last edited by owner:
- This page was last edited by Example2 and not Example