r43 vs r44
......
521521
이렇게 하기에는 작업이 오래 걸려서 --귀찮--어려우므로, 응용만 해볼 수 있다면 [[틀:도트]]같은 틀을 만들어놓고 직접 그려볼 수 있다.
522522
523523
== style ==
524
Backend: 4200ff9; Frontend: bda2cf7; 업데이트가 있을 때 추가된 문법으로 추정된다. 앞의 위키(wiki)와는 다르게 여러 가지를 설정한 구성 한 덩어리를 하나의 이름으로 저장할 수 있는 문법이다. [[https://namu.wiki/thread/ExuberantUptightJoblessBeggar#31|시범을 보이는 댓글]]에서 보다시피 스레드에도 지원이 마찬가지로 wiki 계열과 연동된다. 특이하게 구성을 잘 살펴보면 html(hypertext markup language)에서 '''t'''able '''r'''ow, '''t'''able '''d'''ata를 줄여 tr, td로 부르는 부분 볼 수 있다.
524
Backend: 4200ff9; Frontend: bda2cf7; 업데이트가 있을 때 추가된 문법으로 추정된다. 앞의 위키(wiki)와는 다르게 여러 가지를 설정한 구성뭉치를 하나의 이름으로 저장할 수 있는 문법이다. [[https://namu.wiki/thread/ExuberantUptightJoblessBeggar#31|시범을 보이는 댓글]]에서 보다시피 스레드에도 지원이 되는 점을 보면 일반적인 \{{{#!wiki \}}} 로 마감되는 문법들과 연동된다. 특이하게 구성을 잘 살펴보면 html(hypertext markup language)에서 '''t'''able '''r'''ow, '''t'''able '''d'''ata를 줄여 tr, td로 부르는 부분 tbady를 볼 수 있다. 당연하겠지만 꾸미기에는 CSS가 들어가 있다.
525525
526
=== if 문법과 연동 ===
527
놀랍게도 if 문법과 연동된다. 예를 들어 앞에 시범을 보이는 댓글에서
528
>{{{#!wiki style="display: inline; font-family: monospace;"
529
\{{{#!style
530
/* scoped styles are not supported */
531
table.colored > tbody > tr > td:first-of-type {
532
font-weight: bold;
533
}
534
table.colored > tbody > tr:nth-of-type(3n) > td:first-of-type {
535
color: red;
536
}
537
table.colored > tbody > tr:nth-of-type(3n + 1) > td:first-of-type {
538
color: lime;
539
}
540
table.colored > tbody > tr:nth-of-type(3n + 2) > td:first-of-type {
541
color: blue;
542
}
543
544
/* media query is not supported */
545
@theseed-dark-mode {
546
table.colored > tbody > tr:nth-of-type(3n) > td:first-of-type {
547
color: maroon;
548
}
549
table.colored > tbody > tr:nth-of-type(3n + 1) > td:first-of-type {
550
color: green;
551
}
552
table.colored > tbody > tr:nth-of-type(3n + 2) > td:first-of-type {
553
color: navy;
554
}
555
}
556
\}}}\ }}}
557
라는 문법을 --쓰기 귀찮아서-- if와 연동한다 할 때
558
>{{{#!wiki style="display: inline; font-family: monospace;"
559
\{{{#!if s="table.colored > tbody > tr", n=":nth-of-type"
560
\}}}\{{{#!style
561
/* scoped styles are not supported */
562
--table.colored > tbody > tr--@@_@s@ > td:first-of-type {
563
font-weight: bold;
564
}
565
--table.colored > tbody > tr--@@_@s@--:nth-of-type--@@_@n@(3n) > td:first-of-type {
566
color: red;
567
}
568
--table.colored > tbody > tr--@@_@s@--:nth-of-type--@@_@n@(3n + 1) > td:first-of-type {
569
color: lime;
570
}
571
--table.colored > tbody > tr--@@_@s@--:nth-of-type--@@_@n@(3n + 2) > td:first-of-type {
572
color: blue;
573
}
574
575
/* media query is not supported */
576
@theseed-dark-mode {
577
--table.colored > tbody > tr--@@_@s@--:nth-of-type--@@_@n@(3n) > td:first-of-type {
578
color: maroon;
579
}
580
--table.colored > tbody > tr--@@_@s@--:nth-of-type--@@_@n@(3n + 1) > td:first-of-type {
581
color: green;
582
}
583
--table.colored > tbody > tr--@@_@s@--:nth-of-type--@@_@n@(3n + 2) > td:first-of-type {
584
color: navy;
585
}
586
}
587
\}}}\ }}}
588
식으로 줄여
589
>{{{#!wiki style="display: inline; font-family: monospace;"
590
\{{{#!if s="table.colored > tbody > tr", n=":nth-of-type"
591
\}}}\{{{#!style
592
/* scoped styles are not supported */
593
@@_@s@ > td:first-of-type {
594
font-weight: bold;
595
}
596
@@_@s@@@_@n@(3n) > td:first-of-type {
597
color: red;
598
}
599
@@_@s@@@_@n@(3n + 1) > td:first-of-type {
600
color: lime;
601
}
602
@@_@s@@@_@n@(3n + 2) > td:first-of-type {
603
color: blue;
604
}
605
606
/* media query is not supported */
607
@theseed-dark-mode {
608
@@_@s@@@_@n@(3n) > td:first-of-type {
609
color: maroon;
610
}
611
@@_@s@@@_@n@(3n + 1) > td:first-of-type {
612
color: green;
613
}
614
@@_@s@@@_@n@(3n + 2) > td:first-of-type {
615
color: navy;
616
}
617
}
618
\}}}\ }}}
619
처럼 표현해도 동작이 된다.
620
{{{#!folding 테스트 보기 [펼치기 · 접기]
621
{{{#!if s="table.colored > tbody > tr", n=":nth-of-type"
622
}}}{{{#!style
623
/* scoped styles are not supported */
624
@s@ > td:first-of-type {
625
font-weight: bold;
626
}
627
@s@@n@(3n) > td:first-of-type {
628
color: red;
629
}
630
@s@@n@(3n + 1) > td:first-of-type {
631
color: lime;
632
}
633
@s@@n@(3n + 2) > td:first-of-type {
634
color: blue;
635
}
636
637
/* media query is not supported */
638
@theseed-dark-mode {
639
@s@@n@(3n) > td:first-of-type {
640
color: maroon;
641
}
642
@s@@n@(3n + 1) > td:first-of-type {
643
color: green;
644
}
645
@s@@n@(3n + 2) > td:first-of-type {
646
color: navy;
647
}
648
}
649
}}}
650
||<tableclass=colored><table width=100%><table bgcolor=#ffffff,#2d2f34><table color=#212529,#e0e0e0><colbgcolor=#ffffff,#000000> 1 ||1 ||
651
|| 2 ||2 ||
652
|| 3 ||3 ||
653
|| 4 ||4 ||
654
|| 5 ||5 ||
655
|| 6 ||6 ||
656
|| 7 ||7 ||
657
|| 8 ||8 ||
658
|| 9 ||9 ||
659
|| 10 ||10 ||
660
}}}
661
526662
{{{#!wiki sytle="display:none"
527663
[각주]}}}