본문으로 건너뛰기
사용자

o00o/연습장3(r65판 Blame)

r65
r65
1## a_i{?} = {?}번째 &/*의 위치
2{{{#!if (a_c1=설명.indexOf("&",0)), (a_s1=설명.indexOf("*",0)), (a_c1 = (a_c1 == -1 ? 999 : a_c1)), (a_s1 = (a_s1 == -1 ? 999 : a_s1)), (a_i1 = (a_s1 < a_c1 ? a_s1 : a_c1))
3}}}{{{#!if (a_c2=설명.indexOf("&",a_i1+1)), (a_s2=설명.indexOf("*",a_i1+1)), (a_c2 = (a_c2 == -1 ? 999 : a_c2)), (a_s2 = (a_s2 == -1 ? 999 : a_s2)), (a_i2 = (a_s2 < a_c2 ? a_s2 : a_c2))
4}}}{{{#!if (a_c3=설명.indexOf("&",a_i2+1)), (a_s3=설명.indexOf("*",a_i2+1)), (a_c3 = (a_c3 == -1 ? 999 : a_c3)), (a_s3 = (a_s3 == -1 ? 999 : a_s3)), (a_i3 = (a_s3 < a_c3 ? a_s3 : a_c3))
5}}}{{{#!if (a_c4=설명.indexOf("&",a_i3+1)), (a_s4=설명.indexOf("*",a_i3+1)), (a_c4 = (a_c4 == -1 ? 999 : a_c4)), (a_s4 = (a_s4 == -1 ? 999 : a_s4)), (a_i4 = (a_s4 < a_c4 ? a_s4 : a_c4))
6}}}{{{#!if (a_c5=설명.indexOf("&",a_i4+1)), (a_s5=설명.indexOf("*",a_i4+1)), (a_c5 = (a_c5 == -1 ? 999 : a_c5)), (a_s5 = (a_s5 == -1 ? 999 : a_s5)), (a_i5 = (a_s5 < a_c5 ? a_s5 : a_c5))
7}}}{{{#!if (a_c6=설명.indexOf("&",a_i5+1)), (a_s6=설명.indexOf("*",a_i5+1)), (a_c6 = (a_c6 == -1 ? 999 : a_c6)), (a_s6 = (a_s6 == -1 ? 999 : a_s6)), (a_i6 = (a_s6 < a_c6 ? a_s6 : a_c6))
8}}}{{{#!if (a_c7=설명.indexOf("&",a_i6+1)), (a_s7=설명.indexOf("*",a_i6+1)), (a_c7 = (a_c7 == -1 ? 999 : a_c7)), (a_s7 = (a_s7 == -1 ? 999 : a_s7)), (a_i7 = (a_s7 < a_c7 ? a_s7 : a_c7))
9}}}{{{#!if (a_c8=설명.indexOf("&",a_i7+1)), (a_s8=설명.indexOf("*",a_i7+1)), (a_c8 = (a_c8 == -1 ? 999 : a_c8)), (a_s8 = (a_s8 == -1 ? 999 : a_s8)), (a_i8 = (a_s8 < a_c8 ? a_s8 : a_c8))
10}}}{{{#!if (a_c9=설명.indexOf("&",a_i8+1)), (a_s9=설명.indexOf("*",a_i8+1)), (a_c9 = (a_c9 == -1 ? 999 : a_c9)), (a_s9 = (a_s9 == -1 ? 999 : a_s9)), (a_i9 = (a_s9 < a_c9 ? a_s9 : a_c9))
11## a_r{?} = {?}번째 &/* 사이에 있는 문자열
12}}}{{{#!if (a_r0=설명.substring(0, a_i1))
13}}}{{{#!if (a_r1=설명.substring(a_i1+1, a_i2))
14}}}{{{#!if (a_r2=설명.substring(a_i2+1, a_i3))
15}}}{{{#!if (a_r3=설명.substring(a_i3+1, a_i4))
16}}}{{{#!if (a_r4=설명.substring(a_i4+1, a_i5))
17}}}{{{#!if (a_r5=설명.substring(a_i5+1, a_i6))
18}}}{{{#!if (a_r6=설명.substring(a_i6+1, a_i7))
19}}}{{{#!if (a_r7=설명.substring(a_i7+1, a_i8))
20}}}{{{#!if (a_r8=설명.substring(a_i8+1, a_i9))
21## type_clr = 카드 종류 별 상징 색상
22## star_display = 표에서 "별" 칸의 표시 여부
23## img_display = 표에서 이미지 표시 여부
24}}}{{{#!if (종류=="아이언클래드" && (type_clr="#831001", cost_file="sts2_ironclad_cost"))||(종류=="사일런트" && (type_clr="#179b05"))||(종류=="디펙트" && (type_clr="#0398e2"))||(종류=="네크로바인더" && (type_clr="#8f425e", cost_file="sts2_necrobinder_cost"))||(종류=="리젠트" && (type_clr="#ac5b00"))||(종류=="무색" && (type_clr="#808080"))||(!type_clr && (type_clr="#000000"), !cost_file && (cost_file="sts2_ironclad_cost"))
r45
25}}}{{{#!if (star_display = (!별 ? "none" : "display")), (img_display = (!사진 ? "none" : "display"))
r2
26}}}{{{#!style
r38
27table.sts-table { background: transparent; border: 2px solid @type_clr@;}
r65
28.sts-title, .sts-index, .sts-star-index { background: @type_clr@4D; }
29.sts-index, .sts-star-index { padding: 0 2px !important; }
30.sts-full-content { min-width: 140px; width: 170px; }
r38
31.sts-star-index, .sts-star-value { display: @star_display@; }
r45
32.sts-img { display: @img_display@;}
r65
33.sts-cost-container { display:inline-flex; height: 1.2em; vertical-align: sub;}
r2
34}}}
r45
35||<|4><tableclass=sts-table><class=sts-img><nopad><width=250> [[파일:@사진@|width=100%]] ||<-5><class=sts-title><height=50> '''{{{+1 @이름=?@}}}'''[br]{{{#!if 영어이름
r40
36{{{#!wiki style="font-size: 0.8em;"
r38
37(@영어이름@)
r40
38}}}}}} ||
r65
39||<width=70><class=sts-index><height=40> '''비용'''{{{#!wiki class="sts-cost-container"
40[[파일:@[email protected]|height=100%]]}}} || @비용=?@ ||<width=50><class=sts-star-index> '''별'''{{{#!wiki class="sts-cost-container"
41[[파일:sts2_regent_star.webp|height=100%]]}}} ||<class=sts-star-value> @별@ ||
42||<class=sts-index> '''효과''' ||<-3><class=sts-full-content> {{{#!html @a_r0@
43}}}{{{#!if 설명.substring(a_i1, a_i1+1) == "&"
44{{{#!wiki class="sts-cost-container"
45(코스트)
46}}}}}}{{{#!if 설명.substring(a_i1, a_i1+1) == "*"
47{{{#!wiki class="sts-cost-container"
48(별)
49}}}}}}{{{#!html @a_r1@
50}}}{{{#!if 설명.substring(a_i2, a_i2+1) == "&"
51{{{#!wiki class="sts-cost-container"
52(코스트)
53}}}}}}{{{#!if 설명.substring(a_i2, a_i2+1) == "*"
54{{{#!wiki class="sts-cost-container"
55(별)
56}}}}}}{{{#!html @a_r2@
57}}}{{{#!if 설명.substring(a_i3, a_i3+1) == "&"
58{{{#!wiki class="sts-cost-container"
59(코스트)
60}}}}}}{{{#!if 설명.substring(a_i3, a_i3+1) == "*"
61{{{#!wiki class="sts-cost-container"
62(별)
63}}}}}}{{{#!html @a_r3@
64}}}{{{#!if 설명.substring(a_i4, a_i4+1) == "&"
65{{{#!wiki class="sts-cost-container"
66(코스트)
67}}}}}}{{{#!if 설명.substring(a_i4, a_i4+1) == "*"
68{{{#!wiki class="sts-cost-container"
69(별)
70}}}}}}{{{#!html @a_r4@
71}}}{{{#!if 설명.substring(a_i5, a_i5+1) == "&"
72{{{#!wiki class="sts-cost-container"
73(코스트)
74}}}}}}{{{#!if 설명.substring(a_i5, a_i5+1) == "*"
75{{{#!wiki class="sts-cost-container"
76(별)
77}}}}}}{{{#!html @a_r5@
78}}}{{{#!if 설명.substring(a_i6, a_i6+1) == "&"
79{{{#!wiki class="sts-cost-container"
80(코스트)
81}}}}}}{{{#!if 설명.substring(a_i6, a_i6+1) == "*"
82{{{#!wiki class="sts-cost-container"
83(별)
84}}}}}}{{{#!html @a_r6@
85}}}{{{#!if 설명.substring(a_i7, a_i7+1) == "&"
86{{{#!wiki class="sts-cost-container"
87(코스트)
88}}}}}}{{{#!if 설명.substring(a_i7, a_i7+1) == "*"
89{{{#!wiki class="sts-cost-container"
90(별)
91}}}}}}{{{#!html @a_r7@
92}}}{{{#!if 설명.substring(a_i8, a_i8+1) == "&"
93{{{#!wiki class="sts-cost-container"
94(코스트)
95}}}}}}{{{#!if 설명.substring(a_i8, a_i8+1) == "*"
96{{{#!wiki class="sts-cost-container"
97(별)
98}}}}}}{{{#!html @a_r8@
99}}} ||
100||<class=sts-index><height=60> '''강화''' ||<-3><class=sts-full-content> {{{#!if 강화
101{{{#!html @강화@
102}}}}}}{{{#!if 강화1
103{{{#!html @강화1@
104}}}}}}{{{#!if 강화비용1 || 강화별1
105{{{#!wiki class="sts-cost-container"
106{{{#!if (+강화비용1>=1)
107[[파일:@[email protected]|height=100%]]}}}{{{#!if (+강화비용1>=2)
108[[파일:@[email protected]|height=100%]]}}}{{{#!if (+강화비용1>=3)
109[[파일:@[email protected]|height=100%]]}}}{{{#!if (+강화별1>=1)
110[[파일:sts2_regent_star.webp|height=100%]]}}}{{{#!if (+강화별1>=2)
111[[파일:sts2_regent_star.webp|height=100%]]}}}{{{#!if (+강화별1>=3)
112[[파일:sts2_regent_star.webp|height=100%]]}}}}}}
113}}}{{{#!if 강화2
114{{{#!html @강화2@
115}}}}}}{{{#!if 강화비용2 || 강화별2
116{{{#!wiki class="sts-cost-container"
117{{{#!if (+강화비용2>=1)
118[[파일:@[email protected]|height=100%]]}}}{{{#!if (+강화비용2>=2)
119[[파일:@[email protected]|height=100%]]}}}{{{#!if (+강화비용2>=3)
120[[파일:@[email protected]|height=100%]]}}}{{{#!if (+강화별2>=1)
121[[파일:sts2_regent_star.webp|height=100%]]}}}{{{#!if (+강화별2>=2)
122[[파일:sts2_regent_star.webp|height=100%]]}}}{{{#!if (+강화별2>=3)
123[[파일:sts2_regent_star.webp|height=100%]]}}}}}}
124}}}{{{#!if 강화3
125{{{#!html @강화3@
r46
126}}}}}} ||
r65
127[include(틀:Slay the Spire 2/카드/설명 문서)]