Template:Ifnotempty1: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
use std template
 
m 1 revision imported
 
(No difference)

Latest revision as of 23:55, 24 January 2026

Template documentation

This is a version of Template:Ifnotempty with the condition-string equal to the then-part. In this case using this separate template is especially useful if the expansion of the condition-string/then-part gives a large preprocessor node count, as it avoids doubling this amount.

Spaces and newlines are ignored for the condition, but preserved in the result.

Usage

  • {{ifnotempty1| p | q }} gives " p "
  • {{ifnotempty1| | q }} gives " q "