G2G: Filter in a table? [closed]

+2 votes
378 views
When I enter a table in a profile, I can make it sortable.

Is there any possibilty to activate a filter?

So when I have a table with many names, that I can filter to those names containing the entered letters?
closed with the note: Got workaround in WikiTree Browser Extension.
in WikiTree Tech by Siegfried Keim G2G6 Pilot (107k points)
closed by Siegfried Keim

Can you show me an example?

Edit: I guess you mean like this:  https://www.wikitree.com/wiki/Space:Index-1 ?  What do you want to do with it exactly? 


Yes you can take Index-1 as example.

If you have some hundreds of names in a table you normally have three possibilities:

  1. Find a (part of a) name with the browser search and jump through the results.
  2. Sort after a column and go there. But with changing names it's more difficult.
  3. Use a Filter. For example: show me all entries which Last Name contains Dalbeck.

If you have "Dalbeck" and "vom Dalbeck" then sorting is not the best solution …


I think I can add something to the WikiTree Browser Extension for that, but, as someone said, this will only be useful for you and the 2000 other people who have installed the WBE.

I remember that – maybe 20 years ago – I added with javascript a filter function to a table.

A filter function is much more easy than a sort function. All information is there in the same order. some is visible, some is hidden …

But a client-side javascript filter has to be implemented generically in the page generation on server side. And this maybe can become a difficult thing … wink


Siegfried, you're more than welcome to join us in the WBE and add this yourself. smiley


Hi Siegfried.  I've done this (in the WikiTree Browser Extension) (well I've nearly finished it)... But would you suggest that filters be added to every table with the class 'wikitable' or would you prefer a button next to each  table that would add the filters each time?  The first way is easier, but it might sometimes be unnecessary.  If you have a table with only seven items or so, you don't really need a filter, do you?


Well, I dont know the WikiTree Browser Extension, and I don't know if they work on Opera or Edge … blush

If the look'n'feel of a small table is not effected too much, it could be always there. No one needs to use it. But who wants can …


Take a look at the space page. Opera and Edge both use Chrome extensions, because they are basically the same thing.

This is now live in the Preview version of WBE. It's listed in the options under 'Other' as 'Table Filters'.  The filters will appear on tables with the class "wikitable" and tables on the Watchlist and surname Genealogy pages.  I think this may be quite useful, so... thanks for the idea, Siegfried. yes


How can I get the preview?

Sorry.  It is listed on the space page under Development, but maybe it's not so clear.  Anyway... It's here: https://chrome.google.com/webstore/detail/wikitree-browser-extensio/ijipjpbjobecdgkkjdfpemcidfdmnkid .

We should be on version 1.5.2.2.  
Edit: This should be OK now.


Ian your filter extension is great!

My person name table has 380 entries and with the filters I can fast check about a special name or a special location …

There are also sum glossary pages, i. e. a German-English glossary. I think it is useful there, too.

yes


1 Answer

+5 votes
 
Best answer
Unfortunately not. That would require scripting on the server side. It could possibly be added through an extension, but it would not be available to everyone who visits the profile.
by Steven Harris G2G6 Pilot (816k points)
selected by Eric Weddington

I agree with Steven, and to add to that: HTML tables by their nature are simple. If something more complex than that is needed then it is best to use a spreadsheet (Microsoft Excel or Google Sheets).

Hello Eric,

in my eyes it's better to give the questioner a kind of chance to select the best answer … angel

Yeah! Filter in a wikitable is not a simple thing. But to have a sortable table is even not simple. So I dared t ask … blush


While it might be better in the eyes for the original poster to do the selection of "best answer", it's not a requirement, and others select "best answer" commonly here. You're free to change it if you so desire. Steven's answer is the best because it's correct. There's no easy / good way of implementing such a thing for everyone. You'll need to look into browser extensions or scraping the data into your local tools to do the work.

I agree that Steven's answer is the best in this case.

But you can see: The question, the answer and the selecting as best were at the same time, maybe only minutes between.

I like to give the questioner the chance to select the best answer.

When after hours or days there is no selection, I feel free to select the best answer.

And please let me comment to your statement "Steven's answer is the best because it's correct."

Not any correct answer is the best … In many cases there are many correct but bad answers … laugh

But again: I agree that Steven's answer is the best in this case. angel


Give Ian some time :-)

Ian has already done … laugh


Related questions

+4 votes
1 answer
+3 votes
1 answer
asked Oct 11, 2024 in WikiTree Tech by Rob Walker G2G Rookie (230 points)
+2 votes
1 answer
asked Jan 31, 2024 in WikiTree Tech by Matthew Ryckman G2G5 (5.6k points)
+5 votes
2 answers
+6 votes
1 answer
asked Aug 25, 2023 in WikiTree Tech by GM Garrettson G2G6 Mach 5 (50.9k points)
+1 vote
0 answers
asked Jun 24, 2023 in Genealogy Help by JIm Walker G2G6 Mach 1 (13.5k points)
+7 votes
2 answers
+4 votes
2 answers
asked Jan 17, 2023 in Genealogy Help by Greg Clarke G2G6 Pilot (137k points)
+3 votes
1 answer
asked Dec 16, 2022 in WikiTree Help by RL McAdoo G2G6 Mach 4 (43.5k points)
...