Bản mẫu:If IP/doc

Bách khoa toàn thư mở Wikipedia

Usage[sửa mã nguồn]

Example: {{If IP|text for IP users|text for logged in users}}

By default, <span>...</span> tags are used to wrap the specified content. |tag=div can be used if the content contains block-level elements.

TemplateData[sửa mã nguồn]

Displays wikitext based on whether or not a user is logged in.

Tham số bản mẫu

Tham sốMiêu tảKiểuTrạng thái
If IP1 yes

Wikitext to display if user is not logged in

Nội dungkhuyên dùng
If user2 no

Wikitext to display if user is logged in

Nội dungkhuyên dùng
tagtag

Changes the HTML tag used

Mặc định
span
Ví dụ
div
Không rõtùy chọn

See also[sửa mã nguồn]

Bản mẫu:Namespace and pagename-detecting templates