Help:Templates
A "template" is a small Shifti page in the template namespace that one can insert into the body of another page via a process called "transclusion". Templates are denoted using curley brackets instead of square brackets.
Tags to be placed at the top of stories
The following content warning templates may be used at the start of a story page to alert readers to potentially displeasing content they may encounter in the story:
When multiple tags are placed at the top of the same page they automatically group themselves in a column.
Templates for suggesting edits within story text
These templates may be useful for collaborative editing. They allow an editor to add notes to a story making suggestions about things that he or she thinks should be changed, similar to the wiki's built-in function for displaying the differences between revisions of a page but without having to go digging into the article's revision history to find it.
| Template code | Displayed template |
|---|---|
| {{add|text to add}} | text to add |
| {{remove|text to remove}} | text to remove |
| {{replace|text to remove|text to replace it with}} | text to removetext to replace it with |
| {{note|note text}} | note text |
Story formatting
These templates are useful for adding a title and author byline or section headers in a standardized manner.
| Template Code | Displayed template | |
|---|---|---|
| {{title|name=name of page|author=page author|user=shifti user name}} Full documentation available at Template:Title |
{{title|name=Example|author=Example}}</niwiki>{{title|name=Example|author=Example}}
|-
| <nowiki>{{part|number=part number|name=part name|seper=type}} Full documentation available at Template:Part |
{{part|number=3.14159|name=PI}} Part 3.14159: PI |
Decorative dingbats
Template:Separator allows the use of a variety of separator "dingbats", or decorative images, for dividing up a story in a fancy way. The template takes three parameters; an identifier determining which particular image to use, an optional bit of text to insert in the middle of the separator, and an optional parameter to define the width of the images in pixels.
| Template code | Without text | With text |
|---|---|---|
| {{Separator|d}} | {{#if:|| }} |
{{#if:Text|| }} |
| {{Separator|f}} | {{#if:|| }} |
{{#if:Text|| }} |
| {{Separator|j}} | {{#if:|| }} |
{{#if:Text|| }} |
| {{Separator|k}} | {{#if:|| }} |
{{#if:Text|| }} |
| {{Separator|r}} | {{#if:|| }} |
{{#if:Text|| }} |
| {{Separator|x}} | {{#if:|| }} |
{{#if:Text|| }} |
| {{Separator|stars}} | {{#if:|| }} |
{{#if:Text|| }} |
Note how separator "r" overrides the default image widths. Since the decorative images used by separator "r" are taller than the other images, the default widths (200 pixels for separators without text and 100 pixels for separators with text) would result in a much larger image overall.
One may include wiki markup in the text, for example the following uses boldface:
{{Separator|f|'''The End'''}}
One may also combine a separator with a header, like so:
=={{separator|f|Chapter 7: The Bit With The Cheese}}==









