Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 

















Wikipedia:Substitution trick







Add links
 









Project page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Some templates return a cleaned-up copy of themselves upon substitution. This is known as the substitution trickorsubst trick and is especially useful for removing unsupported parameters (which may cause a page to land in a maintenance category) or updating a template to use the current names for parameters instead of their aliases.

Module:Unsubst offers a straightforward tool to carry out the subst trick.

A prominent example of a template that can perform the substitution trick is {{Infobox album}} and some of its associated templates like {{Singles}} and {{Extra album cover}}. Other examples include most maintenance templates like {{Citation needed}} and {{Unreferenced}}, which when substituted will generally add the |date= parameter with the month and the year.


Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:Substitution_trick&oldid=1142687437"

Category: 
Wikipedia template help
 



This page was last edited on 3 March 2023, at 21:09 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki