ホーム
おまかせ表示
ログイン
設定
脳科学辞典について
免責事項
脳科学辞典
検索
テンプレート:Ifnotempty1のソースを表示
←
テンプレート:Ifnotempty1
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
<includeonly>{{{{{|safesubst:}}}{{{{{|safesubst:}}}#if:{{{1}}}|p1|p2}}|{{{1}}}|{{{2|}}}}}</includeonly><noinclude><div class="template-documentation" style="margin-top:1em;">{{#if:defaultnotblank|<div style="padding-bottom:3px; border-bottom:1px solid #aaa; margin-bottom:1ex;"> <span style="font-size:150%">Documentation</span></div>}} {{Documentation subpage}} 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== *<code><nowiki>{{ifnotempty1| p | q }}</nowiki></code> gives "{{ifnotempty1| p | q }}" *<code><nowiki>{{ifnotempty1| | q }}</nowiki></code> gives "{{ifnotempty1| | q }}" [[Category:Branching templates]]</noinclude>
テンプレート:Ifnotempty1
に戻る。