Template:SOFResults: Difference between revisions
Jump to navigation
Jump to search
m (anther tweak?) |
m (wait do I really need the switch or do I just need to delete the individual rows from the "original" setup?) |
||
Line 20: | Line 20: | ||
!style="width:60px;"|Host | !style="width:60px;"|Host | ||
!Result | !Result | ||
|- {{#switch: {{{result}}} |sweep=<span style="background:#ccffcc">|clever=<span style="background:#ccccff">|win=<span style="background:#ffffcc">|swept=<span style="background:#ffcccc">}}{{#if: {{{sweep|}}} |<span style="background:#ccffcc">}}{{#if: {{{clever|}}} |<span style="background:#ccccff">}}{{#if: {{{win|}}} |<span style="background:#ffffcc">}}{{#if: {{{swept|}}} |<span style="background:#ffcccc">}} | |||
|style="text-align:center"|'''{{ucfirst:{{{host}}}}}''' | |||
|style="text-align:left"|{{lc:{{{result}}}{{#if: {{{sweep|y}}} | '''sweep'''}}{{#if: {{{clever|y}}} | '''clever'''}}{{#if: {{{win|y}}} | '''win'''}}{{#if: {{{swept|y}}} | '''swept'''}}}} | |||
|} | |||
<!-- | |||
Oh my god why don't I just try using a switch like the one for the rogues table!! | |||
{{#if: {{{sweep|}}} | {{#if: {{{sweep|}}} | ||
|<tr><span style="background-color:#ccffcc><td><div style = "text-align:center">'''{{ucfirst:{{{host}}}}}'''</div><td><div style="text-align:left">'''sweep'''</div></td></tr>}}{{#if: {{{clever|}}} | |<tr><span style="background-color:#ccffcc><td><div style = "text-align:center">'''{{ucfirst:{{{host}}}}}'''</div><td><div style="text-align:left">'''sweep'''</div></td></tr>}}{{#if: {{{clever|}}} | ||
Line 26: | Line 34: | ||
|<tr><span style="background-color:#ffcccc ><td><div style = "text-align:center">'''{{ucfirst:{{{host}}}}}'''</div><td><div style="text-align:left">'''swept'''</div></td></tr>}} | |<tr><span style="background-color:#ffcccc ><td><div style = "text-align:center">'''{{ucfirst:{{{host}}}}}'''</div><td><div style="text-align:left">'''swept'''</div></td></tr>}} | ||
|} | |} | ||
--> | |||
<!-- | <!-- | ||
this portion hasn't been working right for row background colors UGH | this portion hasn't been working right for row background colors UGH | ||
{{#if: {{{sweep|}}} | {{#if: {{{sweep|}}} | ||
|<tr><div style = background-color:#ccffcc"><td><div align=center >'''{{ucfirst:{{{host}}}}}</div></td><td><div align=left >'''sweep'''</div></td></div></tr>}}{{#if: {{{clever|}}} | |<tr><div style = background-color:#ccffcc"><td><div align=center >'''{{ucfirst:{{{host}}}}}</div></td><td><div align=left >'''sweep'''</div></td></div></tr>}}{{#if: {{{clever|}}} | ||
Line 34: | Line 45: | ||
|<tr><div style = background-color:#ffcccc" <td><div align=center >'''{{ucfirst:{{{host}}}}}</div></td><td><div align=left >'''swept'''</div></td></div></tr>}} | |<tr><div style = background-color:#ffcccc" <td><div align=center >'''{{ucfirst:{{{host}}}}}</div></td><td><div align=left >'''swept'''</div></td></div></tr>}} | ||
|} | |} | ||
--> | --> | ||
<!-- | <!-- | ||
Line 87: | Line 99: | ||
=== Examples === | === Examples === | ||
The table will look similar to the actual table | The table will look similar to the actual SoF results table in [[SGU_Episode_762#theme|Episode 762]]: | ||
{| class="mw-collapsible mw-collapsed wikitable"| style="width:275px; overflow:auto; align:center" | {| class="mw-collapsible mw-collapsed wikitable"| style="width:275px; overflow:auto; align:center" |
Revision as of 05:58, 2 August 2022
Answer | Item |
---|---|
Fiction | {{{fiction}}} |
Science | {{{science1}}} |
Host | Result |
---|---|
{{{host}}} | {{{result}}}'sweep'clever'win'swept |
Rogue | Guess |
---|
Description
You can include this template in a Results subsection of the Science or Fiction segment for a fun, colorful breakdown of the results. The table allows for five respondents and even two fiction items, as in SGU Episode 764#theme and a handful of others.
Examples
The table will look similar to the actual SoF results table in Episode 762:
Answer | Item |
---|---|
Fiction | less sensitive |
Science | think highly of |
Science | more prevalent |
Science | negative smells |
Host | Result |
---|---|
Jay | win |
Rogue | Guess |
---|---|
Bob | less sensitive |
Steve | less sensitive |
Evan | less sensitive |
Cara | think highly of |
Suggested colorings:
Host Colorings | ||
---|---|---|
sweep | #ccffcc | all the Rogues guessed wrong |
clever | #ccccff | each item was guessed (Steve's preferred result) |
win | #ffffcc | at least one Rogue guessed wrong, but not them all |
swept | #ffcccc | all the Rogues guessed right |
Rogue Colorings | ||
correct | #ccffcc | guessed right |
incorrect | #ffcccc | fell for the fiction item |
Usage
You can copy/paste the following code into your page, removing lines as appropriate.
{{SOFResults |fiction = <!-- short word or phrase representing the item --> |fiction2 = <!-- leave blank if absent --> |science1 = <!-- short word or phrase representing the item --> |science2 = <!-- leave blank if absent --> |science3 = <!-- leave blank if absent --> |rogue1 = <!-- rogues in order of response --> |answer1 = <!-- item guessed, using word or phrase from above --> |rogue2 = |answer2 = |rogue3 = |answer3 = |rogue4 = <!-- leave blank if absent --> |answer4 = <!-- leave blank if absent --> |rogue5 = <!-- leave blank if absent --> |answer5 = <!-- leave blank if absent --> |host = <!-- asker of the questions --> <!-- for the result options below, only put a 'y' next to one. --> |sweep = <!-- all the Rogues guessed wrong --> |clever = <!-- each item was guessed (Steve's preferred result) --> |win = <!-- at least one Rogue guessed wrong, but not them all --> |swept = <!-- all the Rogues guessed right --> }}