TemplateData: Store TemplateData in its own namespace ("Template data:") with a JSON content type and associated to the Template: namespace
OpenPublic

Description

e.g. Template:Information could be documented at TemplateData:Information instead of inside the source code of Template:Information.

Pros:

1. More standard use of ContentHandler for JSON across projects
2. Document templates without needing to make edits to templates that are potentially transcluded across large swaths of pages
3. Easier to implement custom editors for ContentHandler pages than for portions of wikitext pages.

Cons:

1. Would need to have two separate systems - one for the JSON storage, then another to transclude the generated documentation onto template doc pages, e.g. with <templatedata /> or {{#templatedata}} or so (no params needed, because the TemplateData namespace page can be of the same name, like a talk page)
2. Would need to rework the existing editor (sorry, mooeypoo) to work with the new system


Version: master
Severity: enhancement
See Also: T52512: TemplateData: Page properties should not be stored twice (both Template and Template/doc)

bzimport added a project: TemplateData.Via ConduitNov 22 2014, 1:48 AM
bzimport set Reference to bz54140.
MarkTraceur created this task.Via LegacySep 15 2013, 5:36 AM
MarkTraceur added a comment.Via ConduitSep 18 2013, 1:50 PM

I talked about that briefly on IRC, we decided that since this is specifically about the namespace proposal, until we decided what to do about it, we'd leave both open. And closing that bug may not necessarily close this bug.

Jdforrester-WMF added a comment.Via ConduitMay 27 2014, 4:32 PM

Re-wording; this is blocked by https://www.mediawiki.org/wiki/Requests_for_comment/Associated_namespaces being implemented.

Ricordisamoa added a subscriber: Ricordisamoa.Via WebJan 12 2015, 8:32 PM
He7d3r edited the task description. (Show Details)Via WebFeb 22 2015, 10:07 PM
DanielFriesen added a subscriber: DanielFriesen.Via WebFri, Mar 6, 6:34 PM

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.