Difference between revisions of "Template:SettingGroupHeader"
Jump to navigation
Jump to search
imported>SnakeChomp m (Perhaps not a border then. Try a smaller column width.) |
imported>SnakeChomp (New header row style. Add optional description field.) |
||
Line 6: | Line 6: | ||
<pre>{{SettingGroupHeader | <pre>{{SettingGroupHeader | ||
|Name = Foo Settings | |Name = Foo Settings | ||
|Description = These are the foo settings. They do stuff. | |||
}} | }} | ||
Line 26: | Line 27: | ||
{{SettingGroupHeader | {{SettingGroupHeader | ||
|Name = Foo Settings | |Name = Foo Settings | ||
|Description = These are the foo settings. They do stuff. | |||
}} | }} | ||
Line 50: | Line 52: | ||
<tr> | <tr> | ||
<td colspan=3 | <td colspan=3 style="background-color: #747867; font-weight: bold; color: #eee4cc; text-align: center; ">{{{Name}}}</td> | ||
</tr> | </tr> | ||
{{#if: {{{Description|}}} | <tr><td>{{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:22, 5 January 2009
This template is used in conjunction with {{SettingGroupFooter}} and {{SettingGroupMember}} 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 | ||
Template:Description | ||
Setting | Default | Description |
fFoo1 | 0 | foo |
fFoo2 | 0.2 | foo |