This might mean we need to scale back on the number/complexity of wiki template inclusions.

Note that if you retrieve a version of the page “before” the template inclusions, e.g.:
http://wiki.openstreetmap.org/index.php?title=Map_Features&oldid=71404

and click on “edit” and “preview”, you will see the same error:
Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 506949 bytes) in /var/www/wiki.openstreetmap.org/includes/Parser.php on line 358

although the page only use templates for nodes, ways and areas icons…

just to say that removing templates will not resolve the problem but postpone it (if any).

I see 3 solutions:

  • increase the memory allocated for PHP/wiki
  • the “Map Features” page is just collecting the links to the “Key:*” pages but the page looses its overview and completeness capacity.
  • the “Map Features” page provides a full list of all key/values but in a light form (no table, no pictures, no links).

My preference goes to the third solution. The templates could be modified with an optional “light version” flag. Based on the flag, the template could deliver two different outputs:

  • the “light version” just displays the list of keys, values and descriptions; no pictures, no rendering examples, no “node”, “way” or “area” templates, no tables, no links (excepted one to the “Key:*” page)
  • the “heavy version” called by the “Key:*” pages themselves displaying the tables as they are today.

The advantage of this is that we maintain the list of values in a single page and we keep the facility for internationalization.