9번째 줄: 9번째 줄:
 
  <nowiki>{{#if: | yes }} → 빈 문자열</nowiki>
 
  <nowiki>{{#if: | yes }} → 빈 문자열</nowiki>
  
 +
* 32%
 
<div style="
 
<div style="
 
   width: 100px;
 
   width: 100px;
26번째 줄: 27번째 줄:
 
   line-height: normal;
 
   line-height: normal;
 
">32%</span></div>
 
">32%</span></div>
 +
 +
* 64%
 +
<div style="
 +
  width: 100px;
 +
  height: 100px;
 +
  background:
 +
    radial-gradient(
 +
      white {{#expr: sqrt(2) / 2 * 100  * (50 / 100)}}%,
 +
      transparent {{#expr: sqrt(2) / 2 * 100  * (50 / 100) + 1}}%,
 +
      transparent {{#expr: sqrt(2) / 2 * 100 - 1}}%,
 +
      white {{#expr: sqrt(2) / 2 * 100}}%
 +
    ),
 +
    conic-gradient(yellowgreen {{#expr: 64 - 1}}%, #eee 64%);
 +
  text-align: center;
 +
  line-height: 100px;
 +
"><span style="
 +
  display: inline-block;
 +
  line-height: normal;
 +
">64%</span></div>

2020년 4월 12일 (일) 19:24 판

  • 계산식
{{#expr: 1 + 1}} → 2
  • 문자열 조건문
{{#if: something | yes | no }} → yes
{{#if: | yes | no }} → no
{{#if: something | yes }} → yes
{{#if: | yes }} → 빈 문자열
  • 32%
32%
  • 64%
64%