テンプレート:Ifnotempty1

2015年3月14日 (土) 12:15時点におけるNijcadmin (トーク | 投稿記録)による版 (1版)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
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 "