Editing Battlestar Wiki:Template List Guidelines
From the only original and legitimate Battlestar Wiki: the free-as-in-beer, non-corporate, open-content encyclopedia, analytical reference, and episode guide on all things Battlestar Galactica. Accept neither subpar substitutes nor subpar clones.
More actions
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 6: | Line 6: | ||
== Template Syntax == | == Template Syntax == | ||
When you create most templates you can just have them posted. Some don't have any options. but others have tons of options (i.e. {{tl|cite web}}). But as soon as you get complicated templates with lots of options, it is best to keep the syntax simple and easy to understand if you ever had to do any templates. Some of them have options that are only needed on certain pages and some things on a template should only be on the template. This pages is to tell you | When you create most templates you can just have them posted. Some don't have any options. but others have tons of options (i.e. {{tl|cite web}}). But as soon as you get complicated templates with lots of options, it is best to keep the syntax simple and easy to understand if you ever had to do any templates. Some of them have options that are only needed on certain pages and some things on a template should only be on the template. This pages is to tell you haow to do that. | ||
A few things you know first is that there are a few template related syntax HTML tags that you should know before going any futures. | A few things you know first is that there are a few template related syntax HTML tags that you should know before going any futures. | ||
| Line 15: | Line 15: | ||
** Any '''code/text''' in between these tags will only be processed in the template page itself and never will be passed on when rendered. | ** Any '''code/text''' in between these tags will only be processed in the template page itself and never will be passed on when rendered. | ||
== [http://meta.wikimedia.org/wiki/ParserFunctions ParserFunctions] == | == <nowiki>{{qif}}</nowiki> v. [http://meta.wikimedia.org/wiki/ParserFunctions ParserFunctions] == | ||
Using [http://meta.wikimedia.org/wiki/ParserFunctions ParserFunctions] is the only way to do comparisons. [[:Category:Mathematical templates|Mathematical templates]] have been imported from ''Wikipedia'' to help with complex math operations in | The template <nowiki>{{qif}}</nowiki> is now gone. Using [http://meta.wikimedia.org/wiki/ParserFunctions ParserFunctions] is the only way to do comparisons. [[:Category:Mathematical templates|Mathematical templates]] have been imported from ''Wikipedia'' to help with complex math operations in template. | ||
== Live Example == | == Live Example == | ||
| Line 35: | Line 35: | ||
=== Part 4: Explain the fields === | === Part 4: Explain the fields === | ||
Though this is the most section, this section should have two subparts. '''Required''' and '''Optional''' parts. Other parts might exist if they might seem to the | Though this is the most section, this section should have two subparts. '''Required''' and '''Optional''' parts. Other parts might exist if they might seem to the realevent template. ''See {{tl|Episode Data}} for a perfect example.'' | ||
This section should be filled out like this: | This section should be filled out like this: | ||
| Line 62: | Line 62: | ||
== Subst: templates == | == Subst: templates == | ||
All templates that are supposed to be | All templates that are supposed to be subst: should have '''<nowiki><noinclude></nowiki>{{tl|TemplateSubst}}<nowiki></noinclude></nowiki>''' to display any user that the template ''has'' to be subst: because it's not a common template and it really doesn't need to be updated once it's added. (i.e. The day can change.) | ||