Template:Ifsandbox/doc: Difference between revisions
More actions
m +link |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
|1 = | |1 = | ||
|1label = when yes | |1label = when yes | ||
|1d-en = text or action when a sandbox<br> | |1d-en = text or action when a sandbox<br /> | ||
* ''or code'' <code>n</code>: text is pagename without < | * ''or code'' <code>n</code>: text is pagename without <code>/sandbox</code> | ||
* ''or code'' <code>doc</code>: uses the documentation of the original page | * ''or code'' <code>doc</code>: uses the documentation of the original page | ||
|1d-td = Wert wenn sandbox | |1d-td = Wert wenn sandbox | ||
| Line 46: | Line 46: | ||
|shorthand = | |shorthand = | ||
|setscats = | |setscats = | ||
|seealso = *{{T|Ifsvg}}<br> | |seealso = *{{T|Ifsvg}}<br /> | ||
*{{T|IfNum}}<br> | *{{T|IfNum}}<br /> | ||
*{{T|Iffile}}<br> | *{{T|Iffile}}<br /> | ||
*{{T|Ifsubst}}<br> | *{{T|Ifsubst}}<br /> | ||
*{{T|Iffileorcategory}} | *{{T|Iffileorcategory}} | ||
|type = | |type = | ||
| Line 61: | Line 61: | ||
The template becomes useful when special actions, as e.g. the {{T0|Protected|protection flag}}, should occur differently from the original or the sandbox page.<br> | The template becomes useful when special actions, as e.g. the {{T0|Protected|protection flag}}, should occur differently from the original or the sandbox page.<br /> | ||
Because there is no namespace for sandboxes, an analyzing of the pagename is necessry. | Because there is no namespace for sandboxes, an analyzing of the pagename is necessry. | ||
| Line 77: | Line 77: | ||
<includeonly> | <includeonly> | ||
[[Category: | [[Category:Commons templates]] | ||
</includeonly> | </includeonly> | ||
Latest revision as of 09:20, 24 April 2025
For differentiation whether a sandbox page or not
Usage
{{Ifsandbox |1= |2= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | when yes | text or action when a sandbox
| empty | suggested |
2 | when not | text or action when not a sandbox | empty | optional |
m | correction | replaces the item number, e.g. 2 to check if has another subpagename | 1 | optional |
b | prefix | a prefixing for PAGENAME: base, full, subject, sub | empty | optional |
Additional information
The template is intended to be used in the following namespaces: no namespace specified
The template is intended to be used by the following user groups: no user group specified
See also
The template becomes useful when special actions, as e.g. the protection flag, should occur differently from the original or the sandbox page.
Because there is no namespace for sandboxes, an analyzing of the pagename is necessry.
Code n
With the code n always the original pagename is shown, independent whether it is from the original or the sandbox page.
Documentation
With {{Documentation|{{ifsandbox|doc}}}} always the original docu is shown, independent whether it is from the original or the sandbox page.
Parameter m
With an m greater than the default value 1, more titleparts can be removed, e.g. for xxxx/sandbox/en.
Parameter b
With this parameter the variable "PAGENAME" can be prefixed; the value is case-insensitive.