MediaWiki talk:Wikimini-Self-made-Wikimini
From Wikimini Stock
- [View source↑]
- [History↑]
Contents
Thread title | Replies | Last modified |
---|---|---|
Technical note: Why ifeq: FULLPAGENAME File:Sample.jpg... ? | 1 | 19:59, 26 April 2014 |
Because the magic word {{PAGECREATOR}}
only works after the page has been published. Therefore it couldn't work in the Licence preview window available at the bottom of the Special:Upload page.
This preview uses a fake page name to work, which is "File:Sample.jpg". Now the template checks wether the page name is File:Sample.jpg or not. If the result is true, it will use {{REVISIONID}}
instead of {{PAGECREATOR}}
({{REVISIONID}}
= The username of the user who made the most recent edit to the page, or the current user when previewing an edit).