Format Rules/Templates

From All The Fallen Stories
< Format Rules
Revision as of 16:45, 2 October 2015 by Elerneron (talk | contribs) (Created page with "Using templates can make things a whole lot easier if you have a lot of repetition in your story. Basically, a template is a page that can be inserted into any other page. T...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Using templates can make things a whole lot easier if you have a lot of repetition in your story. Basically, a template is a page that can be inserted into any other page. This is especially handy for Game-type stories.

To make a template, all one has to do is name the template, and surround it with double curly braces {{Template:My Template}}. Then, you click on the red link that it generates, and make your template page the way that you make a normal page. Templates should always be added to the story category as well as the template category: [[Category:My Story]] [[Category:Template]].

So that is handy in and of itself, but what really makes Templates truly useful is that they can accept Parameters. You can think of Parameters as bits of information that might change from one use of a template to the next. You can define a Parameter by placing the parameter name in triple curly braces where you want the information to show up on your Template page: {{{My Parameter}}}</code>.

Let's make a basic status bar for a Game-type story as an example. In this example I will also be using some table html, but that is not necessary for a template. They follow the same rules as a normal page.

Template:Status Sample