본문으로 이동
  • 이 서버는 리버티게임의 개발용 베타 서버로, 게임 플레이 용도로 제작된 사이트가 아닙니다.
  • 리버티게임의 자동 인증된 사용자라면 개발에 필요한 관리자 권한을 신청할 수 있습니다.
  • 틀 및 기능별 소도구를 필요한 문서에만 선택적으로 로딩하는 테스트를 진행하고 있습니다. 작동하지 않는 문서가 있다면 담당자에게 알려주세요.

편집 필터 관리

버전 사이의 차이

항목Hsl0 사용자가 편집한 2024년 9월 28일 (토) 14:28 버전Hsl0 사용자가 편집한 2024년 9월 29일 (일) 02:04 버전
필터 규칙
필터 규칙:
author_regex := '\n    "author": ("(.+)"|\[(       ".+",?\n)+   \],?\n)';
old_indent_lv1 := get_matches('^\{\v(\s*)"', old_wikitext)[1];
old_author_match := get_matches(author_regex, old_wikitext)[0];
new_indent_lv1 := get_matches('^\{\v(\s*)"', new_wikitext)[1];
author_regex := '\v$1"author": ("(.+)"|\[($1$1".*",?\v)+$1\],?\n)';
old_author_match := get_matches(str_replace(author_regex, '$1', old_indent_lv1), old_wikitext)[0];
new_author_match := get_matches(str_replace(author_regex, '$1', new_indent_lv1), new_wikitext)[0];


/* 제목이 '/game.json'으로 끝나는 문서 */ page_title rlike '/game\.json$' &
/* 제목이 '/game.json'으로 끝나는 문서 */ page_title rlike '/game\.json$' &
/* 편집할 때 */ action == 'edit' &
/* 편집할 때 */ action == 'edit' &
/* JSON의 형태를 띨 때 */ new_wikitext rlike '^{(.*\n)+}$' &
/* JSON의 형태를 띨 때 */ new_wikitext rlike '^{(.*\n)+}$' &
/* 기존에 정의된 author가 있을 때 */ old_author_match &
/* 기존에 정의된 author가 있을 때 */ old_author_match &
/* author가 달라질 때 */ old_author_match != get_matches(author_regex, new_wikitext)[0]
/* author가 달라질 때 */ old_author_match != new_author_match