用法

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.

模板數據

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

模板參數

參數描述類型狀態
If IP1 yes

Wikitext to display if user is not logged in

內容建議
If user2 no

Wikitext to display if user is logged in

內容建議
tagtag

Changes the HTML tag used

預設
span
範例
div
不明非必填

參見