https://bugzilla.wikimedia.org/show_bug.cgi?id=31003

       Web browser: ---
             Bug #: 31003
           Summary: Replace {{RANDOMCHAPTER:Optional book name}} by
                    [[Special:RandomChapter/Optional book name]]
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: BookManager
        AssignedTo: [email protected]
        ReportedBy: [email protected]
            Blocks: 28011
    Classification: Unclassified


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.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to