Help talk:Listwidget format

From semantic-mediawiki.org

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 Semantic MediaWiki user mailing list is always a good idea for seeking help.

Contents

Thread titleRepliesLast modified
Format won't display page names thath begin with a number222:30, 8 January 2016
Displaying alternate pagename403: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?

17:19, 17 December 2015

> Is there a known issue for this particular case?

https://github.com/SemanticMediaWiki/SemanticResultFormats/issues/45

00:26, 18 December 2015

thank you

22: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]] 
|format=listwidget
|listtype=unordered
|widget=alphabet
}}

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.

23: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

00:56, 6 November 2012

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

if(window.mw){
mw.loader.load(["ext.srf","ext.srf.listwidget.alphabet"]);
}

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?

19: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.

20: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.

22:43, 9 November 2012