From WikiHealth

Help:Snippets

Snippets are sections of a wiki page that can be inserted into any other page. A snippet is created by creating a new page with a title that begins with Snippet:. A snippet can be added to a page by typing {{snippetname}}.

Snippets are used for a number a reasons the most common are:

  • A boilerplate message/description
  • Navigational boxes
  • Content that needs to be re-produced on numerous pages.
Table of contents

1) Examples

How to create and edit Snippets

You start a new snippet in the same way you would create a new article. The only difference is that its title must start with "Snippet:".

Once you have made the snippet, you can add {{snippetname}} to any page you want to use it on.

When editing pages that contain snippets a link to each snippet will be created at the bottom of the edit page.

Remember: Modifying snippets effect every page that a snippet is on so take care when editing them as the results can be far reaching.

Are snippets case sensitive?

Yes, except usually the first letter.

Can I add parameters?

Yes, see Help:Snippet Parameters for instructions.

How many snippets can I use in a page?

As many as you like.

I edited the snippet, so why didn't the page it is used on change?

There are some caching bugs. Refreshing by pressing Ctrl and F5 often helps.

Can I rename a snippet?

Yes, this works in exactly the same way as normal page renames. When a snippet called for inclusion is a redirect page, the redirect snippet is included instead.

Examples

snippet:New User Hub

The above snippets are protected but that does not mean that all snippets are protected.

Page Statistics
  • This page was derived from material originally posted at Wikipedia.
  • This page was last modified by WikiHealth AdminE-mail this user at 04:13 on Apr 23, 2005.
  • This following users have made contributions: WikiHealth AdminE-mail this user.
  • This page was released under the terms of the: GNU Free Document License.
  • This page has been previously accessed a total of 1078 times.
 
Create an account or log in
User