User:RusTORK/R/Garage

|-

! style="background-color:#56758D;" |


 * data-sort-value=""

Notes

&lt;includeonly&gt; and &lt;noinclude&gt; NOTE: if the closing &lt;/includeonly&gt; is on a new line it will cause an additional carriage-return to be added to the last invocation of the template SO after you've got the template working properly make sure to backspace the &lt;/includeonly&gt; so that it's at the end of the last template line.
 * &lt;includeonly&gt; ... everything until &lt;/includeonly&gt; will be included when the template is invoked.
 * &lt;noinclude&gt; ... everything until the &lt;noinclude&gt; will not be included ... useful for testing purposes and comments.

Wiki Functions
 * Wiki functions are specified by a set of curly brackets.
 * Template parameters are specified by a set of curly brackets.

The $count line is referencing the variable (by using, using the  to return the value + 1 and then re-creating the variable with the  function. In this case this is used to specify the car number AND to set the car data-sort-value. This is probably the most confusing part about templates, especially as in most cases all white-space characters are removed to avoid them appearing in the output, so reading templates with crammed-together functions and all those closing } brackets can be confusing. Refer to Wiki documentation and my User:QuickNick page for documentation.

Wiki Table |- starts a new table line | starts a new cell/column ... if there is styling etc then another | is required ... ! also starts a new cell/column but uses slightly different formatting including a different background-color and bold text ... I assume this is defined at the Wiki level?
 * Hello
 * style="background-color:white;" | Hello

Invocation of templates Specify the template name, then the parameters (each parameter must be preceded with a pipe | symbol), and then close the template.

Parameters NOTE: You can also use the method to use a possibly missing parameter.
 * Parameters can be named or unnamed. If named, order of parameters doesn't matter, the parameter name is followed by the equal = symbol. If unnamed, each parameter is assigned the next number SO order is important and parameters must NOT be omitted. The new Wiki standard is for named parameters. I have used named parameters here to make it easier to understand.
 * The template and parameters can be on one line or multiple lines. The new Wiki standard is for each parameter to be named and on a separate line to make it easier to read and edit.
 * The function allows to check for a parameter being present AND having a value ... the parameter name is followed with the | character.

List of Parameters
 * Car=
 * ALT= ALTernative name for Car, if present use instead of Car
 * PR=
 * SpeedMph=
 * SpeedKph=
 * Acc=
 * BrakeFt=
 * BrakeMt=
 * Grip=
 * UpgString=
 * UpgCount= Number of Upgrades already done
 * UpgTotal= Total Number of Upgrades
 * UpgCost= =
 * Series=
 * Ver=
 * Date=

Test Data

{|class="wikitable sortable" style="text-align:center; border:2px solid #6C93B1; background-color: transparent; width: 100%;" ! scope="col" style="background: #6C93B1;" data-sort-type="number" | Num ! scope="col" style="background: #6C93B1;" data-sort-type="number" | Car ! scope="col" style="background: #6C93B1;" data-sort-type="number" | PR ! scope="col" style="background: #6C93B1;" data-sort-type="number" | Speed ! scope="col" style="background: #6C93B1;" data-sort-type="number" | Acc. ! scope="col" style="background: #6C93B1;" data-sort-type="number" | Braking ! scope="col" style="background: #6C93B1;" data-sort-type="number" | Grip ! scope="col" style="background: #6C93B1;" data-sort-type="number" | Upgrades ! scope="col" style="background: #6C93B1;" data-sort-type="number" | Series