Difference between revisions of "Template:SettingGroupHeader"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>SnakeChomp
m (Syntax fix. This template uses SettingGroupSetting not SettingGroupMember)
imported>SnakeChomp
(Allow name to be optional)
Line 51: Line 51:
<table cellspacing=0 cellpadding=5 width=100%>
<table cellspacing=0 cellpadding=5 width=100%>


{{#if: {{{Name|}}} |
<tr>
<tr>
  <td colspan=3 style="background-color: #747867; font-weight: bold; color: #eee4cc; text-align: center; ">{{{Name}}}</td>
  <td colspan=3 style="background-color: #747867; font-weight: bold; color: #eee4cc; text-align: center; ">{{{Name}}}</td>
</tr>
</tr>
| }}


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

Revision as of 19:29, 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