Template:Ifsandbox
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
For differentiation whether a sandbox page or not
Usage
Template parameters
Parameter | Description | Default | Status |
---|
1 | when yes | text or action when a sandbox
-
or code
n : text is pagename without /sandbox
-
or code
doc : uses the documentation of the original page
| 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 |
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
{{IfNum}}
{{Iffile}}
{{Ifsubst}}
{{Iffileorcategory}}
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.
Retrieved from "https://commons.wikimedia.org/w/index.php?title=Template:Ifsandbox&oldid=879362504"
Category:
●Miscellaneous templates
Hidden category:
●Templates using an unknown approach for internationalisation
Navigation menu
●English
●Not logged in
●Talk
●Contributions
●Create account
●Log in
●Template
●Discussion
●View
●Edit
●History
Search
●Main page
●Welcome
●Community portal
●Village pump
●Help center
●Upload file
●Recent changes
●Latest files
●Random file
●Contact us
●What links here
●Related changes
●Special pages
●Permanent link
●Page information
●Get shortened URL
●Download QR code
●Download as PDF
●Printable version
Add links
●This page was last edited on 26 May 2024, at 04:41.
●Files are available under licenses specified on their description page. All structured data from the file namespace is available under the Creative Commons CC0 License; all unstructured text is available under the Creative Commons Attribution-ShareAlike License;
additional terms may apply.
By using this site, you agree to the Terms of Use and the Privacy Policy.
●Privacy policy
●About Wikimedia Commons
●Disclaimers
●Code of Conduct
●Developers
●Statistics
●Cookie statement
●Mobile view