This is a static archive of the Python wiki, which was retired in February 2026 due to lack of usage and the resources necessary to serve it — predominately to bots, crawlers, and LLM companies.
Pages are preserved as they were at the time of archival. For current information, please visit python.org.
If a change to this archive is absolutely needed, requests can be made via the infrastructure@python.org mailing list.

Templates

Templates make it easier for users to add new pages. Instead of requiring that each bit of new information be added by hand, templates have some text and structure already filled in. Variables can be used to insert date, time, creator, pagename, and the like.

A template page must be named with an ending fitting the standard template name ending (which defaults to some non-blank characters followed by "Template"). The administrator can change the default template name ending by setting "page_template_regex" in the configuration files (ConfigMarket has some presets for different languages). The new template page will be added to the list of template pages displayed when you try to show a non-existent page. For example, NonExistentHelpPage has a link to HelpTemplate that loads the content of HelpTemplate into the editor box, when you click on that link.

There are other default templates distributed with your MoinMoin instance like a HomepageTemplate (for user homepages), a CategoryTemplate (for category pages, see HelpOnCategories) or a SlideTemplate (for slides, see HelpOnSlideShows).


2026-02-14 16:09