Template:DramaLevel: Difference between revisions
From The Urban Dead Wiki
Jump to navigationJump to search
No edit summary |
The Rooster (talk | contribs) (Making Template More Versitile...and Complicated) |
||
Line 1: | Line 1: | ||
<noinclude><center></noinclude> | <noinclude><center></noinclude> | ||
{| 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%" cellspacing=0 | ||
|- style="background | |- style="background:{{{HeaderColor|Gold}}}" | ||
| style="padding: 0 9px; font-size: 18px; color: 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 | ||
|- style="font-size:1px | |- style="font-size:1px" | ||
| style="width:40px" | | | style="width:40px" | | ||
| style="width:210px"| | | style="width:210px"| | ||
|- style="background | |- style="background:{{{InactiveColor|RoyalBlue}}}" | ||
| style="text-align:center" | [[Image:Face-grin.png|24px]] | | style="text-align:center" | [[Image:Face-grin.png|24px]] | ||
| style="height:40px; padding-right: 9px" | No drama around? Are we still in the Urban Dead Wiki ? | | style="height:40px; padding-right:9px; color:{{{InactiveTextColor|white}}}" | No drama around? Are we still in the Urban Dead Wiki ? | ||
|- style="font-size:1px | |- style="font-size:1px" | ||
| style="width:40px" | | | style="width:40px" | | ||
| style="width:210px"| | | style="width:210px"| | ||
|- style="background | |- style="background:{{{ActiveColor|OrangeRed}}}" | ||
| style="text-align:center" | [[Image:Face-wink.png|24px]] | | style="text-align:center" | [[Image:Face-wink.png|24px]] | ||
| style="height:40px; padding-right: 9px" | There is little drama. Slow mondays ? | | style="height:40px; padding-right:9px; color:{{{ActiveTextColor|white}}}" | There is little drama. Slow mondays ? | ||
|- style="font-size:1px | |- style="font-size:1px" | ||
| style="width:40px" | | | style="width:40px" | | ||
| style="width:210px"| | | style="width:210px"| | ||
|- style="background | |- style="background:{{{InactiveColor|RoyalBlue}}}" | ||
| style="text-align:center" | [[Image:Face-smile.png|24px]] | | style="text-align:center" | [[Image:Face-smile.png|24px]] | ||
| style="height:40px; padding-right: 9px" | Situation normal. There is some drama, but no one is going to die. | | style="height:40px; padding-right:9px; color:{{{InactiveTextColor|white}}}" | Situation normal. There is some drama, but no one is going to die. | ||
|- style="font-size:1px | |- style="font-size:1px" | ||
| style="width:40px" | | | style="width:40px" | | ||
| style="width:210px"| | | style="width:210px"| | ||
|- style="background | |- style="background:{{{InactiveColor|RoyalBlue}}}" | ||
| style="text-align:center" | [[Image:Face-sad.png|24px]] | | style="text-align:center" | [[Image:Face-sad.png|24px]] | ||
| style="height:40px; padding-right: 9px" | Misconbitration! Drama all around the wiki! | | style="height:40px; padding-right:9px; color:{{{InactiveTextColor|white}}}" | Misconbitration! Drama all around the wiki! | ||
|- style="font-size:1px | |- style="font-size:1px" | ||
| style="width:40px" | | | style="width:40px" | | ||
| style="width:210px"| | | style="width:210px"| | ||
|- style="background | |- style="background:{{{InactiveColor|RoyalBlue}}}" | ||
| style="text-align:center" | [[Image:Face-surprise.png|24px]] | | style="text-align:center" | [[Image:Face-surprise.png|24px]] | ||
| style="height:40px; padding-right: 9px" | Drama levels not seen since Wikigate! | | style="height:40px; padding-right:9px; color:{{{InactiveTextColor|white}}}" | Drama levels not seen since Wikigate! | ||
|- | |- | ||
| style="text-align: right; padding: 0 9px | | style="text-align:right; padding:0 9px; font-weight:normal" colspan="2" | [[Template:DramaLevel|update]] | ||
|}<noinclude></center> | |}<noinclude></center> | ||
==Usage== | ==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. | 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. | |||
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> | |||
will give: | |||
{{DramaLevel|HeaderColor=SlateGray|HeaderTextColor=white|ActiveColor=#A3B1BF|ActiveTextColor=white|InactiveColor=#CEE0F2|InactiveTextColor=black}} | |||
==Changing Levels== | ==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: | |||
{| style="text-align:center" border="1" | |||
|+ '''Code''' | |||
|- | |||
| Section || Active || Inactive | |||
|- | |||
| Section Background Color | |||
| <code><nowiki>style="background:{{{ActiveColor|OrangeRed}}}"</nowiki></code> | |||
| <code><nowiki>style="background:{{{InctiveColor|RoyalBlue}}}"</nowiki></code> | |||
|- | |||
| Section Text Color | |||
| <code><nowiki>... color:{{{ActiveTextColor|white}}}"</nowiki></code> | |||
| <code><nowiki>... color:{{{InactiveTextColor|white}}}"</nowiki></code> | |||
|} | |||
[[Category:Wikicentric Templates|{{PAGENAME}}]] | [[Category:Wikicentric Templates|{{PAGENAME}}]]</noinclude> | ||
</noinclude> |
Revision as of 22:28, 1 April 2009
Drama Levels | |
No drama around? Are we still in the Urban Dead Wiki ? | |
There is little drama. Slow mondays ? | |
Situation normal. There is some drama, but no one is going to die. | |
Misconbitration! Drama all around the wiki! | |
Drama levels not seen since Wikigate! | |
update |
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 result in the styling shown above.
Alternatively, you may set variables to set the styling. For example:
{{DramaLevel|HeaderColor=SlateGray|HeaderTextColor=white|ActiveColor=#A3B1BF|ActiveTextColor=white|InactiveColor=#CEE0F2|InactiveTextColor=black}}
will give:
Drama Levels | |
No drama around? Are we still in the Urban Dead Wiki ? | |
There is little drama. Slow mondays ? | |
Situation normal. There is some drama, but no one is going to die. | |
Misconbitration! Drama all around the wiki! | |
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:
Section | Active | Inactive |
Section Background Color | style="background:{{{ActiveColor|OrangeRed}}}"
|
style="background:{{{InctiveColor|RoyalBlue}}}"
|
Section Text Color | ... color:{{{ActiveTextColor|white}}}"
|
... color:{{{InactiveTextColor|white}}}"
|