「Template:Str ≧ len」の版間の差分

削除された内容 追加された内容
en:Template:Str ≥ len 16:51, 8 June 2010(UTC)よりコピー
en:Template:Str ≥ len 2013年2月26日 (火) 11:30 より
 
1行目: 1行目:
{{{{{|safesubst:}}}#ifeq: x{{{{{|safesubst:}}}#if:x|{{{1|}}}}} | x{{{{{|safesubst:}}}padleft:{{{1|}}}| {{{2|}}} }} <noinclude><!-- str >= len --></noinclude>
{{{{{|safesubst:}}}#ifexpr: {{{{{|safesubst:}}}#invoke:String|len|s={{{1|}}}}} >= {{{2|0}}} <noinclude><!-- str >= len --></noinclude>
| {{{3|}}}
| {{{3|}}}
| {{{4|}}}
| {{{4|}}}
}}<noinclude>
}}<noinclude>
{{documentation}}</noinclude>
{{documentation}}
<!-- Add categories to the /doc subpage, not here! -->
</noinclude>

2013年4月18日 (木) 07:18時点における最新版

テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

入力文字列が特定の長さ「より大きいか等しい」と「より小さい」のどちらであるかを判定するテンプレートです、

使用法[編集]

{{Str ≧ len|<文章>|<長さ>|<「より大きいか等しい」場合の出力>|<「より小さい」場合の出力>}}

使用例[編集]

  • {{Str ≧ len|Dogs chase cats|14|LONG|SHORT}} → LONG
  • {{Str ≧ len|Dogs chase cats|15|LONG|SHORT}} → LONG
  • {{Str ≧ len|Dogs chase cats|16|LONG|SHORT}} → SHORT