Next / previous link
Hi Alfred,
Just saw you added an item to the to do list! Love it! Any idea how we can do this? Difficulties that I see are mainly due to the inconsistent numbering. We also are looking at a solution that would be implemented directly at the level of the general template and hence are not looking at something that would be manually added.
Any ideas are welcomed!
I think we would have to do this manually. I looked at the template for the exam pages (such as http://wiki.ubc.ca/Science:Math_Exam_Resources/Courses/MATH100/December_2011, and in the code there is an "exam_link" attribute, which inputs into the template to produce the URL of the PDF, and I thought we could do something similar with the question page templates?
So it would look something like
"{{MER Question page|prev=Question_1_(c)|next=Question_1_(e)}}"
The links could be placed in a bar above the question statement, and it could look something like:
◂ Previous Question | Next Question ▸ |
It's neat, but doesn't sound realistic. We are dealing with a few exam pages, but the number of question pages right now is above 600. I don't see how we can sustainably make those manual modifications. And in comparison to the benefits which are fairly poor since students have access to all the questions links on the side bar (on the right).
The DPL code (for search purposes) manages to order the question pages correctly, there might be a way to ask him what is the pages that naturally comes "after" a given one. How much do you know about DPL?
Not a whole lot. I guess you're right then, that it would be indeed too tedious to manually go through all the pages.
Have a look at that DPL code sometimes. It's what I use to create lists and counters in many templates. Worth getting a bit familiar with.
Yeah, I saw the DPL list in the sidebar. I'll take a look at that. Are there any resources where I could learn from?
There is a small help page on the topic: Help:DPL and then I would suggest to play with it in the Sandbox.
I figured it out with DPL as you suggested.
This is for Question 8 of the 100 exam (last question):
And for Question 5(e) (last question of #5):
You'll just have to replace the URL's with {{PAGENAME}} and maybe alter the #titleparts.
Awesome! This is a very neat piece of code, good job!
I've taken your code, replaced the {{PAGENAME}} where necessary and stuck into a template on its own. It is the template Template:MER Question Navigation and is now used inside of the Template:MER Question template and hence displayed on all the questions pages as of this morning.
Keep up the good work!
I have tried to create documentation pages for all the templates used in the MER project. They are all (I think) part of the Category:MER Template (itself a subcategory of Category:MER). If you start looking at templates and their documentation page could be improved for clarity, feel free to go for it!
Also, if you have other suggestions for the help pages inside of the Science:MER portal, go for it, or let me know.
The goal is to make sure that this project can become as independent of me as possible since I will most likely be leaving UBC in Spring.
Thanks again for your work!
There was a little bug in your code: you didn't specify the namespace to be Science and hence it was going to talk pages as well.
Thanks. I was going to add the namespace as well but I didn't consider the talk pages... Thanks for figuring that one out!