Difference between revisions of "Template:Setting"
Jump to navigation
Jump to search
imported>Qazaaq m (adding categories) |
imported>DragoonWraith (more categories) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
<pre>{{Setting | <pre>{{Setting | ||
|Name = fFooSetting | |||
|Default = 0.75 | |Default = 0.75 | ||
|Description = This is just an example. | |Description = This is just an example. | ||
Line 14: | Line 15: | ||
{{Setting | {{Setting | ||
|Name = fFooSetting | |||
|Default = 0.75 | |Default = 0.75 | ||
|Description = This is just an example. | |Description = This is just an example. | ||
Line 20: | Line 22: | ||
*bullet points | *bullet points | ||
}} | }} | ||
=== Notes === | |||
If name is not specified, the page title is used with the first character lowercased. | |||
[[Category: Templates|Setting]] | [[Category: Templates|Setting]] | ||
[[Category: Structural Templates|Setting]] | [[Category: Structural Templates|Setting]] | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<table cellspacing=0 cellpadding=5 width=100%> | <table cellspacing=0 cellpadding=5 width=100%> | ||
<tr> | <tr> | ||
<td colspan=2 class=header style="text-transform:none;">{{PAGENAME}}</td> | <td colspan=2 class=header style="text-transform:none;">{{#if: {{{Name|}}} | {{{Name}}} | {{lcfirst:{{PAGENAME}}}} }}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td style="width:100px;border-right:1px solid #7b806b;background-color:#b6b493">Default value</td> | <td style="width:100px;border-right:1px solid #7b806b;background-color:#b6b493">Default value</td> | ||
<td style="background-color:#ebe9ed;">{{#if: {{{Default|}}} | {{{Default}}} | '' | <td style="background-color:#ebe9ed;">{{#if: {{{Default|}}} | {{{Default}}} | ''unknown (please fill this in)'' [[Category:Articles Needing Attention|{{{Name|{{PAGENAME}}}}}]][[Category:Incomplete Articles|{{{Name|{{PAGENAME}}}}}]][[Category:Settings Needing Default Value|{{{Name|{{PAGENAME}}}}}]] }}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td style="width:100px;border-right:1px solid #7b806b;background-color:#b6b493;vertical-align:top;">Description</td> | <td style="width:100px;border-right:1px solid #7b806b;background-color:#b6b493;vertical-align:top;">Description</td> | ||
<td style="background-color:#ebe9ed;">{{{Description}}}</td> | <td style="background-color:#ebe9ed;">{{#if: {{{Description|}}} | {{{Description}}} | ''The value of this setting has an unknown effect on gameplay'' [[Category:Articles Needing Attention|{{{Name|{{PAGENAME}}}}}]][[Category:Incomplete Articles|{{{Name|{{PAGENAME}}}}}]][[Category:Settings Needing Description|{{{Name|{{PAGENAME}}}}}]] }}</td> | ||
</tr> | </tr> | ||
</table></includeonly> | </table></includeonly> |
Latest revision as of 13:03, 27 December 2008
This template is used for Settings.
Example:
{{Setting |Name = fFooSetting |Default = 0.75 |Description = This is just an example. *And these *are a few *bullet points }}
Result:
fFooSetting | |
Default value | 0.75 |
Description | This is just an example.
|
Notes[edit source]
If name is not specified, the page title is used with the first character lowercased.