Difference between revisions of "Template:If IP/doc"
Jump to navigation
Jump to search
imported>Sdkb (Creating documentation) |
imported>Sdkb (→Usage: adding example) |
||
| Line 2: | Line 2: | ||
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
== Usage == | == Usage == | ||
| − | + | Example: {{tlx|If IP|text for IP users|text for logged in users}} | |
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
| Line 18: | Line 18: | ||
"2": { | "2": { | ||
"label": "If user", | "label": "If user", | ||
| − | "description": "Wikitext to display if user is logged in" | + | "description": "Wikitext to display if user is logged in", |
| + | "type": "content" | ||
} | } | ||
}, | }, | ||
Revision as of 07:52, 16 June 2020
| 40px | This is a documentation subpage for Template:If IP. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Example: {{If IP|text for IP users|text for logged in users}}
Displays wikitext based on whether or not a user is logged in.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| If IP | 1 | Wikitext to display if user is not logged in | Content | optional |
| If user | 2 | Wikitext to display if user is logged in | Content | optional |