Difference between revisions of "User talk:Maiden taiwan"
Marcusperman (talk | contribs) |
(→Sorting by value: new section) |
||
Line 27: | Line 27: | ||
[[User:Marcusperman|Marcusperman]] 17:22, 3 February 2009 (UTC) | [[User:Marcusperman|Marcusperman]] 17:22, 3 February 2009 (UTC) | ||
+ | ==Sorting by value== | ||
+ | Marcus and Maiden, I hope I'm not intruding but I saw your discussion and wanted to suggest a workaround using the [[DPL:Manual_-_DPL_parameters:_Controlling_output_order#ordermethod|ordermethod parameter]] of DPL. If you want to sort by the date specified in parameter, you could edit Template:Dissertation_info to add a <nowiki>{{DEFAULTSORT:{{{<Date parameter>}}}}}</nowiki> call, where <Date parameter> is whatever parameter you are using to store the date you want to sort by. You may need to change the date parameter format to YYYYMMDD to sort properly, but using the DEFAULTSORT will change the category of your dissertation pages to be sorted by that date instead of by name. You can then use "ordermethod=category,sortkey" to output your listing sorted by the sortkey (the date). Outputting a sortable table is another way to do it, as Maiden mentioned.--[[User:Volts|Volts]] 21:36, 3 February 2009 (UTC) |
Revision as of 22:36, 3 February 2009
Thank you for your note, the table does work pretty well but eventually I will need to figure out how to order by call from a template. I have a large wiki-project but I am a scholar and not a programmer. I am wondering if you know of any way to find consultants or other professionals who work specifically with MediaWiki software that I could actually speak with or even sit down with for a day of training. Leaving questions online has not been particularly successful. Any ideas?
Cheers,
Marcusperman 19:23, 3 February 2009 (UTC)
Hello Mr. Barrett. I read your whole book and I commend you for your clarity. I am interested in the question you posted on the DPL:FAQ page:
Sorting by the value of a template parameter?
Can DPL order its results based on the value of a template parameter? For example, suppose we have Template:Book:
This book is {{{title}}} written by {{{author}}}.
Can DPL produce a list of all articles that use this template, sorted by author?
--Maiden taiwan 20:36, 9 August 2008 (CEST)
Have you found an answer for this? Perhaps it is simply not possible yet?
I posted this question, which I think is really the same as yours:
Another sorting question: this time by value of phantom template
I want to have a DPL output that is ordered by the value of what is pulled in from a template with the include= syntax. In a set of articles included in one category I have placed a phantom template with meta data information in it. I want to pull that information out and then order the list by that information. For instance:
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option 'dissertations include={Dissertation info}:date format=,# %PAGE%: ,\n,' for parameter 'category'.
Extension:DynamicPageList (DPL), version 3.2.1: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants
Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.
This produces a list with the date after each page name, but I want the list given in order by that date. Is this possible? If so, how? Marcusperman 00:12, 28 January 2009 (UTC)
Thanks very much for any help you have the time to give.
Cheers,
Marcusperman 17:22, 3 February 2009 (UTC)
Sorting by value
Marcus and Maiden, I hope I'm not intruding but I saw your discussion and wanted to suggest a workaround using the ordermethod parameter of DPL. If you want to sort by the date specified in parameter, you could edit Template:Dissertation_info to add a {{DEFAULTSORT:{{{<Date parameter>}}}}} call, where <Date parameter> is whatever parameter you are using to store the date you want to sort by. You may need to change the date parameter format to YYYYMMDD to sort properly, but using the DEFAULTSORT will change the category of your dissertation pages to be sorted by that date instead of by name. You can then use "ordermethod=category,sortkey" to output your listing sorted by the sortkey (the date). Outputting a sortable table is another way to do it, as Maiden mentioned.--Volts 21:36, 3 February 2009 (UTC)