Editing
Template:Main other/doc
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Demospace=== For testing and demonstration purposes, this template can take a parameter named '''demospace'''. * If it has the value '''main''' it returns the article text. * It if has the value '''other''' or any other value such as the name of some other namespace it returns the other pages text. * If the parameter is empty or undefined, the actual page type determines the result. Like this: : {{tlc|main other |{{var|result if in mainspace}} |{{var|result if elsewhere}} |demospace{{=}}main}} No matter on what kind of page the code above is used, it will return: {{main other |{{var|result if in mainspace}} |{{var|result if elsewhere}} |demospace=main}} You can make it so your template also understands the '''demospace''' parameter. That means you can demonstrate the different appearances of your template in the documentation for your template: : {{tlc|main other |{{var|result if in mainspace}} |{{var|result if elsewhere}} |<nowiki>demospace={{{demospace|}}}</nowiki> }}
Summary:
By saving changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Community portal
Current events
Recent changes
Random page
Help
Donate
Tools
What links here
Related changes
Upload file
Special pages
Page information