Difference between revisions of "Template:SettingGroupHeader"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>SnakeChomp
(New header row style. Add optional description field.)
imported>SnakeChomp
m (Syntax fix. This template uses SettingGroupSetting not SettingGroupMember)
Line 1: Line 1:
<noinclude>
<noinclude>


This template is used in conjunction with {{[[:Template:SettingGroupFooter|SettingGroupFooter]]}} and {{[[:Template:SettingGroupMember|SettingGroupMember]]}} to document groups of relating settings using a single table.
This template is used in conjunction with {{[[:Template:SettingGroupFooter|SettingGroupFooter]]}} and {{[[:Template:SettingGroupMember|SettingGroupSetting]]}} to document groups of relating settings using a single table.


'''Example:'''
'''Example:'''
Line 55: Line 55:
</tr>
</tr>


{{#if: {{{Description|}}} | <tr><td>{{Description}}</td></tr> | }}
{{#if: {{{Description|}}} | <tr><td colspan="3">{{{Description}}}</td></tr> | }}


<tr style="background-color: #979c86; color: #eee4cc; font-weight: bold;">
<tr style="background-color: #979c86; color: #eee4cc; font-weight: bold;">

Revision as of 19:23, 5 January 2009


This template is used in conjunction with {{SettingGroupFooter}} and {{SettingGroupSetting}} to document groups of relating settings using a single table.

Example:

{{SettingGroupHeader
|Name = Foo Settings
|Description = These are the foo settings. They do stuff.
}}

{{SettingGroupSetting
|Name        = fFoo1
|Default     = 0
|Description = foo
}}

{{SettingGroupSetting
|Name        = fFoo2
|Default     = 0.2
|Description = foo
}}

{{SettingGroupFooter}}

Result:


Foo Settings
These are the foo settings. They do stuff.
Setting Default Description
fFoo1 0 foo
fFoo2 0.2 foo