Pywikibot source 태그를 syntaxhighlight 태그로 교체

Jmnote (토론 | 기여)님의 2020년 11월 2일 (월) 02:39 판

1 개요

Pywikibot source 태그를 syntaxhighlight 태그로 교체 만들기
Pywikibot 태그 교체
  • 이렇게 하면 안된다. 첫번째 것을 수행하면 분류에서 사라진다.

{{ #tag: syntaxhighlight |

  1. ./pwb.py replace -always -cat:"구식 source 태그를 사용하는 문서" "</source>" "</syntaxhighlight>"
  2. ./pwb.py replace -always -cat:"구식 source 태그를 사용하는 문서" "<source " "<syntaxhighlight "

| lang=bash }}

  • 이렇게 하면 어떨까?

<syntaxhighlight lang='bash'> ./pwb.py replace -always -cat:"구식 source 태그를 사용하는 문서" "source" "syntaxhighlight" </syntaxhighlight>

→ 이거 했다고 한번 돌렸다고 끝난 게 아닐 수 있다. 아직 분류에 들어오지 않은 문서가 있을 수 있기 때문이다.
→ 분류에 들어온 것은 그럭저럭 잘 된다.
→ 잘못된 경우
→ HTML source 태그를 syntaxhight 태그로 수정
→ nodesource를 nodesyntaxhighlight로 수정
→ source directory를 syntax directory로 수정
./pwb.py replace -always -catr:"프로그래밍 언어" "source" "syntaxhighlight"

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}