Template:Sane/doc
This is a documentation subpage for Template:Sane It contains usage information, categories and other content that is not part of the original template page. |
Usage edit
{{sane|expr}}
at the point in the markup where a known value is needed.
The output is
{{sane}}
: @@absent@@{{sane|}}
: @@empty@@{{sane|1=}}
: @@empty@@{{sane|1=value}}
: value{{sane|value}}
: value
See also edit
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 @@empty@@ where a parameter is blank or empty.