Help talk:Listwidget format

Jump to: navigation, search
Please note

Talk pages on this wiki should primarily be used to address possible mistakes as well as missing and superseded information in the documentation.
In case you are seeking support concerning individual questions, please have a look at this page.
The SMW user mailing list is always a good idea for seeking help.

Please note


Thread titleRepliesLast modified
Format won't display page names thath begin with a number221:30, 8 January 2016
Displaying alternate pagename402:26, 10 November 2012

Format won't display page names thath begin with a number

I have a large selection of page names that have numerical titles: 11th foo, 15th foo, 27th foo and no matter which widget selection I chose (alphabet, menu, pagination) this format will not list the results under the 0-9 box. Is there a known issue for this particular case?

Jcantroot (talk)16:19, 17 December 2015

> Is there a known issue for this particular case?

MWJames (talk)23:26, 17 December 2015

thank you

Jcantroot (talk)21:30, 8 January 2016

Displaying alternate pagename

Not sure if this is possible through the extension, but I'm trying to display "foo" for a page name like "baz/booz/foo" in an ask or show output. Usually on pages I'd do this with something like
{{#titleparts: {{FULLPAGENAME}} ||-1}}

When doing an ask query though, I can't quite figure out how to change the links to use the last subpage instead of the full page name. I was able to do what I wanted with the category query printer by doing a bunch of stripping and altering, but rather not have to do that for every printer. Hopefully I'm just missing something obvious. Here is an example query:

{{#ask: [[Category:Texas Cities]] 

This outputs the pages with the names "Texas/San Antonio", "Texas/Austin", and "Texas/Dallas" all under "T". I want it to output "San Antonio" under "S", "Austin" under "A", etc. Appreciate any help with this I can get. Also, does semantic-mediawiki have a place to donate? I wasn't able to find any. Its such a fantastic extension, and I'd love to contribute.

D3mon187 (talk)22:40, 1 November 2012

I've made some progress, but could use some help. Using the template format I was able to create a sortable table by using this query:

{{#ask: [[Category:Texas Cities]] 
| format=template
| template=SearchTable
| introtemplate=SearchTableIntro
| outrotemplate=SearchTableFooter
| mainlabel=-

Combined with using the method described here referata example, except replacing

{{{1}}} with [[{{{1}}}|{{#titleparts: {{{1}}} ||-1}}]]

I was wondering if there was any guides out there for any of the other output formats. I tried recreating the above result with the listwidget format by copying and pasting the html source, but it just sits at loading... Html source looks identical on the page, but I'm guessing something's not getting processed in the way I'm doing it? thanks

D3mon187 (talk)23:56, 5 November 2012

Really need a better solution than this. but I inserted:


into MediaWiki:Common.js, and its working exactly the way I wanted. Don't want to have to load any unnecessary js on every page load though, so hopefully there's a better way to do this. If not, maybe it could be added?

D3mon187 (talk)18:18, 9 November 2012

Wow, you are doing some effort here but maybe after you had a look at Demo:Listwidget/Adoption of the list title you will be surprised about the result. All standard, no extra mile ...

Next you might want to post your question to a particular format directly onto this formats talk page otherwise people might not your post.

In regards for donations, best ask Karsten about it.

MWJames (talk)19:07, 9 November 2012

Haha, that's perfect. Thanks a ton once again! Clearly I enjoy making everything a hundred times more difficult than it needs to be, but I had figured there had to be some easier way. Still learning the ins and outs of semantic mediawiki, and really mediawiki in general. Never sure where the right place to ask a question is that will get noticed without annoying anyone.

D3mon187 (talk)21:43, 9 November 2012