「テンプレート:Ifnotempty1」の版間の差分
ナビゲーションに移動
検索に移動
細 (1版) |
(相違点なし)
|
2015年3月14日 (土) 12:15時点における最新版
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 "