Difference between revisions of "Template:RB"

From Discovery Wiki
Jump to navigationJump to search
(You don't need to use <nowiki> inside <pre> except for the title line.)
m (Going a different route)
Line 1: Line 1:
 
<noinclude>{{workinprogress|leader=[[User:Ipuvaepe|Ipuvaepe]]}}<!--</noinclude>
 
<noinclude>{{workinprogress|leader=[[User:Ipuvaepe|Ipuvaepe]]}}<!--</noinclude>
{| class="collapsible" style="float: right; margin-left: 1px; margin-top: 1px; width: 251px"
+
{{#ifeq: {{{3|}}} | pull pin and throw grenade (make this "start") | {{RB/on}}}}
!{{{title}}}
+
{| style="width: 244px; height: 30px; margin: 0px 2px 4px 2px; padding: 1px;" cellspacing="1" cellpadding="0"
||{{#if: {{{name1|}}}|{{RB/bar|{{{name1}}}|{{{like1}}}}}<br clear=both>}}
+
|-
||{{#if: {{{name2|}}}|{{RB/bar|{{{name2}}}|{{{like2}}}}}<br clear=both>}}
+
| colspan="20" style="text-align: center; font: smaller Arial;" | {{#ifexpr: {{{2}}} >= 0.8 | <span style="color: #009900;">{{{1}}}</span>}}{{#ifexpr: ({{{2}}} >= 0.4) and ({{{2}}} < 0.8) | <span style="color: #33cc33;">{{{1}}}</span>}}{{#ifexpr: ({{{2}}} > -0.4) and ({{{2}}} < 0.4) | <span style="color: #888888;">{{{1}}}</span>}}{{#ifexpr: ({{{2}}} <= -0.4) and ({{{2}}} > -0.8) | <span style="color: #ff6600;">{{{1}}}</span>}}{{#ifexpr: {{{2}}} <= -0.8 | <span style="color: #cc0000;">{{{1}}}</span>}}
||{{#if: {{{name3|}}}|{{RB/bar|{{{name3}}}|{{{like3}}}}}<br clear=both>}}
+
|- style="height: 16px;"
||{{#if: {{{name4|}}}|{{RB/bar|{{{name4}}}|{{{like4}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} <= -0.9) | border-color: #8ebee5; background: #cc0000; | border-color: #232746; }}" |
||{{#if: {{{name5|}}}|{{RB/bar|{{{name5}}}|{{{like5}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.8) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} <= -0.9) | background: #cc0000; }}" | {{#ifexpr: ({{{2}}} < -0.8 and {{{2}}} > -0.9) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.8)*1000}}%; background-color: #cc0000; margin-left: auto;"></div> }}
||{{#if: {{{name6|}}}|{{RB/bar|{{{name6}}}|{{{like6}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.7) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} <= -0.8) | background: #dd2b2b; }}" | {{#ifexpr: ({{{2}}} < -0.7 and {{{2}}} > -0.8) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.7)*1000}}%; background-color: #dd2b2b; margin-left: auto;"></div> }}
||{{#if: {{{name7|}}}|{{RB/bar|{{{name7}}}|{{{like7}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.6) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} <= -0.7) | background: #dd5757; }}" | {{#ifexpr: ({{{2}}} < -0.6 and {{{2}}} > -0.7) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.6)*1000}}%; background-color: #dd5757; margin-left: auto;"></div> }}
||{{#if: {{{name8|}}}|{{RB/bar|{{{name8}}}|{{{like8}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.5) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} <= -0.6) | background: #ee8282; }}" | {{#ifexpr: ({{{2}}} < -0.5 and {{{2}}} > -0.6) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.5)*1000}}%; background-color: #ee8282; margin-left: auto;"></div> }}
||{{#if: {{{name9|}}}|{{RB/bar|{{{name9}}}|{{{like9}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.4) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} <= -0.5) | background: #ffadad; }}" | {{#ifexpr: ({{{2}}} < -0.4 and {{{2}}} > -0.5) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.4)*1000}}%; background-color: #ffadad; margin-left: auto;"></div> }}
||{{#if: {{{name10|}}}|{{RB/bar|{{{name10}}}|{{{like10}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.3) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} <= -0.4) | background: #ffd9d9; }}" | {{#ifexpr: ({{{2}}} < -0.3 and {{{2}}} > -0.4) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.3)*1000}}%; background-color: #ffd9d9; margin-left: auto;"></div> }}
||{{#if: {{{name11|}}}|{{RB/bar|{{{name11}}}|{{{like11}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.2) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} <= -0.3) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} < -0.2 and {{{2}}} > -0.3) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.2)*1000}}%; background-color: #ffffff; margin-left: auto;"></div> }}
||{{#if: {{{name12|}}}|{{RB/bar|{{{name12}}}|{{{like12}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < -0.1) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} <= -0.2) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} < -0.1 and {{{2}}} > -0.2) | <div style="height: 14px; width: {{#expr: (-{{{2}}}-0.1)*1000}}%; background-color: #ffffff; margin-left: auto;"></div> }}
||{{#if: {{{name13|}}}|{{RB/bar|{{{name13}}}|{{{like13}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} < 0) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} <= -0.1) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} < 0 and {{{2}}} > -0.1) | <div style="height: 14px; width: {{#expr: (-{{{2}}})*1000}}%; background-color: #ffffff; margin-left: auto;"></div> }}
||{{#if: {{{name14|}}}|{{RB/bar|{{{name14}}}|{{{like14}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} >= 0.1) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} > 0 and {{{2}}} < 0.1) | <div style="height: 14px; width: {{#expr: ({{{2}}})*1000}}%; background-color: #ffffff;"></div> }}
||{{#if: {{{name15|}}}|{{RB/bar|{{{name15}}}|{{{like15}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.1) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} >= 0.2) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} > 0.1 and {{{2}}} < 0.2) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.1)*1000}}%; background-color: #ffffff;"></div> }}
||{{#if: {{{name16|}}}|{{RB/bar|{{{name16}}}|{{{like16}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.2) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} >= 0.3) | background: #ffffff; }}" | {{#ifexpr: ({{{2}}} > 0.2 and {{{2}}} < 0.3) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.2)*1000}}%; background-color: #ffffff;"></div> }}
||{{#if: {{{name17|}}}|{{RB/bar|{{{name17}}}|{{{like17}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.3) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} >= 0.4) | background: #d9ffd9; }}" | {{#ifexpr: ({{{2}}} > 0.3 and {{{2}}} < 0.4) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.3)*1000}}%; background-color: #d9ffd9;"></div> }}
||{{#if: {{{name18|}}}|{{RB/bar|{{{name18}}}|{{{like18}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.4) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} >= 0.5) | background: #adffad; }}" | {{#ifexpr: ({{{2}}} > 0.4 and {{{2}}} < 0.5) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.4)*1000}}%; background-color: #adffad;"></div> }}
||{{#if: {{{name19|}}}|{{RB/bar|{{{name19}}}|{{{like19}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.5) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} >= 0.6) | background: #82ee82; }}" | {{#ifexpr: ({{{2}}} > 0.5 and {{{2}}} < 0.6) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.5)*1000}}%; background-color: #82ee82;"></div> }}
||{{#if: {{{name20|}}}|{{RB/bar|{{{name20}}}|{{{like20}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.6) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} >= 0.7) | background: #57dd57; }}" | {{#ifexpr: ({{{2}}} > 0.6 and {{{2}}} < 0.7) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.6)*1000}}%; background-color: #57dd57;"></div> }}
||{{#if: {{{name21|}}}|{{RB/bar|{{{name21}}}|{{{like21}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.7) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} >= 0.8) | background: #2bdd2b; }}" | {{#ifexpr: ({{{2}}} > 0.7 and {{{2}}} < 0.8) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.7)*1000}}%; background-color: #2bdd2b;"></div> }}
||{{#if: {{{name22|}}}|{{RB/bar|{{{name22}}}|{{{like22}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} > 0.8) | border-color: #8ebee5; | border-color: #232746; }}{{#ifexpr: ({{{2}}} >= 0.9) | background: #00cc00; }}" | {{#ifexpr: ({{{2}}} > 0.8 and {{{2}}} < 0.9) | <div style="height: 14px; width: {{#expr: ({{{2}}}-0.8)*1000}}%; background-color: #00cc00;"></div> }}
||{{#if: {{{name23|}}}|{{RB/bar|{{{name23}}}|{{{like23}}}}}<br clear=both>}}
+
| style="width: 5%; border: 1px solid; {{#ifexpr: ({{{2}}} >= 0.9) | border-color: #8ebee5; background: #00cc00; | border-color: #232746; }}" |
||{{#if: {{{name24|}}}|{{RB/bar|{{{name24}}}|{{{like24}}}}}<br clear=both>}}
 
||{{#if: {{{name25|}}}|{{RB/bar|{{{name25}}}|{{{like25}}}}}<br clear=both>}}
 
||{{#if: {{{name26|}}}|{{RB/bar|{{{name26}}}|{{{like26}}}}}<br clear=both>}}
 
||{{#if: {{{name27|}}}|{{RB/bar|{{{name27}}}|{{{like27}}}}}<br clear=both>}}
 
||{{#if: {{{name28|}}}|{{RB/bar|{{{name28}}}|{{{like28}}}}}<br clear=both>}}
 
||{{#if: {{{name29|}}}|{{RB/bar|{{{name29}}}|{{{like29}}}}}<br clear=both>}}
 
||{{#if: {{{name30|}}}|{{RB/bar|{{{name30}}}|{{{like30}}}}}<br clear=both>}}
 
 
|}
 
|}
  
 
<noinclude>-->
 
<noinclude>-->
== Example ==
+
== Format & Example ==
<pre>{{RB
+
<pre>{{RB | who you have standing with | standing with title (-0.9 to 0.9) | "start" to start, "stop" to end, don't use or leave blank otherwise}}
|title = <nowiki><nowiki>:D</nowiki></nowiki>
 
|name1 = name1
 
|like1 = 1.0
 
|name2 = name2
 
|like2 = 0.8
 
|name3 = name3
 
|like3 = 0.6
 
|name4 = driving
 
|like4 = 0.2
 
|name5 = kidney stones
 
|like5 = -1.0}}</pre>
 
{{RB
 
|title = <nowiki>:D</nowiki>
 
|name1 = name1
 
|like1 = 1.0
 
|name2 = name2
 
|like2 = 0.8
 
|name3 = name3
 
|like3 = 0.6
 
|name4 = driving
 
|like4 = 0.2
 
|name5 = kidney stones
 
|like5 = -1.0}}
 
  
:'''See Also:'''
+
{{RB | Hi, we're allies! | 0.9 | start}}
[[Template:RB/bar]]
+
{{RB | Bros Before Hoes | 0.8}}
</noinclude>
+
{{RB | Non Aggression Pact - NAPfest | 0.7}
 +
{{RB | License and registration please | 0.0}}
 +
{{RB | Oh no she didn't! | -0.4}}
 +
{{RB | Oh now it's on! | -0.9 | stop}}</pre>
 +
{{RB | Hi, we're allies! | 0.8 | start}}
 +
{{RB | Bros Before Hoes | 0.7}}
 +
{{RB | Non Aggression Pact - NAPfest | 0.6}}
 +
{{RB | License and registration please | 0.0}}
 +
{{RB | Oh no she didn't! | -0.4}}
 +
{{RB | Oh now it's on! | -0.9 | stop}}
 +
[[Category:Templates]]</noinclude>

Revision as of 07:10, 2 September 2011

150px-WIP2.png This page is currently being developed by one or more editors being led by Ipuvaepe. Please refer to the talk page to learn about and/or contribute to the completion of this page. You can also contact the leader on their discussion page.

Talk Page

Format & Example

{{RB | who you have standing with | standing with title (-0.9 to 0.9) | "start" to start, "stop" to end, don't use or leave blank otherwise}}

{{RB | Hi, we're allies! | 0.9 | start}}
{{RB | Bros Before Hoes | 0.8}}
{{RB | Non Aggression Pact - NAPfest | 0.7}
{{RB | License and registration please | 0.0}}
{{RB | Oh no she didn't! | -0.4}}
{{RB | Oh now it's on! | -0.9 | stop}}


Hi, we're allies!



Bros Before Hoes



Non Aggression Pact - NAPfest



License and registration please



Oh no she didn't!



Oh now it's on!