Help:Templates

From KeyWiki
Jump to navigation Jump to search

Templates can be used to quickly and easily add complicated pictures or text to a page on KeyWiki. In addition, they can help for replicating pieces of content on multiple pages.

Creating a template

Template names are prefixed with Template:, you create them like any other wiki page.

Seeing a template

By inserting the code {{Name}} the content of the template at the moment the page containing it is fetched "[[Template:Name]]".

When editing, if you see the same navigation box on pages that share a topic, that might be a template in use. You will know a template is in use for certain if you look at the source and see the code that begins with the curly brackets -- {{}}.

For example, the box below that displays the various help pages on the wiki is a template. By inserting the code:

{{help pages hnt}}

Template:Help pages hnt