Difference between revisions of "Talk:Settings"

2,566 bytes added ,  01:15, 27 December 2008
imported>DragoonWraith
imported>SnakeChomp
Line 67: Line 67:
::Anything I can do to help with any of the changes you propose, let me know, because I think you're right on all of it.
::Anything I can do to help with any of the changes you propose, let me know, because I think you're right on all of it.
::[[User:DragoonWraith|DragoonWraith]] · [[User talk:DragoonWraith|talk]] · 03:14, 26 December 2008 (UTC)
::[[User:DragoonWraith|DragoonWraith]] · [[User talk:DragoonWraith|talk]] · 03:14, 26 December 2008 (UTC)
:::I added a new template to document setting groups in a way that appeals to me and I am using it on the [[Mine Settings]] page as a demonstration. It uses three distinct templates: one [[Template:SettingGroupHeader]] to give the name of the group, any number of [[Template:SettingGroupSetting]] to document each setting in the group, and one [[Template:SettingGroupFooter]] to end the group.
:::For Example:
<pre>{{SettingGroupHeader
|Name = Foo Settings
}}
{{SettingGroupSetting
|Name        = fFoo1
|Default    = 0
|Description = foo
}}
{{SettingGroupSetting
|Name        = fFoo2
|Default    = 0.2
|Description = foo
}}
{{SettingGroupFooter}}</pre>
{{SettingGroupHeader
|Name = Foo Settings
}}
{{SettingGroupSetting
|Name        = fFoo1
|Default    = 0
|Description = foo
}}
{{SettingGroupSetting
|Name        = fFoo2
|Default    = 0.2
|Description = foo
}}
{{SettingGroupFooter}}
:::I like doing it this way because it is simpler to implement the templates (they are all very small), it is trivial to reorder the settings within the group as you don't have to change a lot of numbers (Setting1Default -> Setting9Default) and it is easy to move settings into and out of the group as all you need to change is the name of the template being used (use the Setting template instead of SettingGroupSetting).
:::I'm not married to the formatting of the table that is in use right now, namely the colors being used on the heading row (Setting, Default, Description). It also seems a bit weird that the master table header that has the group name is smaller than the heading that names the columns.
:::I actually have a question about templates, is it possible for the [[Template:Setting]] template to be conditionalized so that it results in different html when it is used within a <nowiki>{{SettingGroupHeader}} ... {{SettingGroupFooter}}</nowiki> section? That way it is simple to move setting documentation into and back out of the group as you don't have to rename the template being used. Its not a big deal, but it would be awesome if we can do that.
:::I plan on changing the pages that currently use [[Template:SettingGroup]] to use the new template, that is assuming that people don't hate the new design behind the template (the fact that it is now 3 separate templates instead of one big monster template). We can refine the look and feel of the new template as we go. I already notice quirks in the example I used here; the width of the "Default" column should be constrained.
:::--[[User:SnakeChomp|SnakeChomp]] 05:15, 27 December 2008 (UTC)
Anonymous user