Template:DramaLevel: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
No edit summary
(Xmas)
 
(94 intermediate revisions by 25 users not shown)
Line 1: Line 1:
<noinclude><center></noinclude>
<noinclude>
{| style="font-size: 10px; color: white; font-weight: bold; line-height: 110%" cellspacing=0
==Usage==
|- style="background-color: Gold"
 
| style="padding: 0 9px; font-size: 18px; color: black; text-align: center; height: 30px" colspan="2" | Drama Levels
Any user and/or group can add this template to their page. For example, the usual call:
|- style="font-size:1px;"
<pre>{{DramaLevel}}</pre>
will give:
</noinclude>
{| style="font-size:10px; color:white; font-weight:bold; line-height:110%" align="{{{align|left}}}" cellspacing=0
|- style="background:{{{HeaderColor|Gold}}}"
| style="padding:0 9px; font-size:18px; color:{{{HeaderTextColor|black}}}; text-align:center; height:30px" colspan="2" | Drama Levels
|- style="font-size:1px"
| style="width:40px" |  
| style="width:40px" |  
| style="width:210px"|
| style="width:210px"|
|- style="background-color: OrangeRed"
|- style="background:{{{ActiveColor|OrangeRed}}}"
| 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-color: RoyalBlue"
|- style="background:{{{InactiveColor|RoyalBlue}}}"
| 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:{{{InactiveTextColor|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-color: RoyalBlue"
|- 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-color: RoyalBlue"
|- 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|<span style='color: {{{InactiveTextColor|white}}}'>Misconbitration</span>]]! 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-color: RoyalBlue"
|- 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; color: black; 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>
|}<noinclude>
==Usage==
 
<br clear="all" />


Any user and/or group can add this template to their page. Just call it. There are no input variable available to set the drama level one way or another.


<pre>{{DramaLevel}}</pre>
{{DramaLevel}}


The table is centered in this page for aesthetics reasons... it normally aligns to the left as it does in the above example.
Alternatively, you may set variables to set the styling. For example:
<pre>{{DramaLevel|align=center|HeaderColor=SlateGray|HeaderTextColor=white
|ActiveColor=#A3B1BF|ActiveTextColor=white
|InactiveColor=#CEE0F2|InactiveTextColor=black}}</pre>
will give:
{{DramaLevel|align=center|HeaderColor=SlateGray|HeaderTextColor=white|ActiveColor=#A3B1BF|ActiveTextColor=white|InactiveColor=#CEE0F2|InactiveTextColor=black}}


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


You can change the level by switching the row background-color from "RoyalBlue" (inactive) to "OrangeRed" (active).
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:{{{InactiveColor|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>

Latest revision as of 22:47, 26 December 2018

Usage

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:{{{InactiveColor|RoyalBlue}}}"
Section Text Color ... color:{{{ActiveTextColor|white}}}" ... color:{{{InactiveTextColor|white}}}"