Difference between revisions of "Template:SettingGroupHeader"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>SnakeChomp
m (Hopefully unbreak the group name header row)
imported>SnakeChomp
(Limit the width of the setting name column)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>


This template is used in conjunction with [[Template:SettingGroupFooter]] and [[Template: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===
 
<pre>{{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}}</pre>
 
'''Result:'''
 
{{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}}
 
===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]]
Line 10: Line 56:
<table cellspacing=0 cellpadding=5 width=100%>
<table cellspacing=0 cellpadding=5 width=100%>


{{#if: {{{Name|}}} |
<tr>
<tr>
  <td colspan=3 class=header style="text-transform:none;">{{{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> | }}


<tr style="background-color: #979c86; color: #eee4cc; font-weight: bold;">
<tr style="background-color: #979c86; color: #eee4cc; font-weight: bold;">
  <td>Setting</td>
  <td width="30%">Setting</td>
  <td>Default</td>
  <td width="10%">Default</td>
  <td>Description</td>
  <td>Description</td>
</tr>
</tr>


</includeonly>
</includeonly>

Latest revision as of 16:12, 8 January 2009


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

Example[edit source]

{{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[edit source]

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.