Hi .. What's the right extension to use to list just the root pages in a given namespace?
I'm using Extension:SubPageList3 and I'm able to get subpages of pages I already know, but I'd like a way to show the parent (root) pages only in a subpage. -Rich _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
Correction: ...I'd like a way to show the parent (root) pages only in a given NAMESPACE.
-Rich _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
Hi Rich,
if you've got Semantic MediaWiki extension installed [1], you can archive that by using a {{#ask}} query [2]. You can query for all pages in a namespace that do not have a "slash" in their title. Example with namespace prefix "Archive": {{#ask:[[Archive:+]][[!~*/*]]}} [1] https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki [2] https://www.semantic-mediawiki.org/wiki/Help:Search_namespace_restrictions -- Robert ________________________________ Von: MediaWiki-l <[hidden email]> im Auftrag von Evans, Richard K. (GRC-H000) <[hidden email]> Gesendet: Dienstag, 14. November 2017 20:21 An: MediaWiki announcements and site admin list Betreff: Re: [MediaWiki-l] List only parent (root) articles in a namespace Correction: ...I'd like a way to show the parent (root) pages only in a given NAMESPACE. -Rich _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l MediaWiki-l Mailing List - Wikimedia<https://lists.wikimedia.org/mailman/listinfo/mediawiki-l> lists.wikimedia.org MediaWiki-l MediaWiki announcements and site admin list. This is a multilingual list for help/support with running/configuring MediaWiki. It is intended for people ... _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
Hello, Robert.
The extension you mentioned looks very nice. I read the manual a little. But I can't understand something: Looks that properties should be added manually before you can use them in the search. Is there any way to add automatically all page Wikidata properties as this extension ones? Thank you. Igal (User:IKhitron) On Nov 15, 2017 10:14, "Robert Vogel" <[hidden email]> wrote: > Hi Rich, > > > if you've got Semantic MediaWiki extension installed [1], you can archive > that by using a {{#ask}} query [2]. You can query for all pages in a > namespace that do not have a "slash" in their title. Example with namespace > prefix "Archive": > > > {{#ask:[[Archive:+]][[!~*/*]]}} > > > [1] https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki > > [2] https://www.semantic-mediawiki.org/wiki/Help: > Search_namespace_restrictions > > > -- > > Robert > > > ________________________________ > Von: MediaWiki-l <[hidden email]> im Auftrag von > Evans, Richard K. (GRC-H000) <[hidden email]> > Gesendet: Dienstag, 14. November 2017 20:21 > An: MediaWiki announcements and site admin list > Betreff: Re: [MediaWiki-l] List only parent (root) articles in a namespace > > Correction: ...I'd like a way to show the parent (root) pages only in a > given NAMESPACE. > > -Rich > > _______________________________________________ > MediaWiki-l mailing list > To unsubscribe, go to: > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > MediaWiki-l Mailing List - Wikimedia<https://lists.wikimedia.org/mailman/ > listinfo/mediawiki-l> > lists.wikimedia.org > MediaWiki-l MediaWiki announcements and site admin list. This is a > multilingual list for help/support with running/configuring MediaWiki. It > is intended for people ... > > > _______________________________________________ > MediaWiki-l mailing list > To unsubscribe, go to: > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > > MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
In reply to this post by Robert Vogel
Hi Robert,
Wow.. that's a great trick! .. forgive me for being a little slow, but is there a way to restrict that querry to a specific namespace? .. say, "User"? -Rich > > {{#ask:[[Archive:+]][[!~*/*]]}} > > Robert _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
Heiya Rich,
I guess this page [0] is the one you are looking for. Cheers Karsten [0] https://www.semantic-mediawiki.org/wiki/Help:Search_namespace_restrictions Am 15.11.2017 um 14:46 schrieb Evans, Richard K. (GRC-H000): > Hi Robert, > > Wow.. that's a great trick! .. forgive me for being a little slow, but is there a way to restrict that querry to a specific namespace? .. say, "User"? > > -Rich > >> {{#ask:[[Archive:+]][[!~*/*]]}} >> >> Robert > > _______________________________________________ > MediaWiki-l mailing list > To unsubscribe, go to: > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
In reply to this post by rkevans
Ok.. so I tried:
{{#ask: [[Archive:+]] [[!~*/*]] [[~User:*]] |format=table }} And I does what I had hoped (yay!) .. but it also generates the following error (yellow triangle at the end of the results): "The part "]]" of the query was not understood. Results might not be as expected." Any thoughts? -Rich _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
In reply to this post by kghbln
Wow.. it's raining epic tricks this morning :-)
Ty, k! -Rich _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
W00t!
{{#ask: [[User:+]] [[!~*/*]] |format=table |limit=500 }} You guys rock! -Rich _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
Perhaps you would like to add this as a tip: [1].
Cheers Karsten [1] https://www.semantic-mediawiki.org/wiki/Category:Tips Am 15.11.2017 um 15:08 schrieb Evans, Richard K. (GRC-H000): > W00t! > > {{#ask: > [[User:+]] > [[!~*/*]] > |format=table > |limit=500 > }} > > You guys rock! > -Rich > > _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
Love it. Thank you!
> > [1] https://www.semantic-mediawiki.org/wiki/Category:Tips > _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
Ok, so the seemingly straightforward ASK I am now using for the root pages of namespace XYZ:
{{#ask: [[XYZ:+]] [[!~*/*]] | format=ol }} ... is finding multiple "smw-subobject-entity" results of types "#_ERR" and "#_QUERY" for subobjects entries in the results... For example: ... <ol> <li data-sortkey="D"><span class="smw-subobject-entity"><a href="/smw/XYZ:Article_X#_ERR26432691520be474d2ee0b565c4c00d7" title="XYZ:Article X">Article X</a></span></li> <li data-sortkey="D"><span class="smw-subobject-entity"><a href="/smw/XYZ:Article_X#_ERR541cdfc781e4779b85328be21d3c5ce4" title="XYZ:Article X">Article X</a></span></li> <li data-sortkey="D"><span class="smw-subobject-entity"><a href="/smw/XYZ:Article_X#_ERR92d41ba15db86fd2736de76842b7cc00" title="XYZ:Article X">Article X</a></span></li> <li data-sortkey="E"><span class="smw-subobject-entity"><a href="/smw/ XYZ:Event_Calendar#_QUERY9b613749f7d12a6843f29c2d56e4c5bb" title=" XYZ:Event Calendar">Event Calendar</a></span></li> <li data-sortkey="E"><span class="smw-subobject-entity"><a href="/smw/ XYZ:Event_Calendar#_QUERY904ebdec1781f6cb8a4608884c2286d9" title=" XYZ:Event Calendar">Event Calendar</a></span></li> <li data-sortkey="E"><span class="smw-subobject-entity"><a href="/smw/ XYZ:Event_Calendar#_QUERY6b0d2eacdb40fd2fc1f81a0c6adb2af7" title=" XYZ:Event Calendar">Event Calendar</a></span></li> ... Is that supposed to be? -Rich _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
Free forum by Nabble | Edit this page |