transclusion of links

Jump to: navigation, search

Hi Will,

I was looking at this page: in the box "solution 2" (which is collapsed) the first line mentions part (a) and is in bold, but if you look at the code (which is transcluded from the subpage it actually is a wiki-link. Why isn't it a wiki link now inside of the box?

Cheers, David

22:05, 6 March 2012

Hi David,

It looks like you might have already figured it out. The part (a) link on the subpage originally went to the same Question 5 B page where the subpage was transcluded. Links transcluded to the same pages on which they are displayed on are rendered as bold text. Anyway, it looks like you updated the link and the problem is fixed.

Let me know if that is, indeed, the case or if I can look into it in more detail.


23:42, 6 March 2012
) that was a silly mistake... thanks for looking though!

I had another question: As we go through questions, if we get more than 9, then the dpl code will list questions as:

question 1 question 10 question 2 question 3

is there a way around that which doesn't involve renaming the questions into question 01, question 02 and so on?

23:57, 6 March 2012

Hi David,

That's an interesting question. The DPL manual page on output order is here. My first thought is that if you are creating the question pages in numerical order, you could use a parameter like ordermethod=firstedit to sort the list based on the creation order of the pages. For instance, this dpl code

|replaceintitle=$Math Exam Resources/Courses/MATH152/April 2011/$, 
|noresultsheader=No pages found.

seems to output in the desired order:

However, this method relies entirely on question pages being built in numerical order. Maybe that would work, though? I'll try to think of other options.


18:40, 7 March 2012

I already know that some exam questions were not created in that order, so that would not work as a general solution (I should have thought of that, we could have accommodated that though).

I'm starting to think that having them renamed into 01, 02, ... isn't such a bad thing and is fairly easy to implement in the few exams that require it. I won't implement that for another few days though, so if you come up with another idea, let me know!


18:51, 7 March 2012