틀:Tag
보이기
<tag>...</tag>
이 틀은 미리 서식이 지정된 방식으로 XML 스타일 태그를 언급하는 빠른 방법을 제공합니다. 주로 토론/도움말 문서에서 사용됩니다.
사용법
[+/-]- 첫번째 변수 - (필수) HTML 태그의 이름
- 2번째 변수 - 표시할 태그 유형:
- p 또는 pair - (기본값) 일치하는 열기 및 닫기 태그 양쪽을 표시합니다:
<font>...</font> - o 또는 open - 열기 및 닫기 양쪽의 열기 태그만 표시합니다:
<span> - c 또는 close - 열기 및 닫기 양쪽의 닫기 태그만 표시합니다:
</span> - s 또는 single - 단일 태그를 표시합니다:
<br />
- p 또는 pair - (기본값) 일치하는 열기 및 닫기 태그 양쪽을 표시합니다:
- 목차= - 태그의 본문 내용
- 변수= - 여는 태그에 포함될 매개변수
예시
[+/-]{{tag|ref}}→<ref>...</ref>{{tag|ref|content=hello}}→<ref>hello</ref>{{tag|font|content=foo}}→<font>foo</font>{{tag|font|open}}→<font>{{tag|font|open|content=hello}}→<font>hello{{tag|span|close|content=hello}}→hello</span>{{tag|span|pair|content=hello}}→<span>hello</span>{{tag|ref|open|params=group=note}}→<ref group=note>{{tag|references|single}}→<references />{{tag|br|single}}→<br />