Misplaced Pages

talk:Special:PrefixIndex: Difference between revisions - Misplaced Pages

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 02:45, 18 September 2008 view sourceLibcub (talk | contribs)Extended confirmed users4,911 editsm rv spam← Previous edit Latest revision as of 01:21, 11 July 2024 view source Qwerfjkl (bot) (talk | contribs)Bots, Mass message senders4,012,814 editsm Removed deprecated parameters in {{Talk header}} that are now handled automatically (Task 30)Tag: paws [2.2] 
(964 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
{{pp-protected|small=yes}}
{{Misplaced Pages:Special:PrefixIndex}}
{{User:MiszaBot/config
| algo = old(365d)
| archive = Misplaced Pages talk:Special:PrefixIndex/Archive %(counter)d
| counter = 1
| maxarchivesize = 100K
| archiveheader = {{Automatic archive navigator}}
| minthreadstoarchive = 1
| minthreadsleft = 5
}}
{{Talk header|search=yes|arpol=no|wp=no|disclaimer=no|bottom=no}}

{{Specialpagestalk}} {{Specialpagestalk}}


{{see also|Template:PrefixIndex|Template:Look from|tools:~dispenser/cgi-bin/redlinks.py{{!}}Red link prefix index}}
{{see also|Template:Lookfrom}}
:''For advanced pagenames searches use ]'' :''For advanced pagenames searches use ''

== "no redirects" option ==

Is there an option to not include ]? ∞] <sup>(]|])</sup> 20:59, 30 June 2007 (UTC)
:I am not aware of such an option, but at least redirects are enclosed into &lt;div class=allpagesredirect> (which already has ''italic'' CSS). So
<source lang=css>div.allpagesredirect {display:none}</source>
:will hide them (leaving empty table cells unfortunately), while
<source lang=css>div.allpagesredirect a {color:gray}</source>
:will simply make them easier to distinquish from normal pages. CSS code goes into ] ∴ ] 19:42, 2 July 2007 (UTC)

::Thanks, but I was looking for a built-in ] option (that should be present anyway). Oh and I use simple.css. ;) ∞] <sup>(]|])</sup> 21:36, 2 July 2007 (UTC)

==SuffixIndex==
Is there any special page for suffixes? Such as to search for articles that end with (ice hockey) or something? I haven't found one, so I doubt there is, but I might as well ask. ]] 13:38, 6 July 2007 (UTC)

:No, there isn't. Maybe request it at ] or ]; it's a neat idea. ] <sub><nowiki>]<nowiki>]</nowiki></sub> 07:34, 8 July 2007 (UTC)


==Google search trick to help with suffixes==
::Request a better search engine, too, since the current one sucks petunas, relying on external search engines (like Google) to pick up MediaWiki's slack. Misplaced Pages's navigation system sucks too, requiring ] and categories to also pick up the slack. ∞] <sup>(]|])</sup> 19:09, 8 July 2007 (UTC)
In Google search, try the following (quote marks included):
:::Don't reinvent the wheel. If google does the job there is no need for MediaWiki to do so. Also, your idea of what the dab pages are there for is plain wrong. As long as it's seen as a goal to be able to reach an article by typing the name directly dab pages will be necessary. No improvement in Wikipedias navigation system is going to change this, because the problem is in the ambiguity of the English language. ] 01:56, 9 July 2007 (UTC)
* <nowiki>"http://en.wikipedia.org/*%s"</nowiki>
* <nowiki>"http://en.wikipedia.org/ * %s"</nowiki>
where you replace "%s" with the suffix you're interested in. It's imperfect but useful. ] 20:11, 13 February 2010 (UTC)


This will find references to those pages on other sites as well, you'd be better off with:
I have to second the request for ]. This will be invaluable for finding the noun part of names that have various adjectives. ] 12:40, 13 September 2007 (UTC)
* <nowiki>site:en.wikipedia.org inurl:"wiki/*%s"</nowiki>
:This would be possible if the "page" table in MediaWiki's database had a "page_reverse_title" column: then the Suffixindex input could be reversed, the Prefixindex query could be performed (ordering by page_reverse_title instead of page_title), and tada, results. At least in my naive, not-excessively-fluent-in-SQL analysis :) If there's an easier way, I don't know what it is! ]<sup>]</sup> <span title="Misplaced Pages talk:Special:Prefixindex">§</span> 17:27, 20 September 2007 (UTC)
* <nowiki>site:en.wikipedia.org inurl:%s</nowiki> (assuming your string isn't present in "en.wikipedia.org/wiki")
:Come to think of it, I'm positive that solution violates some database design rule about normalization. Oh well. ]<sup>]</sup> <span title="Misplaced Pages talk:Special:Prefixindex">§</span> 17:31, 20 September 2007 (UTC)
] (]) 01:44, 26 January 2011 (UTC)
:::No, it can be done by just adding 1 column to the article table and 1 index for just that table. <s>That can't possibly break any normalization rule</s> (OK, so, it breaks the second normal form because it's redundant information that can be obtained from reversing the <s>name column</s> primary key. Damn you, Codd! It's still an acceptable compromise for performance, thought) The name-updating updates the column every time that the "name" column is updated, the searches are as fast as prefixIndex, and the name change updates only have to update one extra column on a table that gets updated anyways and one extra index. It's not as if articles change names often. --] (]) 02:16, 2 April 2008 (UTC)
::I made a request at bugzilla. It had come up before. The discussion was about the fact that a prefix search comes at no extra effort because of the way the database is set up. However, to set up a suffix search would require a major effort apparently. Oh well, it was a nice thought. I'm sure by the time we are all required by the government to have the computer implant in the brain which connects us all to the Misplaced Pages, they will have it figured out. ] 19:59, 20 September 2007 (UTC)


Google query examply: something like , probably can be improved ∴ ] 21:31, 20 September 2007 (UTC)


I can dig it! Cheers! - SWIM ] (]) 11:19, 25 December 2021 (UTC)
Not really a solution (or even a workaround) but you could download the "enwiki-YYYYMMDD-all-titles-in-ns0.gz" file from http://download.wikimedia.org and try searching for suffix$ (or something similar) with a ]-capable editor. --''']'''] 11:30, 29 March 2008 (UTC)


I'll proudly wear this badge ] (]) 11:18, 29 October 2022 (UTC)
== New Prefix Discussion ==
I thought you might find ] discussion relevant. Please comment about the new proposed prefixes. I'm suggesting that we add U: and UT: for user pages and user talk pages. <small><span style="border:1px solid #0000ff;padding:1px;">]|]</span></small> 09:35, 27 July 2007 (UTC)


== Passing parameters in wikilink ==
:Link is no longer good; since VPT is not archived, it's now best to look at an to see the discussion. -- <font style="font-family:Monotype Corsiva; font-size:15px;">] </font> ] 16:31, 20 September 2007 (UTC)


Is it possible to pass parameters in a wikilink to the PrefixIndex page as can be done in the transclusion syntax?
== "Next page" at the top, but not at the bottom ==


I.e like:
Special:Allpages has a "Next page" link at the top right and the bottom right. Special:Prefixindex has this link only at the top (if the list is long enough). Could the link be added to the bottom as well? For comparison, see ] and ]. Thanks! ] 05:14, 15 September 2007 (UTC)


<code><nowiki>{{Special:PrefixIndex/{{FULLPAGENAME}}/ |hideredirects=1 |stripprefix=1}}</nowiki></code>
==PrefixIndex, middleindex, suffixindex, etc. ==
If so, what's the proper syntax?
Where ] allows you to search article names that begin with a certain text string, is a recently improved tool that allows you to search text strings anywhere they appear in the article name. Grep lets you search the entire text string (not just the beginning) for common text patterns. Even better, grep lets you use wildcard characters and other characters (see ]) to formulate your search string. H(ä|ae?)ndel will find "Handel", "Händel", and "Haendel". (S|s)chool will find School and school. The ] tool allows you to find postings in any other name space. The ] tool also is great for finding all related categories and all related templates, even if they are not categorized with a <nowiki>]</nowiki> ] (]) 14:55, 26 April 2008 (UTC)


== ] and ] == == Search with trailing space ==
'''''Feliciano''''', being the ] variant of '''''Felix''''', and therefore masculin, should be listed under '''''Felix''''' rather then under '''''Felicia''''', or perhaps under '''''Felix''''' as well. ] 18:03, 2 May 2008 (UTC)
:Special:PrefixIndex is just a list of pages beginning with the string searched for. So ''321''5 Lapko shows up when you enter ''321'', and ''Felicia''no shows under ''Felicia'' because thats the 8 first letters. There is currently no way to implement making feliciano popping up when felix is entered. You might want to edit the disambiguation page ]. ] (]) 22:47, 2 May 2008 (UTC)


I wish to search all articles (and exclude redirects) that start with ''Dr'' without the dot after it. I understand that I cannot enclose the search term with quotes. If it was allowed, I only had to enter "Dr " with a space. But giving Dr followed by a space, is not working as the search seems to be removing the trailing space. Giving Dr. with a space after it also is returning results (such as ]) that do not have space after Dr. . ] <sup>'']''</sup> 08:00, 12 July 2021 (UTC)
== No sub-subpages ==
:@], You might want to try a ] search e.g. <code>intitle:/Dr{{nbsp}}/</code>&nbsp;&#8213;&nbsp;]] 08:01, 22 December 2021 (UTC)
:Thanks. I forgot to inform that I had reposted this some months later at ] and got a response. <span style="font-family:Segoe Script">]</span> ] 08:54, 22 December 2021 (UTC)


== Substing this page? ==
Is there a way to Special:PrefixIndex some thing without getting the sub pages of the subpages.<span style="font-family:Gill Sans MT">]]</span> 20:33, 7 July 2008 (UTC)
:Ex.
:You PrefixIndex ]
:You get ] and ]
:But you only want ].
<span style="font-family:Gill Sans MT">]]</span> 20:35, 7 July 2008 (UTC)


Is there any way to subst the special page? ] <sup>(he/him &#124; ])</sup> 19:24, 23 February 2022 (UTC)
:<small>Renamed the section from «Question». —] 20:55, 7 July 2008 (UTC)</small>
:{{Yo|EpicPupper}} Not the obvious way ], ]. And the ] links back to this enwiki page for documentation, I don't see any docs on the mediawiki site, nor does there exist an ], like there is a ]. I did figure you tried all that but I'm replying again just to see if anyone else with this on their watchlist has an ideas. Sorry {{sad face}} Happy Editing--''']]''' 03:35, 8 March 2022 (UTC)
:No. You could try a ] tool on toolserver, with the search expression like <code>^Misplaced Pages/*$</code> —] 20:55, 7 July 2008 (UTC)
::I'm confused by what you mean - <s>{{tl|Article templates}}'s documentation does it just fine,</s> and your diff seems to be working as expected - what is what you expect to happen when you <s>transclude</s> substitute it, @] @]? ] 22:59, 18 May 2022 (UTC)
::Is there a way to transclude it?<span style="font-family:Gill Sans MT">]]</span> 20:57, 7 July 2008 (UTC)
:::When subst'ing? I would hope to just paste the contents that appeared in the transclusion. Yes transcluding works. Substing doesn't, look at my second diff above. {{hidden ping|casualdejekyll|EpicPupper}} Happy Editing--''']]''' 23:47, 18 May 2022 (UTC)
:::No, you cannot transclude anything from external sources. —] 21:01, 7 July 2008 (UTC)
::::Oh. Um. Hmm. What a pickle... ] 23:49, 18 May 2022 (UTC)
::::Did you ever find a solution for this? ] (]) 05:50, 26 December 2022 (UTC)
:::::@], I'm fairly sure this is impossible to subst.<span id="Qwerfjkl:1672046095176:Wikipedia_talkFTTCLNSpecialFTTCLNPrefixIndex" class="FTTCmt"> —&nbsp;]] 09:14, 26 December 2022 (UTC)</span>
::::::@] I find that most use-cases for substitution can be approached in different, more efficent ways :) ] <sup>(he/him &#124; ])</sup> 20:32, 26 December 2022 (UTC)


== Hiding disambiguations ==
== Vertical vice horizontal alphabetical display ==


Is there any way to hide disambiguation pages when searching for articles beginning with certain characters? I know redirects can be hidden but can disambiguations be hidden? If not, would it be feasible to add such a feature? ] (]) 14:05, 2 January 2024 (UTC)
Can lists be arranged vertically instead of horizontally?
:Not directly through this special page, but fortunately there is through ]:
:] gives page titles beginning with "Foo" that ''do not'' contain "(disambiguation)". (Technically this doesn't filter out ] disambigs, which don't have "(disambiguation)" in the title, but hopefully that will be enough.)
:For more see ]. However, this, in turn, doesn't let you control redirects showing up in the results, because the MediaWiki software doesn't support that: ]. If you really need to filter out '''both''' disambigs and redirs in an automated fashion, you'll have to code up something to fetch the search results and do that filtering locally, or ask someone for assistance with same.
:If curious as to why: redirs are something handled specially inside the MediaWiki software, so it "knows" automatically whether or not a page is a redirect. Disambigs on the other hand, are just a page-titling convention Misplaced Pages's humans use to organize pages; the software doesn't "know" whether a page is a disambig.
:Hope this helps, and if you have more questions ask away! {{=)}} ] (]) 18:48, 2 January 2024 (UTC)
::], I'm not sure that's quite right. Links to disambiguation pages have a special class, and I believe disambiguation pages are marked with a magic word, something like <code><nowiki>__DISAMBIG__</nowiki></code>.<span id="Qwerfjkl:1704222450182:Wikipedia_talkFTTCLNSpecialFTTCLNPrefixIndex" class="FTTCmt"> —&nbsp;]] 19:07, 2 January 2024 (UTC)</span>
:::Ah-ha! Turns out here on Misplaced Pages we have an extension that does that: ]. Thanks for bringing that up. However it looks like unfortunately not "hooked in" to Special:Search at present, so filtering disambigs from there is still not possible. You have to go through the ] and do some complex querying. ] (]) 23:28, 2 January 2024 (UTC)

Latest revision as of 01:21, 11 July 2024


Usage

{{Special:PrefixIndex/page}}

Parameters
  • |hideredirects= If set to yes or 1, output will exclude redirects.
  • |stripprefix= If set to yes or 1, removes prefixes from output.
Examples

{{Special:PrefixIndex/Template:mbox}}


{{Special:PrefixIndex/Template:mbox|hideredirects=yes}}


{{Special:PrefixIndex/Template:mbox|stripprefix=yes}}


{{Special:PrefixIndex/Template:mbox/}}


If you want to do something wacky like change the width of the columns, use the template {{PrefixIndex}}, which is a simple wrapper for this plus another parameter for column widths. Go try it out!

This is the talk page for discussing Special:PrefixIndex and anything related to its purposes and tasks.
Archives: 1Auto-archiving period: 12 months 
This is the talk page for the special page at Special:PrefixIndex.
For general information on this and other special pages, see Help:Special page.
For recent talk about special pages, see Recentchangeslinked/Specialpages discussion
See also: Template:PrefixIndex and Template:Look from
For advanced pagenames searches use the grep tool

Google search trick to help with suffixes

In Google search, try the following (quote marks included):

  • "http://en.wikipedia.org/*%s"
  • "http://en.wikipedia.org/ * %s"

where you replace "%s" with the suffix you're interested in. It's imperfect but useful. — ¾-10 20:11, 13 February 2010 (UTC)

This will find references to those pages on other sites as well, you'd be better off with:

  • site:en.wikipedia.org inurl:"wiki/*%s"
  • site:en.wikipedia.org inurl:%s (assuming your string isn't present in "en.wikipedia.org/wiki")

Bigmantonyd (talk) 01:44, 26 January 2011 (UTC)


I can dig it! Cheers! - SWIM HowdyImSWIM (talk) 11:19, 25 December 2021 (UTC)

I'll proudly wear this badge Nguthi Joseph k (talk) 11:18, 29 October 2022 (UTC)

Passing parameters in wikilink

Is it possible to pass parameters in a wikilink to the PrefixIndex page as can be done in the transclusion syntax?

I.e like:

{{Special:PrefixIndex/{{FULLPAGENAME}}/ |hideredirects=1 |stripprefix=1}} If so, what's the proper syntax?

Search with trailing space

I wish to search all articles (and exclude redirects) that start with Dr without the dot after it. I understand that I cannot enclose the search term with quotes. If it was allowed, I only had to enter "Dr " with a space. But giving Dr followed by a space, is not working as the search seems to be removing the trailing space. Giving Dr. with a space after it also is returning results (such as Dr.I) that do not have space after Dr. . Jay 08:00, 12 July 2021 (UTC)

@Jay, You might want to try a regex search e.g. intitle:/Dr / ― Qwerfjkltalk 08:01, 22 December 2021 (UTC)
Thanks. I forgot to inform that I had reposted this some months later at Help talk:Searching#Search with trailing space and got a response. Jay (talk) 08:54, 22 December 2021 (UTC)

Substing this page?

Is there any way to subst the special page? 🐶 EpicPupper 19:24, 23 February 2022 (UTC)

@EpicPupper: Not the obvious way 1, 2. And the mw:Special:PrefixIndex links back to this enwiki page for documentation, I don't see any docs on the mediawiki site, nor does there exist an mw:Project:Special:PrefixIndex, like there is a en:Project:Special:PrefixIndex. I did figure you tried all that but I'm replying again just to see if anyone else with this on their watchlist has an ideas. Sorry Happy Editing--IAmChaos 03:35, 8 March 2022 (UTC)
I'm confused by what you mean - {{Article templates}}'s documentation does it just fine, and your diff seems to be working as expected - what is what you expect to happen when you transclude substitute it, @EpicPupper @IAmChaos? casualdejekyll 22:59, 18 May 2022 (UTC)
When subst'ing? I would hope to just paste the contents that appeared in the transclusion. Yes transcluding works. Substing doesn't, look at my second diff above. Happy Editing--IAmChaos 23:47, 18 May 2022 (UTC)
Oh. Um. Hmm. What a pickle... casualdejekyll 23:49, 18 May 2022 (UTC)
Did you ever find a solution for this? Fuzzyketchup (talk) 05:50, 26 December 2022 (UTC)
@Fuzzyketchup, I'm fairly sure this is impossible to subst. — Qwerfjkltalk 09:14, 26 December 2022 (UTC)
@Fuzzyketchup I find that most use-cases for substitution can be approached in different, more efficent ways :) 🐶 EpicPupper 20:32, 26 December 2022 (UTC)

Hiding disambiguations

Is there any way to hide disambiguation pages when searching for articles beginning with certain characters? I know redirects can be hidden but can disambiguations be hidden? If not, would it be feasible to add such a feature? Dennis C. Abrams (talk) 14:05, 2 January 2024 (UTC)

Not directly through this special page, but fortunately there is through Special:Search:
Special:Search/-"(disambiguation)" prefix:Foo gives page titles beginning with "Foo" that do not contain "(disambiguation)". (Technically this doesn't filter out WP:NOPRIMARYTOPIC disambigs, which don't have "(disambiguation)" in the title, but hopefully that will be enough.)
For more see Help:Searching. However, this, in turn, doesn't let you control redirects showing up in the results, because the MediaWiki software doesn't support that: phab:T204089. If you really need to filter out both disambigs and redirs in an automated fashion, you'll have to code up something to fetch the search results and do that filtering locally, or ask someone for assistance with same.
If curious as to why: redirs are something handled specially inside the MediaWiki software, so it "knows" automatically whether or not a page is a redirect. Disambigs on the other hand, are just a page-titling convention Misplaced Pages's humans use to organize pages; the software doesn't "know" whether a page is a disambig.
Hope this helps, and if you have more questions ask away! Slowking Man (talk) 18:48, 2 January 2024 (UTC)
Slowking Man, I'm not sure that's quite right. Links to disambiguation pages have a special class, and I believe disambiguation pages are marked with a magic word, something like __DISAMBIG__. — Qwerfjkltalk 19:07, 2 January 2024 (UTC)
Ah-ha! Turns out here on Misplaced Pages we have an extension that does that: mw:Extension:Disambiguator. Thanks for bringing that up. However it looks like unfortunately not "hooked in" to Special:Search at present, so filtering disambigs from there is still not possible. You have to go through the API and do some complex querying. Slowking Man (talk) 23:28, 2 January 2024 (UTC)
Category: