Template:Sanenull/doc
Appearance
This is a documentation subpage for Template:Sanenull. It contains usage information, categories and other content that is not part of the original template page. |
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