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 == | ||
The best example on this Wiki is the {{tl|cite web}} template as it's very complex. If you view the template why you read it would be good so you can compare on what stuff does. | The best example on this Wiki is the {{tl|cite web}} template as it's very complex. If you view the template why you read it would be good so you can compare on what stuff does. | ||
=== Part 1 | === Part 1 === | ||
Has the actual template code. It is all increased with | Has the actual template code. It is all increased with <nowiki><includeonly></nowiki> because there are required options for the template and if it was formated, it would return an error and we don't need to show that to a user who is trying to see how to use a template. | ||
=== Part 2 | === Part 2 === | ||
=== Part 3 === | |||
=== Part 4 | |||
=== Part 4 | |||