Last modified: 2011-10-04 17:28:38 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33003, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31003 - Replace {{RANDOMCHAPTER:Optional book name}} by [[Special:RandomChapter/Optional book name]]
Replace {{RANDOMCHAPTER:Optional book name}} by [[Special:RandomChapter/Optio...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
BookManager (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Raylton P. Sousa
:
Depends on:
Blocks: 31254 28011
  Show dependency treegraph
 
Reported: 2011-09-19 18:32 UTC by Helder
Modified: 2011-10-04 17:28 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Helder 2011-09-19 18:32:18 UTC
After some thinking, I believe creating a [[Special:RandomChapter]] will be better than the current use of magic words {{RANDOMCHAPTER}}:
* Using a variable, the HTML of a page couldn't be cached (I think), since there would be random content in the pages.
* The variable will most likely be used to create links and there is no point in displaying the target page name in the status bar before the user clicks on the link. The href should not reveal what the target page is before the user clicks on the link. This can be seen currently on "Random chapter" link on "Tools of book" section of sidebar.
** Besides, if the random chapter happens to be the exactly the current chapter, the link will do nothing (and will be just occupying space in the sidebar).

If a link such as [[Special:RandomChapter]] is added to a book, the special page would choose a random page of that book. If instead the link has the form [[Special:RandomChapter/The book name]], the target will be some chapter of "The book name". And if a link [[Special:RandomChapter]] is created outside of a book, it would just point to the special page, where the user could insert the book name in a text field and press [Go].

The same problems would likely happens with a {{RANDOMBOOK}} magic word, so I'll reuse bug 28014 to request a [[Special:RandomBook]] page.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links