Difference between revisions of "Talk:American Council on Germany/Young Leaders"

From Wikispooks
Jump to navigation Jump to search
(I don't know how to make that table)
 
Line 5: Line 5:
 
*add a table in the main folder, listing all participants from all the years that has a biography.
 
*add a table in the main folder, listing all participants from all the years that has a biography.
 
[[User:Terje|Terje]] ([[User talk:Terje|talk]]) 06:11, 30 April 2023 (UTC)
 
[[User:Terje|Terje]] ([[User talk:Terje|talk]]) 06:11, 30 April 2023 (UTC)
 +
 +
:The blanking would be easy, but since it is correct information, it would be good to keep it (from an SMW point of view) and instead only display it once. So how about a change to [[Template:SMWDocs]] instead? On a desktop, I think the page looks fine as it is, though I take the point that it's redundant without the descriptions set, and there's no point having the links duplicated.
 +
 +
:I've been slow to change SMWDocs, since it takes a lot of CPU to rebuild all the pages, but I've been mulling this problem over for ages, and the more of these excellent name lists, the more it would be worth changing it to suit them. So I suggest instead we fix the duplication. Changing SMWDocs is more work, but it'll also fix this issue for [[WEF/Young_Global_Leaders]] and quite a few other pages. Here are three ways that we could remove the duplication but keep the semantic content:
 +
:# Currently, the examples lists all the pages with that |constitutes. [[Template:Examples]] could specifically ''exclude'' sub-pages
 +
:# Conversely, the subpage list could exclude pages which have |constitutes= to the parent page
 +
:# Or maybe the subpage list could be styled as something that could be expanded, so it was only there if people asked for it
 +
:A one size fits all solution is never going to be perfect for all the pages, but I'm keen to modify pages through [[Template:SMWDocs]] as a way to control the complexity/maintenance.
 +
 +
:Actually, the bespoke tables are similar. They're not that hard to do, but they do involve a lot of cutting and pasting, and are less well updated/maintained than tables produced by SMWDocs. Although it isn't pretty, and is not without limitations, the SMW semantic language is very flexible, so we could devise solutions such as "if the page is a stub, or has less than 2048 characters of content, do this, else do that" etc. I can see we might want to branching on the amount of items in a table. I say "we", because while I can do the coding, I welcome suggests as for ''what'' to code.
 +
 +
The semantic properties are a composite of info put in the infoboxes & information it has calculated about the page. Click on the right hand blue RDF icon to see what is available to work with as regards semantic logic.
 +
 +
PARENTPAGE/YEAR has become a common standard for a lot of pages (events and groups), so extending [[Template:SMWDocs]] to list people who are known and attended a .../YYYY event -- or were a member of a .../YYYY group would probably improve a bunch of pages. Since it's people, dates/nationality/constitutes list/description could be good to have in a table.
 +
 +
:One starting point would be to look at the bespoke stuff that already exists, with a view to replacing it with a standard subtemplate of SMWDocs; what we agree would look good on this group parent page will probably also improve the others in a similar semantic position. What do you think? -- [[User:Robin|Robin]] ([[User talk:Robin|talk]]) 21:00, 30 April 2023 (UTC)

Revision as of 21:00, 30 April 2023

Robin, Could you do me a favor with this one, to save me some time?

  • Mass change/blanking the |constitutes=American Council on Germany/Young Leaders which are in each year, to avoid having them listed twice in the main folder.

and:

  • add a table in the main folder, listing all participants from all the years that has a biography.

Terje (talk) 06:11, 30 April 2023 (UTC)

The blanking would be easy, but since it is correct information, it would be good to keep it (from an SMW point of view) and instead only display it once. So how about a change to Template:SMWDocs instead? On a desktop, I think the page looks fine as it is, though I take the point that it's redundant without the descriptions set, and there's no point having the links duplicated.
I've been slow to change SMWDocs, since it takes a lot of CPU to rebuild all the pages, but I've been mulling this problem over for ages, and the more of these excellent name lists, the more it would be worth changing it to suit them. So I suggest instead we fix the duplication. Changing SMWDocs is more work, but it'll also fix this issue for WEF/Young_Global_Leaders and quite a few other pages. Here are three ways that we could remove the duplication but keep the semantic content:
  1. Currently, the examples lists all the pages with that |constitutes. Template:Examples could specifically exclude sub-pages
  2. Conversely, the subpage list could exclude pages which have |constitutes= to the parent page
  3. Or maybe the subpage list could be styled as something that could be expanded, so it was only there if people asked for it
A one size fits all solution is never going to be perfect for all the pages, but I'm keen to modify pages through Template:SMWDocs as a way to control the complexity/maintenance.
Actually, the bespoke tables are similar. They're not that hard to do, but they do involve a lot of cutting and pasting, and are less well updated/maintained than tables produced by SMWDocs. Although it isn't pretty, and is not without limitations, the SMW semantic language is very flexible, so we could devise solutions such as "if the page is a stub, or has less than 2048 characters of content, do this, else do that" etc. I can see we might want to branching on the amount of items in a table. I say "we", because while I can do the coding, I welcome suggests as for what to code.

The semantic properties are a composite of info put in the infoboxes & information it has calculated about the page. Click on the right hand blue RDF icon to see what is available to work with as regards semantic logic.

PARENTPAGE/YEAR has become a common standard for a lot of pages (events and groups), so extending Template:SMWDocs to list people who are known and attended a .../YYYY event -- or were a member of a .../YYYY group would probably improve a bunch of pages. Since it's people, dates/nationality/constitutes list/description could be good to have in a table.

One starting point would be to look at the bespoke stuff that already exists, with a view to replacing it with a standard subtemplate of SMWDocs; what we agree would look good on this group parent page will probably also improve the others in a similar semantic position. What do you think? -- Robin (talk) 21:00, 30 April 2023 (UTC)