Extension:LandingPage
From MediaWiki.org
|
Release status: experimental |
|
|---|---|
| Implementation | Parser function |
| Description | Follows redirections to landing page |
| Author(s) | John Erling Blad |
| Last Version | 0.1 (2009-08-24) |
| License | GPL |
| Download | LandingPage.php, LandingPage.i18n.php |
|
check usage (experimental) |
|
LandingPage is an extension to MediaWiki that includes in the page the title, user name or real name for the landing page of a redirect or a direct link.
Contents |
[edit] Installation
- Download LandingPage.php and LandingPage/LandingPage.i18n.php, and save them in extensions/LandingPage directory on your wiki.
- Insert this line in the LocalSettings.php file:
include_once('extensions/LandingPage.php');
[edit] Usage
Assume there is a redirect pointing to the user page [[User:Username]] and a redirect [[Some programmer]] pointing to this page, then a wikicode like {{LANDINGREALUSER:Some programmer}} will report Realname if this is defined.
- {{LANDINGPAGE:[page|redirect]}} page name of landing page.
- {{LANDINGSUBPAGE:[page|redirect]}} subpage name of landing page.
- {{LANDINGPREFIXED:[page|redirect]}} prefixed name of landing page.
- {{LANDINGUSER:[page|redirect]}} user name of landing page, reports error if its not a user page. (Additional redirect in the user space?)
- {{LANDINGREALUSER:[page|redirect]}} real user name of landing page, reports error if its not a user page. (Additional redirect in the user space?)
- {{LANDINGREALUSERORPAGENAME:[page|redirect]}} real user name of landing page, or the page name if not user space. (Additional redirect in the user space?) (not implemented)
If the name of the parser function is prepended with "LINK", then a link to the page is created instead of the name. (not implemented)
[edit] Alternatives
- Not known
[edit] Feedback
Use the discussion page for feedback, questions, feature requests and bug reports.