Template:Ifsandbox

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Ifsandbox/doc.

For differentiation whether a sandbox page or not

Usage

{{Ifsandbox |1= |2= }}

Template parameters

ParameterDescriptionDefaultStatus
1when yestext or action when a sandbox
  • or code n: text is pagename without /sandbox
  • or code doc: uses the documentation of the original page
emptysuggested
2when nottext or action when not a sandboxemptyoptional
mcorrectionreplaces the item number, e.g. 2 to check if has another subpagename1optional
bprefixa prefixing for PAGENAME: base, full, subject, subemptyoptional

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.