Templatology, an essay

Templates are one of MediaWiki’s most versatile features. I was thinking about them recently because of a discussion with other editors about whether a particular template should even exist, and if so, what should its wording be. Templates are a now ubiquitous part of English Wikipedia articles and MediaWiki wikis everywhere, so it may be interesting to look at how they have evolved. (Warning: this is quite long.)

What is a template?

Templates are a feature that provide “boilerplate” text or style, whenever you want to have a standard look or text across more than one page. In MediaWiki, to put a template called “foo” (that is, you would find it in the wiki at [[template:foo]]) on any page, you would put {{foo}}. They can also take “parameters”, or particular values that you can change for each time it is used: {{foo|parameter value 1|parameter value 2}}.

Various types of templates are referred to by other names, including infoboxes, naxboxes, notices and warnings, which more reflect the purpose of those templates.

Another name used is “tag”. When a template is used on a page, it creates a link in the database between the page name and the template. This means one use of templates is to mark pages that you want to group together for some reason. These grouped pages can then be found listed at Special:Whatlinkshere/Template:Foo. If you only wanted to use a template for this grouping purpose, you could make the template so it actually had no visible content. However categories usually make more sense for this purpose.

A history of templates

Templates as we know them today were first introduced in August 2004, MediaWiki v1.3, along with categories and the MonoBook skin still used today. Before this they were in the MediaWiki namespace with the “system messages” or user interface messages. With this move they also got the feature of “parameters”.

The first revision of the Help:Template page on meta was in June 2004 (I suppose by this stage they already had the practice of running the latest MediaWiki version live for Wikimedia sites, rather than the latest release which is typically after). The opening paragraph is now cute:

Templates, or custom messages, have grown from humble beginnings as an afterthought in a localisation feature. They are now used in almost 10% of pages in the English Wikipedia database.

I asked Duesentrieb to run a query like this, and apparently there are 229,686 en.wp main namespace non-redirect pages without templates – a very neat 10%. So from 10% usage to 90% usage in less than four years. Pretty impressive, especially given there is no edict mandating their use.

However, this is actually getting well ahead of ourselves. There is an interesting post from Larry Sanger in May 2001 called Do we need templates ?:

From: “Krzysztof P. Jasiutowicz”
> Do we need templates of pages ?
> Groups of pages – rock bands, biographies, film entries share common
> features and therefore want some kind of templates.
> Pages of the same category edited by different people tend to follow
> sometimes incompatible patterns or disagree with each other.

One of the reasons that Wikipedia works—why it is developing so quickly and is so attractive to contributors (compelling, one might say…) is that anyone can come in and contribute in practically any fashion. Instigating templates has a number of implications for how we might begin to think of Wikipedia: it would become a collection of standardized information rather than a collection of information that people just happen to feel inspired to input. Who is interested in inputting “standardized information”? Maybe some people, but surely not nearly as many as those who are interested in inputting whatever information they know.

Suppose we were to require (somehow) that everyone writing about the countries of the world input the information in exactly the format of the CIA Factbook. Who, honestly, would want to do that? And on the other hand, who would want to contribute a lot of generally accurate, useful information that will eventually add up to weighty, detailed articles, not necessarily all in the same format?

If I finish the quote here we can all enjoy a guffaw about how things have changed. I think his answer to the question Who is interested in inputting “standardized information”? has been shown to be wrong. Empty edit boxes freak people out. Structured stuff where you just fill out a missing bit here or there is much easier to deal with. (This is also why bots have been so successful in “seeding” wikis. It’s much easier to correct something that’s wrong, rather than write a correct paragraph from a blank slate.)

However, a fairer quote would include the following, where Larry clearly recognises that “it’s early days yet”:

Eventually, I suspect, we’re going to have huge amounts of information, and it will be possible for people to go in and render related entries in a similar format. It’s generally better to impose order after creation, in a way that reflects the natural categories of things as information is given. […] [I]n a constantly-growing, constantly-improving encyclopedia, why not just let people add whatever information they want, and when it’s reached a certain level of maturity, only then start imposing some uniformity on the way similar information is presented?

And that seems to be more or less what happened. I’m not great at this online ethnography biz, so I don’t have any other choice quotes from 2001 to 2004, although I expect there was further discussion about templates and their appropriateness.

What’s interesting is how far they’ve spread. While first imagined as kind of article skeleton structure, they’re now just as widely used in all kinds of talk pages, user pages, maintenance and communication tasks.

A taxonomy of templates

There are some broad classes of templates that can be described:

Now into the user realm —

Any other clear classes I missed? (There are a few I can think of which are pretty boring, hence not here.)

Template complexity

This is what you see when you edit the article on the Melbourne suburb of Hawthorn. Note how the template takes up the entire first screen, and it’s not even done! For a newbie it must be pretty bizarre — although frankly this one’s formatted quite well. But if you’re just trying to get into the guts of it (and remember newbies may not know about section editing), it’s quite “WRONG WAY, GO BACK”.

So there is the complexity of templates — and typically these infobox ones — within articles. Maybe one day MediaWiki will get some whiz-bang “template adder” for articles and all that ugly template code won’t appear in the edit box. That would be nice.

Then there is the complexity of trying to edit the templates themselves. This is nothing short of a nightmare. Template syntax is approaching a very ugly programming language, especially if you throw in parser functions. The migration to the new preprocessor (Feb 2008) has shown deeply nested templates all over the place.

I don’t really see a solution to this, unfortunately. People can’t help themselves “improving” stuff. Here is one way things get complex real fast:

  1. There are two or more functions that display different content but in a similar context.
  2. Someone decides to combine in them in a single template that takes a parameter, which says which content to display. The old templates get deleted/redirected.
  3. Helloooo, complexity.

Repeat this a few different times, at a few different levels, in a few different contexts, and suddenly you’ll find it all very difficult to try and untangle.

Convenience becomes necessity

All templates begin life because someone finds it easier to make a boilerplate and post that, rather than posting something longer, and having to look it up each time.

However once a template exists, the expectation soon develops that whenever it is applicable, it should be used, and the plain text equivalent should not. Even if previously, you could take or leave the plain text equivalent.

I don’t know why this happens, but it does — without fail.

Templates in user communication

This is actually the crux of what I intended to write about. :) In my 2007 Wikimania presentation I talked quite a bit about the wording, attitude and intent of the English Wikipedia user talk templates. I complained that the wording was often officious, scolding and impersonal, and they were not likely to encourage people to become part of the community.

In hindsight, maybe I had the wrong idea about them all along. John Broughton says this in Wikipedia:The Missing Manual (my review):

The primary purpose of a warning about vandalism or spam, perhaps counter-intuitively, is not to get the problem editor to change her ways. (It would be nice if they did so, but troublemakers aren’t like [sic] to reform themselves just because someone asked nicely.) Rather, when you and other editors post a series of increasingly strong warnings, you’re building a documented case for blocking a user account from further disruptive editing. If the warning leads to the editor changing his ways before blocking is necessary, great – but don’t hold your breath.

(Yes, the gender did change in the middle of that paragraph. :) Srsly, accept singular they already!)

If this is a widespread attitude, that you have to wait until someone receives a level 4 template before it’s legitimate to block them, then it’s not too surprising that there is so much trouble with “gaming” on en.wp. That IS a game, isn’t it? It’s hard for me to not see that situation as leading to punitive block. It’s certainly not leading to a preventative one!

I guess my problem with user warning templates is I have a feeling they don’t work. I have a feeling they don’t improve a situation. I have a feeling they don’t get read — users don’t pay attention to their content.

If there was evidence that anyone read them, learned something from them, or some situation was averted — that would be nice. [Of course such evidence would be anecdotal. That’s all we have when it comes to user interactions.]

Image deletion notification templates

When an uploaded file is nominated for deletion or is actually deleted, it is commonly considered courtesy to inform the uploader, via a template to their user talk page. If they didn’t receive this, they would have no idea their upload had been deleted until they tried to go look at it, which is a pretty nasty surprise. It’s now quite common to visit a user talk page and see a dozen odd notices about missing information on files. Because they are often placed by bots, many can pile up without a human there to notice, “OK, this person seriously doesn’t get this concept, time for a chat”. This is even more true on Commons.

These templates perform two functions: notification + admonishment. They would be better if they were simplified to a single line and only used for notification. Admonishment is something that should be between two humans.

Templates on Commons

There is one benefit to templates that I cannot ignore on Commons and it is that of translation. Translated templates may mean two users can “communicate” (of a fashion) despite not having any language in common.

Templates are for the benefit of the poster, not the receiver

The benefits are

Just as automated phone answering services are for the benefit of the company, not the caller.

Receiving a form reprimand is patronising. I am not the only one who has this emotional reaction – as Wikipedia has Don’t template the regulars.

It follows from this that templates are patronising to newbies too. I guess the only reason this is considered acceptable is that as they’re newbies, they won’t realise this template is a form response. (Well, except for how it’s totally generically worded, yeah.) So, since we’re all equal ‘n all, go ahead and template the regulars.

(So far there is no essay Don’t template the newbies. Instead, treat everyone equally badly. ;))

It would be very valuable to see an in-person observational study of people’s reactions as they learn to edit Wikipedia, including how they react to templates. Maybe the vast majority appreciate the “official” warning as it gives them some direction. Maybe they really do pay attention to them.

Maybe the problem is not the tool, but the way it’s being used. Maybe the only thing to do is take a sharp knife to the language that is used, and help resist the idea of messages as block precipitators, rather than messages as useful informers and educators.

10 March, 2008 • ,

Comment

1

== Convenience becomes necessity ==
I suppose this happens to help standardize these messages. For example, the short disambiguiation notes (templates like {{for}}) look exactly the same as if they were hardcoded (even if by “coded” we mean only “italicized”), but if e.g. for some reason the community decides to add a small icon on these messages, we only have to change the template, instead of all the articles.

== Image deletion notification templates ==
This really needs to be worked out, indeed. Just yesterday I had to remove two image deletion warning templates from magnus’ upload bot’s talk page, because the javascript added them automatically, instead of the real uploader.
And I hate when I see a user’s talk page full of warning templates with red links referring to images that don’t even exist anymore! Maybe Commons DeLinker should hide these templates when removing instances of the images that are deleted…

== Templates are for the benefit of the poster, not the receiver ==
This obviously should be reverted. The wording should be friendlier (it doesn’t make vandals change their mind anyway, at least it should be friendly and useful to the people who care to read it)

Waldir · 11. March 2008, 04:45

2

The main difference between newbies and regulars is that there are much more newbies and most of them dont stay, so you would have to spend time and emotional energy on someone knowing that 9 from 10 times he wont edit more, wont even read your message. This can be pretty disheartening IMO.

As for the difficulty of editing, there is a cool gadget called Vorlagenmeister in the German Wikipedia, which makes it much easier.

Tgr · 12. March 2008, 06:49

3

I find it kinda funny that Waldir used
"==" in his posting of a comment… I expect many of use let wikimarkup leak into other realms.

~~~~
(oops!)

Lar · 12. March 2008, 11:12

4

Tgr, if they won’t even read the message, what is the point of leaving it? It’s not necessary to acknowledge every thing a person does, is it?

Vorlagen-Meister looks pretty cool, I wonder if anyone has ported it for English yet.

pfctdayelise · 12. March 2008, 11:15

5

This was partially translated, and partially adapted, to the Spanish Wikipedia: Templatología (versión eswiki) by drini. Spanish screenshots and all. Awesome.

pfctdayelise · 26. March 2008, 22:33

Elsewhere on the web...

Commenting is closed for this article.

list of all posts, ever

find articles by tag

monthly archive

most popular articles

  1. WikiDashboard live in the wiki wild
  2. WikiDashboard now works on live Wikipedia
  3. Coming up in April - ACEC & the NLA's Innovative Ideas Forum
  4. WikiDashboard now works on live Wikipedia
  5. WMF board election - who cares?
  6. WikiDashboard live in the wiki wild
  7. Media handling on Wikimedia: Preview the future! (part 1)
  8. Reflections on PGIP phase 1
  9. How to use Gmail to manage high-traffic mailing lists
  10. WMF board election - who cares?

(from the last 30 days)

Purchase cialis pills generic Generic cialis money order Cialis tips Generic cialis europe get Order cialis for woman Recommended cialis pills dosage Purchase cialis cheap prices fast delivery Information on generic cialis pills Generic cialis cheap visa Generic cialis vs brand cialis Generic cialis drug online Purchase cialis San Francisco Purchase cialis new york Which is better cialis or levitra Buy prescription cialis online Where to buy cialis in uk Women taking cialis Cialis mexican Pharmacy cialis buy 40 mg cialis Order generic cialis pills Buy softtabs cialis Purchase cialis generic pharmacy Order cialis mastercard Order cialis overnight Buy cialis discount card Order cialis generic pharmacy Cialis pill online Cialis cost a pill Cialis provider Generic 1 mg cialis Prescription cialis Order 30 mg cialis 1 mg cialis Purchase cialis generic soft tab Cialis pills for women Cialis 24 hours Generic 25 mg cialis Buy cialis lowest price Canada cialis online Buy cialis for sale Order cialis San Francisco Order cialis visa Purchase cialis for men and women Order cialis medication Does cialis work Buy cialis generico Order cialis generico Cialis for impotence Cialis cheap visa Order cialis pills generic Generic cialis order site Cialis on-line medication Generic cialis erectile 20 mg cialis online Best buy for cialis 100 mg cialis online Order cialis fast shipping Can women take cialis Buy cialis mail online 15 mg cialis online Best price for cialis Purchase cialis cheap Soft cialis mastercard Side effects of cialis Generic cialis discount generic Generic cialis for sale Price of cialis Very cheap cialis Cialis generic pharmacy Order cialis for men and women Order cialis lowest price Buy cialis pills generic 30 mg cialis online Best discount pill Purchase cialis sale Purchase cialis for normal men Purchase cialis lowest price Generic cialis soft tablet Generic cialis taken by women Ideal dose cialis Order 20 mg cialis Certified cialis Purchase cialis softtabs Order Brand Cialis Cialis for order Generic cialis multiple erection Discount generic cialis 40 mg cialis online Generic cialis effect Order generic cialis pills online Compare viagara cialis Order cialis internet Buy cialis soft tab Buy cialis money order Cialis clock Order cialis discount card Cialis for men and women Purchase cialis discount card Cialis medicine Price of the cialis Acquire cialis Buying cialis sale Generic cialis pills impotence Order 40 mg cialis Purchase cialis internet Generic cialis women take Cialis new york Cialis for sale Generic cialis order online Generic cialis next day Find discount cialis Cialis purchase online Sales cialis Where to buy cheap cialis Buy cialis softtabs Cialis web Selling cialis discount Generic cialis work 10 mg cialis online Purchase cialis com Purchase cialis in holland Generic cialis no rx Generic 100 mg cialis Cialis pills free shipping Buy cialis San Francisco Generic cialis softtabs Best buy cialis softtabs Generic cialis cheap prices Best price for generic viagra Generic cialis cheap mastercard Mail order for cialis Generic 50 mg cialis Low cost cialis Generic cialis 24 hours Drug cialis online purchase Generic cialis drug impotence Search cialis Cheap cialis tablets Order 25 mg cialis Cialis oral Cialis and black men Order cialis in holland Daily cialis Buy cialis drug 10 mg cialis Web cialis Generic Tadalafil cialis Cialis no rx Generic cialis sample Buy cialis cheap Generic cialis get Prices soft tab cialis Buy cheap generic cialis Cialis drug online Online cialis purchase Generic cialis for impotence Order 15 mg cialis Cialis info Fast delivery cialis Cialis discount generic 100 mg cialis 25 mg cialis online To order from the Internet cialis New drug cialis Selling cialis online Cialis mail order Cialis discount Purchase cialis overnight Cialis 48 hours Information on cialis Purchase cialis web Where to buy cialis in nz Generic soft gel cialis Generic cialis discount card Generic 30 mg cialis Order cialis soft tab Cialis discount card Cialis drugs Viagra plus cialis Which is better cialis or viagra Order cialis money order Sale cialis Best herbal cialis Cialis non generic Order cialis drug Fast generic cialis Find cheap cialis online Buy cialis fast shipping Generic cialis 1.00 per pill Purchase cialis soft tab Order cialis for daily use Mixing viagra and cialis Cheapest cialis price Cialis next day Buy super cialis Generic cialis dosage rate Order 10 mg cialis Generic cialis 48 hours Cialis and viagra Buy cialis pro Best generic cialis prices Cialis generic soft tab Over night cialis Erectile effects of cialis Canada buy cialis Lowest price cialis Best price cialis Best Buy cialis Where to buy cialis online Cialis spain Cialis europe get Order cialis sale Order cialis generic soft tab Generic cialis discount Purchase cialis generico Online pharmacy generic cialis Generic cialis provider Generic cialis pro Generic cialis pills for women Cialis drug impotence Generic cialis for men and women Recent cialis Canadian cialis pharmacy Generic 10 mg cialis Generic cialis generic pharmacy 25 mg cialis Purchase cialis drug Purchase cialis pro Order 100 mg cialis Where to get cialis Buy cialis mastercard Generic cialis oral Prescription cialis online Generic cialis results Generic cialis drug interactions Buy cialis oral Cialis for normal men Purchase cialis money order Purchase cialis for daily use Cialis cheap mastercard Buy cialis mexican Order generic cialis softtabs Generic cialis pills Pills cialis Cialis women take Buy cialis for woman Buy cialis sale Order cialis pro Buy sublingual cialis Cialis buy Generic cialis for men Buy cialis web Internet shop cialis Compare levitra cialis Find cheap cialis Cialis get Best prices on cialis Cialis for daily use Cialis women effects Generic cialis visa Generic cialis online pharmacy Order cialis for normal men Viagra levitra cialis pharmacy Generic 40 mg cialis Cialis and levitra Cialis multiple erection Generic cialis web Generic 15 mg cialis Buying cialis generico Cialis dosage rate Order cialis cheap prices fast delivery Purchase cialis fast shipping Generic cialis on-line medication Cialis sample Order cialis washington Generic cialis medicine Online generic cialis pills Compare cialis levitra Cialis pharmacy direct Daily cialis cost Buy cialis new york Brand cialis for sale Generic cialis mexican Gen about cialis Soft gel cialis Best buy online price cialis Wholesale cialis Cialis effect Find a online shop for cialis Purchase cialis medication Generic cialis women effects Generic cialis drug Where to order cialis Buy cialis for normal men Generic cialis use Order cialis mail online Cialis small packs Order cialis softtabs Cialis taken by women Cost of cialis Compare cialis viagra Overnight shipping of professional cialis Buy cialis generic soft tab Cialis oral Purchase cialis new york 15 mg cialis Purchase cialis mastercard Generic cialis drugs Sublingual cialis Buy cialis cheap prices fast delivery Purchase cialis mail online Cialis order online Generic cialis for daily use Best cheap cialis Cialis use Women does cialis work Cialis soft tablet 50 mg cialis Purchase cialis mexican Cialis drug Purchase cialis visa Generic cialis vs cialis Discount wholesale cialis Better than viagra Order cialis now Cialis for men Cialis time to work Generic cialis pharmacy direct Cialis order site Buy cialis overnight Generic cialis mail order Buy cialis now Cialis drug interactions Canadian cialis online pharmacy Generic cialis purchase online Generic cialis for sale online Cialis cheap prices Cialis work Cialis tablets Buy classic cialis Generic cialis tips Bayer cialis Buy cialis visa Buy cialis for daily use Where to buy cialis uk Canada cialis generic Drug cialis Buy cialis medication Order cialis for sale Medicine cialis Purchase cialis oral Purchase cialis washington Buy cialis generic pharmacy Purchase cialis for woman Buy cialis internet Purchase cialis for sale Generic cialis drug 20 mg cialis Generic cialis for normal men Cialis compared to viagra Where to buy cialis in london Generic cialis new york Cialis internet Drug cialis online purchase Buy cialis in holland Purchase cialis now After cialis Order cialis new york Selling cialis Levitra cialis and viagra Cialis every day Order cialis new york Real cialis Generic cialis mastercard Order cialis mexican Brand cialis for sale Order 1 mg cialis Generic cialis info Order cialis oral Generic cialis generic soft tab Cialis pills impotence Generic 20 mg cialis 30 mg cialis Selling cialis low price Generic cialis 36 hours 50 mg cialis online Cialis next day delivery Buy cialis for men and women Brand cialis name online order One a day cialis Order 50 mg cialis Combining cialis and viagra Buy cialis washington Find buy cheap cialis search generic Generic cialis oral Differences cialis Buying cialis web Cialis results Cialis for sale online Buy cialis com Order cialis com Where to buy cialis online Herbal cialis 1 mg cialis online Cialis tablet Cialis erectile Cialis compare prices Find cialis Generic cialis buy Generic cialis pill online Order cialis web Which is better cialis or viagra Cialis 36 hours Buy cialis new york Order cialis cheap Find cialis without prescription Best generic price cialis Cialis tips Cialis tips Cialis results Cialis results Generic cialis get Generic cialis get Generic cialis mastercard Generic cialis mastercard Where to order cialis Where to order cialis Buy cialis pro Buy cialis pro Order 100 mg cialis Order 100 mg cialis Order cialis new york Order cialis new york Generic cialis taken by women Generic cialis taken by women Canadian cialis online pharmacy Canadian cialis online pharmacy Cost of cialis Cost of cialis Best price for generic viagra Best price for generic viagra Generic cialis pill online Generic cialis pill online Generic cialis pill online Cialis (Tadalafil) Cialis (Tadalafil)