1 Jul 03:54
Re: [Wikitech-l] On templates and programming languages
On Tue, Jun 30, 2009 at 10:16 AM, Brion Vibber<brion@...> wrote: > As many folks have noted, our current templating system works ok for > simple things, but doesn't scale well -- even moderately complex > conditionals or text-munging will quickly turn your template source into > what appears to be line noise. In addition to changing the programming language that is used in the template namespace a lot of progress can be made on the readability of articles (and thus how usable they are) by rethinking how we invoke templates, or rather how we make data available to templates. If you look at the George W. Bush article you see that the first 50 lines of the article are template code and that his birthday is declared multiple times like so: |birth_date={{birth date and age|mf=yes|1946|7|6}} born July 6, 1946 |DATE OF BIRTH=July 6, 1946 Editors clearly need a better system for declaring facts about articles and then using them in advanced template programming. One can imagine an alternate system where his birthday is only declared once, like so, in the article text: born on [[birthday::July 6, 1946]]. And so on for all the other facts listed in his infobox. Rather than declaring them explicitly in the infobox, you declare them explicitly inline in the text in a highly readable format. Then there is the issue of calling templates. Where do you place them within the article? Much like MediaWiki itself I suggest we introduce the notion of hooks. Beginning of article, end of article. Beginning(Continue reading)
RSS Feed