Difference between revisions of "Template:DT"

From Project-GC
Jump to: navigation, search
m (fix)
(Add row totals)
Line 3: Line 3:
 
!scope="col" colspan=2 rowspan=2 style="background: yellow" | D/T
 
!scope="col" colspan=2 rowspan=2 style="background: yellow" | D/T
 
!colspan=9 style="background: yellow" |Terrain
 
!colspan=9 style="background: yellow" |Terrain
 +
!rowspan=2 style="width: 40px;background: yellow" |<div style="-webkit-writing-mode: vertical-rl; -o-writing-mode: vertical-rl; -ms-writing-mode: tb-rl;writing-mode: tb-rl; writing-mode: vertical-rl; layout-flow: vertical-ideographic;display: inline-block; -ms-transform: rotate(180deg); -webkit-transform: rotate(180deg); transform: rotate(180deg);;-ms-transform: none  ;padding-left:1px;text-align:center">Total</div>
 
|-  
 
|-  
 
|scope="col" style="width: 40px;background: yellow"|'''1'''
 
|scope="col" style="width: 40px;background: yellow"|'''1'''
Line 15: Line 16:
 
|-
 
|-
 
! rowspan=9 class = "nowrap" style="width: 20px;background: yellow" | <div style="-webkit-writing-mode: vertical-rl; -o-writing-mode: vertical-rl; -ms-writing-mode: tb-rl;writing-mode: tb-rl; writing-mode: vertical-rl; layout-flow: vertical-ideographic;display: inline-block; -ms-transform: rotate(180deg); -webkit-transform: rotate(180deg); transform: rotate(180deg);;-ms-transform: none  ;padding-left:1px;text-align:center">Difficulty</div>
 
! rowspan=9 class = "nowrap" style="width: 20px;background: yellow" | <div style="-webkit-writing-mode: vertical-rl; -o-writing-mode: vertical-rl; -ms-writing-mode: tb-rl;writing-mode: tb-rl; writing-mode: vertical-rl; layout-flow: vertical-ideographic;display: inline-block; -ms-transform: rotate(180deg); -webkit-transform: rotate(180deg); transform: rotate(180deg);;-ms-transform: none  ;padding-left:1px;text-align:center">Difficulty</div>
|style="width: 40px;background: yellow" |'''1'''||{{{1|-}}}||{{{2|-}}}||{{{3|-}}}||{{{4|-}}}||{{{5|-}}}||{{{6|-}}}||{{{7|-}}}||{{{8|-}}}||{{{9|-}}}
+
|style="width: 40px;background: yellow" |'''1'''||{{{1|-}}}||{{{2|-}}}||{{{3|-}}}||{{{4|-}}}||{{{5|-}}}||{{{6|-}}}||{{{7|-}}}||{{{8|-}}}||{{{9|-}}}||{{#expr:{{{1|0}}}+{{{2|0}}}+{{{3|0}}}+{{{4|0}}}+{{{5|0}}}+{{{6|0}}}+{{{7|0}}}+{{{8|0}}}+{{{9|0}}}}}
 
|-
 
|-
|style="background: yellow"|'''1.5'''||{{{10|-}}}||{{{11|-}}}||{{{12|-}}}||{{{13|-}}}||{{{14|-}}}||{{{15|-}}}||{{{16|-}}}||{{{17|-}}}||{{{18|-}}}
+
|style="background: yellow"|'''1.5'''||{{{10|-}}}||{{{11|-}}}||{{{12|-}}}||{{{13|-}}}||{{{14|-}}}||{{{15|-}}}||{{{16|-}}}||{{{17|-}}}||{{{18|-}}}||{{#expr:{{{10|0}}}+{{{11|0}}}+{{{12|0}}}+{{{13|0}}}+{{{14|0}}}+{{{15|0}}}+{{{16|0}}}+{{{17|0}}}+{{{18|0}}}}}
 
|-
 
|-
|style="background: yellow"|'''2'''||{{{19|-}}}||{{{20|-}}}||{{{21|-}}}||{{{22|-}}}||{{{23|-}}}||{{{24|-}}}||{{{25|-}}}||{{{26|-}}}||{{{27|-}}}
+
|style="background: yellow"|'''2'''||{{{19|-}}}||{{{20|-}}}||{{{21|-}}}||{{{22|-}}}||{{{23|-}}}||{{{24|-}}}||{{{25|-}}}||{{{26|-}}}||{{{27|-}}}||{{#expr:{{{19|0}}}+{{{20|0}}}+{{{21|0}}}+{{{22|0}}}+{{{23|0}}}+{{{24|0}}}+{{{25|0}}}+{{{26|0}}}+{{{27|0}}}}}
 
|-
 
|-
|style="background: yellow"|'''2.5'''||{{{28|-}}}||{{{29|-}}}||{{{30|-}}}||{{{31|-}}}||{{{32|-}}}||{{{33|-}}}||{{{34|-}}}||{{{35|-}}}||{{{36|-}}}
+
|style="background: yellow"|'''2.5'''||{{{28|-}}}||{{{29|-}}}||{{{30|-}}}||{{{31|-}}}||{{{32|-}}}||{{{33|-}}}||{{{34|-}}}||{{{35|-}}}||{{{36|-}}}||{{#expr:{{{28|0}}}+{{{29|0}}}+{{{30|0}}}+{{{31|0}}}+{{{32|0}}}+{{{33|0}}}+{{{34|0}}}+{{{35|0}}}+{{{36|0}}}}}
 
|-
 
|-
|style="background: yellow"|'''3'''||{{{37|-}}}||{{{38|-}}}||{{{39|-}}}||{{{40|-}}}||{{{41|-}}}||{{{42|-}}}||{{{43|-}}}||{{{44|-}}}||{{{45|-}}}
+
|style="background: yellow"|'''3'''||{{{37|-}}}||{{{38|-}}}||{{{39|-}}}||{{{40|-}}}||{{{41|-}}}||{{{42|-}}}||{{{43|-}}}||{{{44|-}}}||{{{45|-}}}||{{#expr:{{{37|0}}}+{{{38|0}}}+{{{39|0}}}+{{{40|0}}}+{{{41|0}}}+{{{42|0}}}+{{{43|0}}}+{{{44|0}}}+{{{45|0}}}}}
 
|-
 
|-
|style="background: yellow"|'''3.5'''||{{{46|-}}}||{{{47|-}}}||{{{48|-}}}||{{{49|-}}}||{{{50|-}}}||{{{51|-}}}||{{{52|-}}}||{{{53|-}}}||{{{54|-}}}
+
|style="background: yellow"|'''3.5'''||{{{46|-}}}||{{{47|-}}}||{{{48|-}}}||{{{49|-}}}||{{{50|-}}}||{{{51|-}}}||{{{52|-}}}||{{{53|-}}}||{{{54|-}}}||{{#expr:{{{46|0}}}+{{{47|0}}}+{{{48|0}}}+{{{49|0}}}+{{{50|0}}}+{{{51|0}}}+{{{52|0}}}+{{{53|0}}}+{{{54|0}}}}}
 
|-
 
|-
|style="background: yellow"|'''4'''||{{{55|-}}}||{{{56|-}}}||{{{57|-}}}||{{{58|-}}}||{{{59|-}}}||{{{60|-}}}||{{{61|-}}}||{{{62|-}}}||{{{63|-}}}
+
|style="background: yellow"|'''4'''||{{{55|-}}}||{{{56|-}}}||{{{57|-}}}||{{{58|-}}}||{{{59|-}}}||{{{60|-}}}||{{{61|-}}}||{{{62|-}}}||{{{63|-}}}||{{#expr:{{{55|0}}}+{{{56|0}}}+{{{57|0}}}+{{{58|0}}}+{{{59|0}}}+{{{60|0}}}+{{{61|0}}}+{{{62|0}}}+{{{63|0}}}}}
 
|-
 
|-
|style="background: yellow"|'''4.5'''||{{{64|-}}}||{{{65|-}}}||{{{66|-}}}||{{{67|-}}}||{{{68|-}}}||{{{69|-}}}||{{{70|-}}}||{{{71|-}}}||{{{72|-}}}
+
|style="background: yellow"|'''4.5'''||{{{64|-}}}||{{{65|-}}}||{{{66|-}}}||{{{67|-}}}||{{{68|-}}}||{{{69|-}}}||{{{70|-}}}||{{{71|-}}}||{{{72|-}}}||{{#expr:{{{64|0}}}+{{{65|0}}}+{{{66|0}}}+{{{67|0}}}+{{{68|0}}}+{{{69|0}}}+{{{70|0}}}+{{{71|0}}}+{{{72|0}}}}}
 
|-
 
|-
|style="background: yellow"|'''5'''||{{{73|-}}}||{{{74|-}}}||{{{75|-}}}||{{{76|-}}}||{{{77|-}}}||{{{78|-}}}||{{{79|-}}}||{{{80|-}}}||{{{81|-}}}
+
|style="background: yellow"|'''5'''||{{{73|-}}}||{{{74|-}}}||{{{75|-}}}||{{{76|-}}}||{{{77|-}}}||{{{78|-}}}||{{{79|-}}}||{{{80|-}}}||{{{81|-}}}||{{#expr:{{{73|0}}}+{{{74|0}}}+{{{75|0}}}+{{{76|0}}}+{{{77|0}}}+{{{78|0}}}+{{{79|0}}}+{{{80|0}}}+{{{81|0}}}}}
 
|}<noinclude>
 
|}<noinclude>
  

Revision as of 20:14, 9 October 2021

D/T Terrain
Total
1 1.5 2 2.5 3 3.5 4 4.5 5
Difficulty
1 - - - - - - - - - 0
1.5 - - - - - - - - - 0
2 - - - - - - - - - 0
2.5 - - - - - - - - - 0
3 - - - - - - - - - 0
3.5 - - - - - - - - - 0
4 - - - - - - - - - 0
4.5 - - - - - - - - - 0
5 - - - - - - - - - 0

Usage

Produces a D/T grid for all combinations. If an entry is left blank, a dash is indicated.

{{DT
|t1|t1.5|t2|t2.5|t3|t3.5|t4|t4.5|t5 <!-- entries for difficulty 1 -->
|t1|t1.5|t2|t2.5|t3|t3.5|t4|t4.5|t5 <!-- entries for difficulty 1.5 -->
|t1|t1.5|t2|t2.5|t3|t3.5|t4|t4.5|t5 <!-- entries for difficulty 2 -->
|t1|t1.5|t2|t2.5|t3|t3.5|t4|t4.5|t5 <!-- entries for difficulty 2.5 -->
|t1|t1.5|t2|t2.5|t3|t3.5|t4|t4.5|t5 <!-- entries for difficulty 3 -->
|t1|t1.5|t2|t2.5|t3|t3.5|t4|t4.5|t5 <!-- entries for difficulty 3.5 -->
|t1|t1.5|t2|t2.5|t3|t3.5|t4|t4.5|t5 <!-- entries for difficulty 4 -->
|t1|t1.5|t2|t2.5|t3|t3.5|t4|t4.5|t5 <!-- entries for difficulty 4.5 -->
|t1|t1.5|t2|t2.5|t3|t3.5|t4|t4.5|t5 <!-- entries for difficulty 5 -->
}}