Jump to content

Talk:Parsing/Notes/Wikitext 2.0/Typed Templates

Add topic
From mediawiki.org
Latest comment: 8 years ago by SSastry (WMF) in topic Cross-wiki templates

Template specifying custom JavaScript

[edit]

Re: "It is possible to imagine a future application where there might benefits to a template specifying custom javascript resources or other sources that govern the behavior of that template (ex: animations?). That will require its own mechanism."

This made me think of WikiWidget:

IIRC, the 2 main blockers for wider usage were security concerns (cf. phab:T71445) and user-bandwidth increases (i.e. mobile/dial-up users). Quiddity (WMF) (talk) 20:33, 21 September 2017 (UTC)Reply

Thanks for the wikiwidget links -- didn't know about them. Those are orthogonal concerns. But, my observation is that insofaras those concerns can be addressed satisfactorily, this type structure can be a unified mechanism to support / accommodate that functionality without having to invent another custom mechanism for it. SSastry (WMF) (talk) 21:24, 21 September 2017 (UTC)Reply

Cross-wiki templates

[edit]

Re: "a mechanism where knowledge domain concepts from the source wiki could be mapped to identical concepts on the target wiki"

I'm not familiar with how Content Translation handles this, but I assumed it was simply via checking Wikidata's interwiki links? I believe that is how the toolforge translate tool works (you specify a source-article, and it finds equivalent in-article links in the target language).

There's also phab:T121470 to consider ("Central Global Repository for Templates, Lua modules, and Gadgets") [that's a more detailed duplicate-task of a much older task]. Quiddity (WMF) (talk) 20:46, 21 September 2017 (UTC)Reply

I haven't looked into how CX handles this right now either. But, that sounds like a reasonable approach to me. Those interwiki links will also eliminate the need for all wikis to provide taxonomy links .. i.e. one wiki can provide a link to a concept and we can leverage interwiki links to infer that concept for all other wikis. SSastry (WMF) (talk) 21:30, 21 September 2017 (UTC)Reply