Template:DramaLevel: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
(Making Template More Versitile...and Complicated)
(Some align too)
Line 1: Line 1:
<noinclude><center></noinclude>
<includeonly>
{| style="font-size:10px; color:white; font-weight:bold; line-height:110%" cellspacing=0
{| style="font-size:10px; color:white; font-weight:bold; line-height:110%" align="{{{align|left}}}" cellspacing=0
|- style="background:{{{HeaderColor|Gold}}}"
|- style="background:{{{HeaderColor|Gold}}}"
| style="padding:0 9px; font-size:18px; color:{{{HeaderTextColor|black}}}; text-align:center; height:30px" colspan="2" | Drama Levels
| style="padding:0 9px; font-size:18px; color:{{{HeaderTextColor|black}}}; text-align:center; height:30px" colspan="2" | Drama Levels
Line 35: Line 35:
|-
|-
| style="text-align:right; padding:0 9px; font-weight:normal" colspan="2" | [[Template:DramaLevel|update]]
| style="text-align:right; padding:0 9px; font-weight:normal" colspan="2" | [[Template:DramaLevel|update]]
|}<noinclude></center>
|}</includeonly><noinclude>
==Usage==
==Usage==
The table is centered in this page for aesthetics reasons. It will otherwise align left by default.
The table is centered in this page for aesthetics reasons. It will otherwise align left by default.
Line 41: Line 41:
Any user and/or group can add this template to their page. For example, the usual call:
Any user and/or group can add this template to their page. For example, the usual call:
<pre>{{DramaLevel}}</pre>
<pre>{{DramaLevel}}</pre>
will result in the styling shown above.
will give:
{{DramaLevel}}


Alternatively, you may set variables to set the styling. For example:
Alternatively, you may set variables to set the styling. For example:
<pre>{{DramaLevel|HeaderColor=SlateGray|HeaderTextColor=white|ActiveColor=#A3B1BF|ActiveTextColor=white|InactiveColor=#CEE0F2|InactiveTextColor=black}}</pre>
<pre>{{DramaLevel|align=center|HeaderColor=SlateGray|HeaderTextColor=white|ActiveColor=#A3B1BF|ActiveTextColor=white|InactiveColor=#CEE0F2|InactiveTextColor=black}}</pre>
will give:
will give:
{{DramaLevel|HeaderColor=SlateGray|HeaderTextColor=white|ActiveColor=#A3B1BF|ActiveTextColor=white|InactiveColor=#CEE0F2|InactiveTextColor=black}}
{{DramaLevel|align=center|HeaderColor=SlateGray|HeaderTextColor=white|ActiveColor=#A3B1BF|ActiveTextColor=white|InactiveColor=#CEE0F2|InactiveTextColor=black}}


==Changing Levels==
==Changing Levels==

Revision as of 23:08, 1 April 2009

Usage

The table is centered in this page for aesthetics reasons. It will otherwise align left by default.

Any user and/or group can add this template to their page. For example, the usual call:

{{DramaLevel}}

will give:

Drama Levels
Face-grin.png No drama around? Are we still in the Urban Dead Wiki ?
Face-wink.png There is little drama. Slow mondays ?
Face-smile.png Situation normal. There is some drama, but no one is going to die.
Face-sad.png Misconbitration! Drama all around the wiki!
Face-surprise.png Drama levels not seen since Wikigate!
update

Alternatively, you may set variables to set the styling. For example:

{{DramaLevel|align=center|HeaderColor=SlateGray|HeaderTextColor=white|ActiveColor=#A3B1BF|ActiveTextColor=white|InactiveColor=#CEE0F2|InactiveTextColor=black}}

will give:

Drama Levels
Face-grin.png No drama around? Are we still in the Urban Dead Wiki ?
Face-wink.png There is little drama. Slow mondays ?
Face-smile.png Situation normal. There is some drama, but no one is going to die.
Face-sad.png Misconbitration! Drama all around the wiki!
Face-surprise.png Drama levels not seen since Wikigate!
update

Changing Levels

To change the drama level, you must change the currently active section to inactive coding, and change the desired section to active coding as follows:

Code
Section Active Inactive
Section Background Color style="background:{{{ActiveColor|OrangeRed}}}" style="background:{{{InctiveColor|RoyalBlue}}}"
Section Text Color ... color:{{{ActiveTextColor|white}}}" ... color:{{{InactiveTextColor|white}}}"