https://bugzilla.wikimedia.org/show_bug.cgi?id=50512

       Web browser: ---
            Bug ID: 50512
           Summary: Use a separate namespace for template data JSON
                    instead of requiring <templatedata> to be added to
                    /doc subpages
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: TemplateData
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Consider the following links:
1) https://en.wikipedia.org/wiki/Special:PagesWithProp/templatedata?limit=100
2) https://pt.wikipedia.org/wiki/Special:PagesWithProp/templatedata?limit=100

As you can see, the same template data is being associated to more than one
template:
1) On enwiki, both "Template:Foo" and "Template:Foo/doc"
2) On ptwiki, both "Template:Foo", "Template:Foo/doc" and "Template:Foo/dados"

Using <includeonly><templatedata>...JSON...</templatedata></includeonly> on
"/doc" and "/dados" would make it impossible to preview the table in the same
page.

I think a better approach would be to have a specific namespace, say "JSON:"
(take this just as an example) such that "JSON:XYZ" would hold the JSON for
"Template:XYZ" (and no other template). So it could be transcluded to "/doc"
subpages IF the users want that table in the middle of the documentation (which
is not always desirable, since it seems a little technical for newbie users,
repetitive - because of the template name, its label and its description - and
will be too big for templates with a lot of parameters and aliases)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to