Charleswood Historical Society:Structure of this wiki: Difference between revisions

From Charleswood Historical Society
Jump to navigation Jump to search
Line 55: Line 55:


== Remaining tasks ==
== Remaining tasks ==
* make a way to find all images that are not annotated with description template
{{#cargo_query:
tables=_fileData, Image_description
|fields=_fileData._pageName, _fileData._lastUploadDate
|where=Image_description._pageName is null
|join on=_fileData._pageName = Image_description._pageName
}}
* fix problem with [[St. Mary's Anglican Church]] and presumably other pages with apostrophes in hierarchies, need to escape those or find other solution. Using SMW instead of Cargo might be an option. Turning these into non-hierarchies and solving that elsewhere might be an option.  
* fix problem with [[St. Mary's Anglican Church]] and presumably other pages with apostrophes in hierarchies, need to escape those or find other solution. Using SMW instead of Cargo might be an option. Turning these into non-hierarchies and solving that elsewhere might be an option.  
** Yaron replied that this is a parsing bug on Jun 7, hopefully that means he will fix
** Yaron replied that this is a parsing bug on Jun 7, hopefully that means he will fix
Line 60: Line 68:
**** Did a git pull to check if this is still a problem; it is. Updated documentation for Cargo to warn of this bug. [[User:Ttenbergen|Ttenbergen]] ([[User talk:Ttenbergen|talk]]) 22:25, 2023 October 6 (CDT)
**** Did a git pull to check if this is still a problem; it is. Updated documentation for Cargo to warn of this bug. [[User:Ttenbergen|Ttenbergen]] ([[User talk:Ttenbergen|talk]]) 22:25, 2023 October 6 (CDT)


* check a replacetext for all "todo"s left anywhere
* check why replacetext isn't working, then do a a replacetext for all "todo"s left anywhere


* automatic addition of template code to e.g. image uploads: https://www.mediawiki.org/wiki/Extension:NamespacePreload  
* automatic addition of template code to e.g. image uploads: https://www.mediawiki.org/wiki/Extension:NamespacePreload  
** or it might be possible to build a pageform for this; asked for example at https://www.mediawiki.org/wiki/Extension_talk:Page_Forms#Special:UploadWindow_example?
** or it might be possible to build a pageform for this; asked for example at https://www.mediawiki.org/wiki/Extension_talk:Page_Forms#Special:UploadWindow_example?
* add buttons to insert menu in VE to add CollectedIn and Collection template; maybe.
** https://www.mediawiki.org/wiki/VisualEditor/Gadgets/Add_a_tool#
https://www.mediawiki.org/wiki/Extension:WikiEditor/Toolbar_customization/Library
* also add image description https://chs.squirrelslair.ca/index.php?title=MediaWiki:Common.js


* check if I can add the hierarchy definition to a template instead of editing it in the [[Template:CollectedIn]] - that would also allow turning new things into redlinks to start the new collection that way.  
* check if I can add the hierarchy definition to a template instead of editing it in the [[Template:CollectedIn]] - that would also allow turning new things into redlinks to start the new collection that way.  
Line 74: Line 77:
* should the search automatically include the CHS namespace? Most users shouldn't actually see it, so likely not. But it should search the file namespace and now does.
* should the search automatically include the CHS namespace? Most users shouldn't actually see it, so likely not. But it should search the file namespace and now does.
** we might want to take the project namespace back out of that, since kiosk visitors should not by default see that content.  
** we might want to take the project namespace back out of that, since kiosk visitors should not by default see that content.  
** we likely should have put the "editing" page into the "Charleswood Historical Society:" namespace so it won't show in user searches; can still do that once Eileen and Myron are more familiar with the wiki, don't want to cause confusion now


* make a way to find all images that are not annotated with description template




[[Category:Kiosk wiki infrastructure]]
[[Category:Kiosk wiki infrastructure]]

Revision as of 22:41, 2023 October 6

This wiki contains images and pages that are grouped in Collections. Collections form a hierarchy, so that anything that is e.g. in the "Churches/Religious" collection is also in the "Buildings" collection.

Useful Pages

Find all of the Special Pages at Special:SpecialPages

Upload files with Special:Upload

Find all pages at Special:AllPages

Create a wiki account at Special:CreateAccount

Find a list of all uploaded files at Special:ListFiles

Assigning a page to a collection

Option 1:

  • enter the page name in the spot below and assign any relevant categories:


Option 2:

  1. go to the page
  2. click the edit link
  3. click the "insert" dropdown
  4. click "Template"
  5. start typing "CollectedIn" and choose that option
  6. type the collection you want to assign the page to
  7. click "insert"
  8. add additional collections the same way
  9. save

Option 3:

  • edit the page
  • add {{CollectedIn}}
  • save the page
  • click "edit with form" and use the dropdown to pick the collection

Adding a new collection

  1. Make a collection page by entering the name of the collection here:
    • assign the new collection to a parent collection if applicable using the form:

  1. add the collection to the template hierarchy by editing Template:CollectedIn
  2. Re-create the table to update the hierarchy:
    1. in template, click the "Recreate data" tab
    2. uncheck the "Recreate data into a replacement table, keeping the old one for querying"
    3. click OK
    4. wait 1 minute for process to complete (you can click on "View replacement table" link to check progress

Some queries will not show a collection unless it has at least one item in it.

Adding an image

I wonder if there is a way to automatically add the template...

  1. Upload the image
  2. Add Template:Image description to annotate the image: add {{Image description}} to the description field
  3. Save
  4. "Edit with form" to annotate the image and add it to relevant collections

Remaining tasks

  • make a way to find all images that are not annotated with description template

No results

  • fix problem with St. Mary's Anglican Church and presumably other pages with apostrophes in hierarchies, need to escape those or find other solution. Using SMW instead of Cargo might be an option. Turning these into non-hierarchies and solving that elsewhere might be an option.
    • Yaron replied that this is a parsing bug on Jun 7, hopefully that means he will fix
      • Asked if he is planning to fix... Ttenbergen bot (talk) 12:27, 2023 July 9 (CDT)
        • Did a git pull to check if this is still a problem; it is. Updated documentation for Cargo to warn of this bug. Ttenbergen (talk) 22:25, 2023 October 6 (CDT)
  • check why replacetext isn't working, then do a a replacetext for all "todo"s left anywhere
  • check if I can add the hierarchy definition to a template instead of editing it in the Template:CollectedIn - that would also allow turning new things into redlinks to start the new collection that way.
  • should the search automatically include the CHS namespace? Most users shouldn't actually see it, so likely not. But it should search the file namespace and now does.
    • we might want to take the project namespace back out of that, since kiosk visitors should not by default see that content.
    • we likely should have put the "editing" page into the "Charleswood Historical Society:" namespace so it won't show in user searches; can still do that once Eileen and Myron are more familiar with the wiki, don't want to cause confusion now