Difference between revisions of "Template:SettingGroupHeader"
Jump to navigation
Jump to search
imported>SnakeChomp (Allow name to be optional) |
imported>SnakeChomp (Note that fields are optional) |
||
Line 3: | Line 3: | ||
This template is used in conjunction with {{[[:Template:SettingGroupFooter|SettingGroupFooter]]}} and {{[[:Template:SettingGroupMember|SettingGroupSetting]]}} 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=== | |||
<pre>{{SettingGroupHeader | <pre>{{SettingGroupHeader | ||
|Name = Foo Settings | |Name = Foo Settings | ||
Line 43: | Line 44: | ||
{{SettingGroupFooter}} | {{SettingGroupFooter}} | ||
===Notes=== | |||
The name and description fields for the setting group header are optional. If omitted, the corresponding table rows will also be omitted. Note that it doesn't make much sense stylistically to omit the name but provide a description. | |||
[[Category: Templates|Setting]] | [[Category: Templates|Setting]] |
Revision as of 19:32, 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 |
Notes
The name and description fields for the setting group header are optional. If omitted, the corresponding table rows will also be omitted. Note that it doesn't make much sense stylistically to omit the name but provide a description.