FamilySearch Wiki:WikiProject Fixing Tables using AI
Purpose[edit | edit source]
We need to restructure our table code in the Wiki in order to comply with new accessibility guidelines. This project will constitute using AI to retrieve new, accessible table code.
Project Leader[edit | edit source]
Amber Larsen
Task List[edit | edit source]
Instructions[edit | edit source]
1. Open the task list and add your name next to the pages you'd like to work on.
2. Click the link in column C to open the Wiki page.
3. Click "Edit source" for the entire page, and Ctrl+F search for "FCK". This will direct you to the instance(s) on the page that include an old table style called an FCK table.
4. After you have located the FCK table in the code, locate the table in the "Show preview" to see what the table looks like, visually.
- If the table content looks like it's trying to be an actual table, with items in specific rows and columns (even if the row/column lines are invisible), continue to step 5.
- If the table content looks like it's trying to just structure a list of bullet points, or it's trying to structure information for a repository (archive, library, society, etc.), make a note in the task list, and continue to the next FCK table or next page in the task list.
5. In another tab, open Gemini AI.
6. Copy and paste the following statement into Gemini:
I am working in MediaWiki and writing in wikitext.
XXXXXXXXXXXXXXXXXXXXX
I need the table code above to be converted into a class=wikitable, with the first column and first row coded to scope similar to this example below:
{| class="wikitable"
|-
! scope="col" | Rating
! scope="col" | Rank
! scope="col" | Name
! scope="col" | Actor
|-
! scope="row" | Captain
| Captain || Kirk, James T || William Shatner
|-
! scope="row" | First Officer
| Commander || Spock || Leonard Nimoy
|-
! scope="row" | Chief Medical Officer
| Lt Commander || Leonard McCoy || DeForest Kelley
|-
! scope="row" | Chief Engineer
| Lt Commander || Montgomery Scott || James Doohan
|}
7. Back on the Wiki page, copy the entire FCK table code. From the "{|" at the beginning to the closing "|}". See an example below.
8. Paste the FCK table code in place of the "XXXXXXXXXXXX" in the AI prompt.
9. Conduct the Gemini AI search. The results should generate the new, updated table code.
- Image 1 below: example of AI search results
- Image 2 below: example in yellow of corrected table code
![]()
![]()
10. Replace the old FCK table code with the new table code generated by the AI.
![]()
11. Click "Show preview" and make sure the table looks good.
- Note: If the AI's new table code generates some weird things, or makes weird spacing, don't fix the table code. Instead, make a note in the Notes column of the task list, and skip that table. Move on to the next table on the page, or onto the next wiki page in the task list.
12. If the table looks good, add the following statement to the edit Summary:
Corrected table to align with accessibility
13. Save the page, and continue on to the next table on the page.
- If there are no additional tables on the page, continue on to the next page on the task list.