템플릿:존재하는 경우 리디렉션되지 않음
이 템플릿은 Lua: |
사용법
{{Imperased not redirect} 템플릿은 존재하는 페이지, 비어 있지 않은 페이지 및 리디렉션이 아닌 페이지를 식별하는 데 사용될 수 있다. {{ifexist}}
페이지가 존재하는지 여부만 확인할 것이다.
형식 사용 {{Ifexist not redirect page return if true return if false}}
. 두 번째 및 세 번째 매개 변수는 각각 참 또는 거짓인 경우 템플릿의 출력을 정의하는 데 사용된다. 정의되지 않은 경우 기본 출력은 참일 경우 "예"이고 거짓일 경우 비어 있다.
예
기존 기사(List of Doctor Who 에피소드 목록(1963–1989)):
{{Ifexist not redirect List of Doctor Who episodes (1963–1989) true false}}
: 참{{#ifexist:List of Doctor Who episodes (1963–1989) true false}}
: 참
리디렉션(Dervil 에피소드 목록):
{{Ifexist not redirect List of Daredevil episodes yes no}}
: 아니오{{#ifexist:List of Daredevil episodes yes no}}
: 예
빈 문서(템플릿:존재하지 않는 경우 리디렉션/테스트 페이지:
{{Ifexist not redirect Template:Ifexist not redirect/testpage yes no}}
: 아니오{{#ifexist:Template:Ifexist not redirect/testpage yes no}}
: 예
존재하지 않는 기사(녹색 화살표 에피소드):
{{Ifexist not redirect Green Arrow episodes 1 0}}
: 0{{#ifexist:Green Arrow episodes 1 0}}
: 0
기본 출력:
{{Ifexist not redirect List of Doctor Who episodes (1963–1989)}}
: 예{{Ifexist not redirect List of Daredevil episodes}}
: