KernelNewbies
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Kernel Hacking

  • Frontpage

  • Kernel Hacking

  • Kernel Documentation

  • Kernel Glossary

  • FAQ

  • Found a bug?

  • Kernel Changelog

  • Upstream Merge Guide

Projects

  • KernelJanitors

  • KernelMentors

  • KernelProjects

Community

  • Why a community?

  • Regional Kernelnewbies

  • Personal Pages

  • Upcoming Events

References

  • Mailing Lists

  • Related Sites

  • Programming Links

Wiki

  • Recent Changes

  • Site Editors

  • Side Bar

  • Tips for Editors

  • Hosted by WikiWall

Navigation

  • RecentChanges
  • FindPage
  • HelpContents
KernelNewbies:
  • HelpOnTemplates

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).

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01