Template:Sanenull
Jump to navigation
Jump to search
@@null@@
This template was created due to apparent limitations in how media-wiki handles "blank" vs null parameters passed as a template parameter.
The template forces a "known" value of @@null@@ where a parameter is not supplied, blank or empty.
Usage
[edit]{{sanenull|expr}} at the point in the markup where a known value is needed.
The output is
- {{sanenull|}} : @@null@@
- {{sanenull|1=}} : @@null@@
- {{sanenull|1=value}} :value
- {{sanenull|value}} : value