Page MenuHomePhabricator

Implement CollaborationListContent content model
Closed, ResolvedPublic

Description

There is concern of scope creep of having one content model that is responsible for both WikiProjects and some of the features on WikiProjects themselves. The decision was made to split the one content model we have into:

  • WikiProject: intro, table of contents, member list, scope, and various embedded pages. Those embedded pages can be regular wikitext pages, or wikilist pages (see below), or something else altogether in the future.
  • Wikilist: structured article lists. They can be manually curated lists of page titles or dynamically generated from category sets or even Wikidata queries, but for now it should probably just be general lists of pages editable by humans and bots.

We want to create a sub-product for lists because we have a lot of them on WikiProjects, of different sources (Wikidata, SuggestBot, Wikipedia Requests tool, manually maintained lists), and having a standard list format can standardize presentations—leading to a more consistent user experience—and can be used in other contexts (as discussed with @TrevorParscal).

Related Objects

StatusSubtypeAssignedTask
ResolvedIsarra
DeclinedNone
DeclinedNone
ResolvedIsarra
InvalidNone
DeclinedNone
DeclinedNone
ResolvedReedy
ResolvedNone
ResolvedReedy
ResolvedBawolff
ResolvedBawolff
ResolvedBawolff
ResolvedBawolff
ResolvedBawolff
ResolvedIsarra
ResolvedBawolff
ResolvedBawolff
ResolvedBawolff
ResolvedBawolff
ResolvedBawolff
ResolvedBawolff

Event Timeline

Harej added a subscriber: Isarra.

Different types of lists: P3147

Goal: A content model for bots and humans to easily create an edit lists of pages and have them selectively transcluded onto pages. Ability to sort lists and add arbitrary metadata. Custom criteria for transcluding lists, but default should be top 5 entries.

Change 290963 had a related patch set uploaded (by Brian Wolff):
Separate out List content from Hub content

https://gerrit.wikimedia.org/r/290963

Change 290963 merged by jenkins-bot:
Separate out List content from Hub content

https://gerrit.wikimedia.org/r/290963

For reference, this is roughly the json schema that the code currently uses (Possibly subject to change):

* Json structure is as follows:
* {
* 	items: [
*		{
*			"title": "The title, possibly a page name",
*			"link": "Page to link to if not title, or false to disable link",
*			"notes": "Freeform wikitext",
*			"image": "Image to use. Set to false to disable using PageImages ext",
*			"sortkey": { "name of sort criteria": "sortkey", ... }
*			"tags": [ "tag1", "tag2", ... ]
*		},
*		...
*	],
*	"options": {
*		"sortcriteria": {
*			// FIXME, not sure if this actually meets with usecase
*			"criteria name": {
*				"order": "numeric", // or potentially collation??
*				"default": "string-Text here" // or "column-title", etc
*			},
*			...
*		},
*		"defaultsort": "sort-criteria name" // or "column-title" ?? what about multi-key sort??
*	}
*	"description": "Some arbitrary wikitext"
*}
Harej renamed this task from Split CollaborationHub content model into WikiProject and Wikilist to Implement CollaborationListContent content model.May 28 2016, 1:02 PM
Harej triaged this task as High priority.

@Bawolff, would it be possible for the lists to look something like this? https://en.wikipedia.org/wiki/User:Harej/sandbox#Rich_links Note the square images and the differing presentation of the page title. (But instead of the Wikidata description, it would be the notes as provided for in the schema.)

Change 293550 had a related patch set uploaded (by Brian Wolff):
Make list output prettier.

https://gerrit.wikimedia.org/r/293550

Change 293550 merged by jenkins-bot:
Make list output prettier.

https://gerrit.wikimedia.org/r/293550