Template:If IP

From Cibernética Americana
Revision as of 07:48, 30 September 2024 by Root (talk | contribs) (Created page with "{{#if:{{{1|{{{yes|<noinclude>a</noinclude>}}}}}}|<{{{tag|span}}} class="anonymous-show">{{{1|{{{yes|<noinclude>You are not logged in.</noinclude>}}}}}}</{{{tag|span}}}>}}{{#if:{{{2|{{{no|<noinclude>a</noinclude>}}}}}}|<{{{tag|span}}} class="user-show">{{{2|{{{no|<noinclude>You are currently logged in.</noinclude>}}}}}}</{{{tag|span}}}>}}<noinclude> {{Documentation}} </noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

You are not logged in.You are currently logged in.

[edit] [[[:Template:Purge]]] Template documentation

Template:Documentation subpage Template:Never substitute

Usage

Example: Template:Tlx

By default, Template:Tag tags are used to wrap the specified content. |tag=div can be used if the content contains block-level elements.

TemplateData

<templatedata> { "params": { "1": { "label": "If IP", "description": "Wikitext to display if user is not logged in", "type": "content", "suggested": true, "aliases": [ "yes" ] }, "2": { "label": "If user", "description": "Wikitext to display if user is logged in", "type": "content", "suggested": true, "aliases": [ "no" ] }, "tag": { "description": "Changes the HTML tag used", "example": "div", "default": "span" } }, "description": "Displays wikitext based on whether or not a user is logged in." } </templatedata>

See also

Template:Namespace and pagename-detecting templates

Template:Sandbox other