Magnus wrote:
OK, practical question: How does the software on a given page *know* what page is next? It doesn't until we tell it. The best place is within the page/article/module, don't you think?
Links on the TOC to specific modules would have info in them (after a & or ?) that would give placement info. So clicking on a link to the first module in Chapter one would give http://textbook.wikibook.org/en/organic_chemistry_level_1:module1?textbookTO...
And the "Next Page" link at the bottom would then be able to know where it was in the order of things and would give: http://textbook.wikibook.org/en/organic_chemistry_level_1:module1?textbookTO...
NOTE: The moduleid is now equal to "2."
Play around with this link: http://transitorienteddevelopment.dot.ca.gov/project/stateViewProjectOvervie...
Change the project and station ids and that will change which entry you are looking at.
The alternative would be to make an index page with links, and then have *every* page scan *every* index (well, the ones with links to that page) for "Am I in here", parse the index, and determine the next page.
I don't think that is needed; just use ids in the urls.
-- Daniel Mayer (aka mav)
Daniel Mayer wrote in part:
Links on the TOC to specific modules would have info in them (after a & or ?) that would give placement info. So clicking on a link to the first module in Chapter one would give http://textbook.wikibook.org/en/organic_chemistry_level_1:module1?textbookTO...
I see one problem with this -- this URL is not static if we change the TOC.
My solution: each module should have a unique, descriptive name, like [[Carboxyl group]], so http://textbook.wikibook.org/en/Carboxyl_group will always get you to that module, but with no Previous/Next links. http://textbook.wikibook.org/en/Carboxyl_group?textbookTOCid=45369&moduleid=1&chapterid=1, however, will give you the links appropriate to textbook #45369. (We can let every English textbook use the same system here, so there's no need to specify "organic chemstiry level 1" in the URL.) Then the "Next page" link goes to, say, http://textbook.wikibook.org/en/Amine_group?textbookTOCid=45369&moduleid=2&chapterid=1, with both the moduleid and the title of the page having changed.
Play around with this link: http://transitorienteddevelopment.dot.ca.gov/project/stateViewProjectOvervie... Change the project and station ids and that will change which entry you are looking at.
That works well, except that as in your suggestion, if they change the database, then it's not static. ("This page gives an overview of the null. Data was collected in null. Use the menu on the left to get more information about the". ^_^)
-- Toby
textbook-l@lists.wikimedia.org