ヘルプ:CheckExtendedFunctions

投稿日:

← 古い版 2022年4月12日 (火) 09:24時点における版
1行目: 1行目:
http://metabolomics.jp/wiki/Help:CheckExtendedFunctions
+
=car=
  +
{{#car:A B C D E}}
  +
 
  +
=cdr=
  +
{{#cdr:A B C D E}}
  +
 
  +
=cadr=
  +
{{#cadr:A B C D E}}
  +
 
  +
=cddr=
  +
{{#cddr:A B C D E}}
  +
 
  +
=caddr=
  +
{{#caddr:A B C D E}}
  +
 
  +
=cdddr=
  +
{{#cdddr:A B C D E}}
  +
 
  +
=and=
  +
1,2,3 and 1,3,4 -> {{#and:1
  +
2
  +
4|1
  +
3
  +
4}}
  +
 
  +
=or=
  +
1,2,3 or 1,3,4 -> {{#or:1
  +
2
  +
4|1
  +
3
  +
4}}
  +
 
  +
=def=
  +
{{#def:variable|ThisIsDefFunction}}
  +
 
  +
=var=
  +
{{#var:variable}}
  +
 
  +
=substring=
  +
{{#substring:substring|1|5}}
  +
 
  +
=trim=
  +
<nowiki>:</nowiki>{{#trim:  a
  +
}}:
  +
 
  +
<span style="color: red">※「:」と「a」の間のスペース、タブ、改行を消しています。</span>
  +
 
  +
=length=
  +
{{#length:0123456789}}
  +
 
  +
=count=
  +
{{#count:abcabcabca|a}}
  +
 
  +
=indexof=
  +
{{#indexOf:Hello world|wor}}
  +
{{#indexOf:Hello world}}
  +
 
  +
=lastindexof=
  +
{{#lastIndexOf:abc abc abc|abc}}
  +
{{#lastIndexOf:abc abc abc}}
  +
 
  +
=isdigit=
  +
{{#isdigit:1234567890|This is digit|This is not digit}}
  +
{{#isdigit:123abc456|This is not alphanumeric|This is alphanumeric}}
  +
 
  +
=isalnum=
  +
{{#isalnum:123abc456|This is alphanumeric|This is not alphanumeric}}
  +
{{#isalnum:*123abc456*|This is alphanumeric|This is not alphanumeric}}
  +
 
  +
=replace=
  +
{{#replace:abcdefghi|def|123}}
  +
{{#replace:a b c d| |1}}
  +
 
  +
=cr=
  +
a{{#cr:}}{{#cr:}}b
  +
 
  +
<span style="color: red">※「a」と「b」の間の二つ改行を出力しています。</span>
  +
 
  +
=bar=
  +
{{#bar:}}
  +
 
  +
=forcedbr=
  +
{{#forcedBR:123456789012345678901234567890123456789012345678901234567890|10}}
  +
 
  +
<span style="color: red">※10桁ごとに<wbr />を挿入しています。</span>
  +
 
  +
=repeat=
  +
{{#repeat:RepeatTemplate|3|a,b,c,d,e,f,g,h,i|,}}
  +
 
  +
<span style="color: red">※「Template:RepeatTemplate」の記述が3回出力されます。</span>
  +
 
  +
=repeatnum=
  +
{{#repeatnum:RepeatTemplate|3|a,b,c,d,e,f,g,h,i|,}}
  +
 
  +
<span style="color: red">※「Template:RepeatTemplate」の記述が3回出力されます。</span>
  +
 
  +
=ifexistfile=
  +
{{#ifexistfile:index.html}}
  +
 
  +
<span style="color: red">※環境により表示結果が異なります。ここではTOPページより「トップ」と言う文字列が含まれる行を検索しています。</span>
  +
 
  +
=searchtitle=
  +
{{#searchtitle:Sandbox|Main}}
  +
 
  +
<span style="color: red">※環境により表示結果が異なります。ここではタイトルにSandboxと言う文字列が含まれるページ名を検索しています。</span>
  +
 
  +
<span style="color: red">※環境により表示結果が異なります。ここではTOPページより「トップ」と言う文字列が含まれる行数をカウントしています。</span>
  +
 
  +
=counttitle=
  +
{{#counttitle:Sandbox|Main}}
  +
 
  +
<span style="color: red">※環境により表示結果が異なります。ここではタイトルにSandboxと言う文字列が含まれるページ数をカウントしています。</span>
  +
 
  +
=choose=
  +
{{#choose:abc1
  +
def2
  +
1234|1}}
  +
 
  +
=clink=
  +
{{#clink:FL}}
  +
 
  +
<span style="color: red">※環境により表示結果が異なります。ここではCategory:FLにリンクしているページを列挙しています。</span>
  +
 
  +
=createstring=
  +
{{#createstring:abc|3}}
  +
 
  +
=ifexists=
  +
File:Test.png -&gt; {{#ifexists:File:Test.png|true|false}}<br />
  +
File:NonExists.png -&gt; {{#ifexists:File:NonExists.png|true|false}}
  +
 
  +
=map=
  +
{{#map:RepeatTemplate|3|a|b|c|d|e|f|g|h|i}}
  +
 
  +
<span style="color: red">※「Template:RepeatTemplate」の記述が3回出力されます。</span>
  +
 
  +
=max=
  +
{{#max:54|12|31|123|5}}
  +
 
  +
=min=
  +
{{#min:54|12|31|123|5}}
  +
 
  +
=nth=
  +
{{#nth:a;b;c;d;e|3|;}}
  +
 
  +
=trimex=
  +
{{#trimex:  a bc def
  +
123
  +
4}}
  +
 
  +
=upcase=
  +
abcdef -&gt; {{#upcase:abcdef}}<br />
  +
a1=B2. -&gt; {{#upcase:a1=B2.}}
  +
 
  +
=downcase=
  +
ABCDEF -&gt; {{#downcase:ABCDEF}}<br />
  +
a1=B2. -&gt; {{#downcase:a1=B2.}}

Source: 日本脂質生化学会
ヘルプ:CheckExtendedFunctions

-日本脂質生化学会

Copyright© 医学学会ニュース , 2024 AllRights Reserved Powered by AFFINGER4.