본문으로 건너뛰기
사용자

nyangx3/a(비교)

r55 vs r56
......
55
## {{{#!if (+if) == 2
66
* '''다크 모드 대응'''^^'''{{{-2 [[#정규식 치환|#사용법]]}}}'''^^
77
{{{#!wiki style="display: inline; @style1@"
8
((color=)(#[a-f0-9]{3}|#[a-f0-9]{6})(>))|((\\{\\{\\{)(#[a-f0-9]{3}|#[a-f0-9]{6})(\\s))}}} → {{{#!wiki style="display: inline; @style1@"
9
$2$6$3$7,$3$7$4$8}}}
8
((color=)(#[a-f0-9]{3}|#[a-f0-9]{6}|(?!(transparent))[a-z]{3,20})(>))|((\\{\\{\\{)(#[a-f0-9]{3}|#[a-f0-9]{6}|#[a-z]{3,20})(\\s))}}} → {{{#!wiki style="display: inline; @style1@"
9
$2$7$3$8,$3$8$5$9}}}
1010
* 표 속 접기 문법 {{{#!wiki style="background: #bfe9d5; letter-spacing: -.5px; border-radius: .25rem; padding: .125rem .25rem .2rem; font-family: ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; font-size: .75rem; max-width: fit-content" dark-style="background: #383b40"
1111
{️{{#!wiki style="margin: 0 -10px -5px; min-height: calc(1.5em + 5px)"
1212
{️{{#!folding ᅠ[ 펼치기 · 접기 ]
......
7676
.*}}} 부분을 클릭하여 활성화한다.(정규식 모드)
7777
그 뒤 아래의 것들을 찾기/바꾸기 칸에 적절히 입력한 뒤, 바꾸기 칸 옆에 있는 '모두 바꾸기' 버튼을 누른다.
7878
* 다크 모드 대응 {{{#!wiki style="display: inline; @style1@"
79
((color=)(#[a-f0-9]{3}|#[a-f0-9]{6})(>))|((\{\{\{)(#[a-f0-9]{3}|#[a-f0-9]{6})(\\s))}}} → {{{#!wiki style="display: inline; @style1@"
80
$2$6$3$7,$3$7$4$8}}} [a-z]{3,20}를 넣어 명명된 색상[* red, transparent 등] 선택하게 할 수 있겠지만, 그럴 경우 고려사항이 많아진다. 굳이 넣겠다면 그냥 모든 명명된 색상을[*이렇게 aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent] 적어버리면 된다.
79
((color=)(#[a-f0-9]{3}|#[a-f0-9]{6}|(?!(transparent))[a-z]{3,20})(>))|((\\{\\{\\{)(#[a-f0-9]{3}|#[a-f0-9]{6}|#[a-z]{3,20})(\\s))}}} → {{{#!wiki style="display: inline; @style1@"
80
$2$7$3$8,$3$8$5$9}}} 명명된 색상[* red, transparent 등]만을 선택하게 할 수 있겠지만, 그럴 경우 모든 명명된 색상을[*이렇게 aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent] 적어버리면 된다.
8181
* <nopad> 치환 {{{#!wiki style="display: inline; @style1@"
8282
(\\|\\|(<.*?>)?)(\\s*)\\{{3}#!wiki[-\\s]*style\\s*="\\s*margin\\s*:\\s*-[56]px\\s*-10px\\s*((-[56]px\\s*)?|(-[56]px\\s*-10px))?;?\\s*"\\s*\\n\\s*(\\[\\[\\s*파일:.*?\\]\\]|\\[\\[.*?\\|\\[\\[\\s*파일:.*?\\]\\]\\]\\]|\\[(include|youtube|navertv|nicovideo|vimeo)\\(.*?\\)\\])\\s*\\}{3}\\s*\\|\\|}}} → {{{#!wiki style="display: inline; @style1@"
8383
$1<nopad> $7 ||}}}
......