706 B
706 B
{{ if or (eq (index .Params 1) "widescreen") (not (index .Params 1) ) }}
{{ $.Scratch.Add "ratio" 56.25 }}
{{ else if eq (index .Params 1) "standard" }}
{{ $.Scratch.Add "ratio" 75 }}
{{ else }}
{{ $nums := split (index .Params 1) ":" }}
{{ $.Scratch.Add "ratio" (div (mul (int (index $nums 1)) 100.0) (int (index $nums 0))) }}
{{ end }}