Help:Extensions
From Metabolomics.JP
(Difference between revisions)
Line 1: | Line 1: | ||
− | + | List of supported extensions using the MediaWiki's extension function | |
+ | <h2>Variable Extension</h2> | ||
+ | ;<h3><nowiki>[[</nowiki>MEDIAWIKIROOT]]</h3>:'''/mediawiki'''<br>The path to the MediaWiki folder from the DOCUMENT_ROOT | ||
− | + | ;<h3><nowiki>[[</nowiki>APPLETROOT]]</h3>:'''/mediawiki/applt'''<br>The path to the applet folder from the DOCUMENT_ROOT | |
− | ;<h3><nowiki>[[</nowiki> | + | |
− | + | <h2>Tag Extension</h2> | |
+ | ;<h3><wbr></h3>:Use <wbr> of HTML as they are | ||
− | + | ;<h3><formula></h3>:Find the corresponding MOL file from the page title, and output its formula data. | |
− | ;<h3>< | + | |
− | ;<h3>< | + | ;<h3><ave_mass></h3>:Find the corresponding MOL file from the page title, and output its average mass data. |
− | ;<h3>< | + | ;<h3><ext_mass></h3>:Find the corresponding MOL file from the page title, and output its exact mass data. |
− | + | ;<h3><smiles></h3>:Find the corresponding MOL file from the page title, and output its SMILES data. | |
− | + | ||
− | ;<h3><smiles></h3>: | + | |
<h2>Parser Extension</h2> | <h2>Parser Extension</h2> | ||
− | * | + | *Arguments without default values (= arg) are required. |
− | ;<h3><nowiki>{{#substring: | + | |
+ | ;<h3><nowiki>{{#substring: str | start=0 | end=0 }}</nowiki></h3>:Returns substring. Japanese ok. <br>e.g. <nowiki>{{#substring:Hello world|1}}</nowiki> => "{{#substring:Hello world|1}}"<br>e.g. <nowiki>{{#substring:Hello world|1|4}}</nowiki> => "{{#substring:Hello world|1|4}}" | ||
− | ;<h3><nowiki>{{#length: | + | ;<h3><nowiki>{{#length: str }}</nowiki></h3>:Returns string length. Japanese ok.<br>e.g. <nowiki>{{#length:Hello world}}</nowiki> => {{#length:Hello world}} |
− | ;<h3><nowiki>{{#indexOf: | + | ;<h3><nowiki>{{#indexOf: str | pattern =' '(space)|offset=0}}</nowiki></h3>:Returns the first index where the pattern occurs. To specify a space, use "&#160;".<br>e.g. <nowiki>{{#indexOf:Hello world|wor}}</nowiki> = {{#indexOf:Hello world|wor}}<br>e.g. <nowiki>{{#indexOf:Hello world}}</nowiki> = {{#indexOf:Hello world}} |
− | ;<h3><nowiki>{{#lastIndexOf: | + | ;<h3><nowiki>{{#lastIndexOf: str | pattern =' '(space)}}</nowiki></h3>:Returns the last index where the pattern occurs. To spacify a space, use "&#160;".<br>e.g. <nowiki>{{#lastIndexOf:abc abc abc|abc}}</nowiki> = {{#lastIndexOf:abc abc abc|abc}}<br>e.g. <nowiki>{{#lastIndexOf:abc abc abc}}</nowiki> = {{#lastIndexOf:abc abc abc}} |
− | ;<h3><nowiki>{{#isdigit: | + | ;<h3><nowiki>{{#isdigit: str | yes | no }}</nowiki></h3>:Returns yes if str is digit, otherwise no.<br>e.g. <nowiki>{{#isdigit:1234567890|This is digit|This is not digit}}</nowiki> => {{#isdigit:1234567890|This is digit|This is not digit}}<br>e.g. <nowiki>{{#isdigit:123abc456|This is not alphanumeric|This is alphanumeric}}</nowiki> => {{#isdigit:123abc456|This is not alphanumeric|This is alphanumeric}} |
− | ;<h3><nowiki>{{#isalnum: | + | ;<h3><nowiki>{{#isalnum: str | yes | no }}</nowiki></h3>:Returns yes if str is alphanumeric, otherwise no.<br>e.g. <nowiki>{{#isalnum:123abc456|This is alphanumeric|This is not alphanumeric}}</nowiki> => {{#isalnum:123abc456|This is alphanumeric|This is not alphanumeric}}<br>e.g. <nowiki>{{#isalnum:*123abc456*|This is alphanumeric|This is not alphanumeric}}</nowiki> => {{#isalnum:*123abc456*|This is alphanumeric|This is not alphanumeric}} |
− | ;<h3><nowiki>{{#repeat: | + | ;<h3><nowiki>{{#repeat: template | argc | args |separator="\n"|prefix=''|postfix=''}}</nowiki></h3>:—^‚¦‚ç‚ꂽˆø”ƒŠƒXƒg‚ðƒZƒpƒŒ[ƒ^‚Å•ªŠ„‚µAŽw’肳‚ꂽƒeƒ“ƒvƒŒ[ƒg‚Ɉø”‚Ì”‚¾‚¯ˆø”‚ð“n‚µAˆø”‚ª‚È‚‚È‚é‚܂Ńeƒ“ƒvƒŒ[ƒg‚ðŒÄ‚Ño‚·B<br>‚½‚¾‚µu|v‚Ímediawiki“à‚ł̃ZƒpƒŒ[ƒ^‚É‚È‚Á‚Ä‚¢‚é‚Ì‚ÅAˆø”ƒŠƒXƒg‚âƒZƒpƒŒ[ƒ^‚Å‚ÍŽw’è•s‰Â”\BƒXƒy[ƒX‚ðŽw’è‚·‚éꇂÍu&#160;v‚ð—p‚¢‚éB<br>e.g. <nowiki>{{#repeat:template|3|a,b,c,d,e,f,g,h,i|,}}</nowiki> => <nowiki>{{template|a|b|c}}{{template|d|e|f}}{{template|g|h|i}}</nowiki> |
− | ;<h3><nowiki>{{#cr:}}</nowiki></h3>: | + | ;<h3><nowiki>{{#cr:}}</nowiki></h3>:Returns \cr.<br>e.g. <nowiki>{{#cr:}}</nowiki> => {{#cr:}}(‰üs) |
− | ;<h3><nowiki>{{#bar:}}</nowiki></h3>: | + | ;<h3><nowiki>{{#bar:}}</nowiki></h3>:Returns |.<br>e.g. <nowiki>{{#bar:}}</nowiki> => {{#bar:}} |
− | ;<h3><nowiki>{{#count: | + | ;<h3><nowiki>{{#count: str | pattern }}</nowiki></h3>:Returns the count of pattern in the str. Japanese ok.<br>e.g. <nowiki>{{#count:abcabcabca|a}}</nowiki> => {{#count:abcabcabca|a}} |
− | ;<h3><nowiki>{{#ifexistfile: | + | ;<h3><nowiki>{{#ifexistfile:ƒpƒX}}</nowiki></h3>:DOCUMENT_ROOT‚©‚çŽw’肳‚ꂽƒpƒX‚Ƀtƒ@ƒCƒ‹‚ª‘¶Ý‚µ‚Ä‚¢‚éꇂÉA‚»‚̃pƒX‚ւ̃Šƒ“ƒN‚ð•Ô‚·B<br>e.g. <nowiki>{{#ifexistfile:/index.html}}</nowiki> => {{#ifexistfile:/index.html}} |
− | ;<h3><nowiki>{{#replace: | + | ;<h3><nowiki>{{#replace: str |pattern |’uŠ· str }}</nowiki></h3>:—^‚¦‚ç‚ꂽ str ‚©‚çpattern ‚Ƀ}ƒbƒ`‚·‚é•”•ª‚ð’uŠ· str ‚É’u‚«Š·‚¦‚Ä•Ô‚·BƒXƒy[ƒX‚ðŽw’è‚·‚éꇂÍu v‚ð—p‚¢‚éB<br>e.g. <nowiki>{{#replace:abcdefghi|def|123}}</nowiki> => {{#replace:abcdefghi|def|123}}<br>e.g. <nowiki>{{#replace:a b c d|&#160;|1}}</nowiki> => {{#replace:a b c d| |1}} |
− | ;<h3><nowiki>{{#javaWithParam: | + | ;<h3><nowiki>{{#javaWithParam:ƒNƒ‰ƒX–¼|ƒA[ƒJƒCƒu–¼|ƒR[ƒhƒx[ƒX=.|•=100|‚‚³=100|ƒpƒ‰ƒ[ƒ^=''}}</nowiki></h3>:javaƒAƒvƒŒƒbƒg‚ð•\Ž¦‚·‚éHTMLƒR[ƒh‚ð•Ô‚·Bƒpƒ‰ƒ[ƒ^‚Íu;v‹æØ‚è‚ÅŽw’è‰Â”\B<br>e.g. <nowiki>{{#javaWithParam:Main.class|Main.jar|.|100|100|data=123;id=java}}</nowiki> => <br><object codebase="." code="Main.class" archive="Main.jar" width="100" height="100"><br><param name="data" value="123"><br><param name="id" value="java"><br></object> |
− | ;<h3><nowiki>{{#searchLine: | + | ;<h3><nowiki>{{#searchLine:ŒŸõŒê|–¼‘O‹óŠÔ='Main'|ƒy[ƒWƒ^ƒCƒgƒ‹=''}}</nowiki></h3>:—^‚¦‚ç‚ꂽŒŸõŒê‚ðŽw’肳‚ꂽ–¼‘O‹óŠÔAƒy[ƒW‚©‚ç’T‚µ‚¾‚µ‚»‚ÌŒ‹‰Ê‚ð•Ô‚·Bƒy[ƒWƒ^ƒCƒgƒ‹‚Ü‚ÅŽw’è‚·‚é‚ÆŒŸõ”͈͂ª‹·‚ß‚ç‚ê‚é‚Ì‚ÅAˆ—Œø—¦‚ª—Ç‚¢B<br>ŒŸõŒã‚Íu^v‚ð擪‚ɂ‚¯‚邱‚Æ‚Å•¶“ªAu$v‚ð––”ö‚ɂ‚¯‚邱‚Æ‚Å•¶––Žw’肪‰Â”\BŒ‹‰Ê‚Í“ª‚Éu&&ƒy[ƒW–¼v‚ª•t—^‚³‚ê‚éB<br>‚±‚ÌŒŸõ‚Íedit‰æ–Ê‚ÅŒ©‚¦‚éwikiƒR[ƒh‚ɑ΂µ‚Äs‚í‚ê‚éB<br>e.g. <nowiki>{{#searchLine:sandbox|Main|Sandbox}}</nowiki> => {{#searchLine:sandbox|Main|Sandbox}} |
− | ;<h3><nowiki>{{#car: | + | ;<h3><nowiki>{{#car: str |delimiter=' '(space)}}</nowiki></h3>:Emulate car in Lisp.<br>e.g. <nowiki>{{#car:a;b;c;d;e|;}}</nowiki> => {{#car:a;b;c;d;e|;}} |
− | ;<h3><nowiki>{{#cdr: | + | ;<h3><nowiki>{{#cdr: str |delimiter=' '(space)}}</nowiki></h3>:Emulate cdr in Lisp.<br>e.g. <nowiki>{{#cdr:a;b;c;d;e|;}}</nowiki> => {{#cdr:a;b;c;d;e|;}} |
− | ;<h3><nowiki>{{#cadr: | + | ;<h3><nowiki>{{#cadr: str |delimiter=' '(space)}}</nowiki></h3>:Emulate cadr in Lisp.<br>e.g. <nowiki>{{#cadr:a;b;c;d;e|;}}</nowiki> => {{#cadr:a;b;c;d;e|;}} |
− | ;<h3><nowiki>{{#cddr: | + | ;<h3><nowiki>{{#cddr: str |delimiter=' '(space)}}</nowiki></h3>:Emulate cddr in Lisp.<br>e.g. <nowiki>{{#cddr:a;b;c;d;e|;}}</nowiki> => {{#cddr:a;b;c;d;e|;}} |
− | ;<h3><nowiki>{{#caddr: | + | ;<h3><nowiki>{{#caddr: str |delimiter=' '(space)}}</nowiki></h3>:Emulate caddr in Lisp.<br>e.g. <nowiki>{{#caddr:a;b;c;d;e|;}}</nowiki> => {{#caddr:a;b;c;d;e|;}} |
− | ;<h3><nowiki>{{#cdddr: | + | ;<h3><nowiki>{{#cdddr: str |delimiter=' '(space)}}</nowiki></h3>:Emulate cdddr in Lisp.<br>e.g. <nowiki>{{#cdddr:a;b;c;d;e|;}}</nowiki> => {{#cdddr:a;b;c;d;e|;}} |
− | ;<h3><nowiki>{{#trim: | + | ;<h3><nowiki>{{#trim: str }}</nowiki></h3>:Emulate trim in Perl. Removes \n, \r, \t, \v, \0.<br>e.g. <nowiki>{{#trim:abc(\n)}}</nowiki> => abc |
− | ;<h3><nowiki>{{#post: | + | ;<h3><nowiki>{{#post:page_title|name|arg|button_str ='send'}}</nowiki></h3>:Returns the form code in HTML with post<br>e.g. <nowiki>{{#post:WikiPage|data|abcdef}}</nowiki> =><br><nowiki><form action="[WIKI]/WikiPage" method="post"></nowiki><br><nowiki><input type="hidden" name="data" value="abcdef"></nowiki><br><nowiki><input type="submit" value="send"></nowiki><br><nowiki></form></nowiki> |
− | ;<h3><nowiki>{{#get: | + | ;<h3><nowiki>{{#get:–¼‘O}}</nowiki></h3>:Returns data sent by get or post methods.<br>e.g. <nowiki>{{#get:data}}</nowiki> => abcdef |
− | ;<h3><nowiki>{{#forcedBR: | + | ;<h3><nowiki>{{#forcedBR: str |‹§‰üs•¶Žš”=25}}</nowiki></h3>:—^‚¦‚ç‚ꂽ str ‚É‹§‰üs str ‚²‚Æ‚É<nowiki><wbr></nowiki>‚ð‹²‚Ýž‚Ý‚Ü‚·B<br>e.g. <nowiki>{{#forcedBR:123456789012345678901234567890123456789012345678901234567890|10}}</nowiki> => {{#forcedBR:123456789012345678901234567890123456789012345678901234567890|10}} |
− | ;<h3><nowiki>{{#tag: | + | ;<h3><nowiki>{{#tag:ƒ^ƒO str |ˆø”|ƒ^ƒO‚ň͂܂ê‚é str }}</nowiki></h3>:‹–‰Â‚³‚ꂽ“Á’è‚̃^ƒO‚Ì‚ÝHTMLƒR[ƒh‚Æ‚µ‚Ä•Ô‚·B‹–‰Â‚³‚ê‚Ä‚¢‚éƒ^ƒO‚ÍuformvutextarevuselectvuoptionvuoptgroupvufieldsetvulegendvulabelvuinputvB<br>form‚É‚æ‚郃\ƒbƒhŽw’è‚Ípost‚Ì‚ÝB<br>e.g. <nowiki>{{#tag:input|type="submit"}} => <input type="submit"></nowiki><br><nowiki>e.g. {{#tag:form|action="-"|...}} => <form action="-" method="post">...</form></nowiki> |
− | ;<h3><nowiki>{{#graph: | + | ;<h3><nowiki>{{#graph:ƒOƒ‰ƒt‚ÌŽí—Þ|ƒTƒCƒY|ƒf[ƒ^|ƒ‰ƒxƒ‹=''|ƒ^ƒCƒgƒ‹=''}}</nowiki></h3>:jpgraph‚É‚æ‚éƒOƒ‰ƒt¶¬‚ðs‚¤BƒOƒ‰ƒt‚ÌŽí—Þ‚Íupievupie3dvulinevuhvarvuvbarv‚ðƒTƒ|[ƒgBƒTƒCƒY‚Íu•x‚‚³v‚ÅŽw’èAƒf[ƒ^Aƒ‰ƒxƒ‹‚Íu,v‚̃ŠƒXƒgB<br>e.g. <nowiki>{{#graph:pie|100x100|12,34,21|ID1,ID2,ID3|Title}}</nowiki> =><br> {{#graph:pie|300x300|12,34,21|ID1,ID2,ID3|Title}} |
− | ;<h3><nowiki>{{#def: | + | ;<h3><nowiki>{{#def:•Ï”–¼|’l}}</nowiki></h3>:‚»‚̃y[ƒW‚Ì‚Ý‚ÅŽg—p‰Â”\‚È•Ï”‚ð’è‹`‚·‚éB<br>e.g. <nowiki>{{#def:i|1}}</nowiki> => i=1 |
− | ;<h3><nowiki>{{#var: | + | ;<h3><nowiki>{{#var:•Ï”–¼}}</nowiki></h3>:•Ï”‚Ì’†g‚ð•Ô‚·B<br>e.g. <nowiki>{{#var:i}}</nowiki> => 1 |
− | ;<h3><nowiki>{{#and: | + | ;<h3><nowiki>{{#and:ƒŠƒXƒg1|ƒŠƒXƒg2}}</nowiki></h3>:‰üs‹æØ‚è‚Å—^‚¦‚ç‚ꂽ“ñ‚‚̃ŠƒXƒg‚Ì’†‚ÅA—¼•û‚É‘¶Ý‚µ‚Ä‚¢‚és‚Ì‚Ý•Ô‚·B<br>e.g. <br><nowiki>{{#</nowiki>and:1<br>2<br>4|1<br>3<br>4}} => 1 4 |
− | ;<h3><nowiki>{{#or: | + | ;<h3><nowiki>{{#or:ƒŠƒXƒg1|ƒŠƒXƒg2}}</nowiki></h3>:‰üs‹æØ‚è‚Å—^‚¦‚ç‚ꂽ“ñ‚‚̃ŠƒXƒg‚ð‚ ‚í‚¹‚½Œ‹‰Ê‚ð•Ô‚·B<br>e.g. <br><nowiki>{{#</nowiki>or:1<br>2<br>4|1<br>3<br>4}} => 1 2 3 4 |
− | ;<h3><nowiki>{{#lua: | + | ;<h3><nowiki>{{#lua:ƒ\[ƒX|ˆø”}}</nowiki></h3>:luaƒvƒƒOƒ‰ƒ€‚ðŽÀs‚·‚éBˆø”‚É—^‚¦‚½ƒf[ƒ^‚Íustdinv‚Æ‚¢‚¤•Ï”–¼‚ŃAƒNƒZƒX‰Â”\B‚½‚¾‚µAioAdebugApackageAosƒNƒ‰ƒX‚ÍŽg—p•s‰Â”\B<br>e.g. <nowiki>{{#lua:print(stdin)|abc}}</nowiki> => {{#lua:print(stdin)|abc}} |
<h2>SpecialPage</h2> | <h2>SpecialPage</h2> | ||
− | ;<h3>ReferenceIndexes</h3>: | + | ;<h3>ReferenceIndexes</h3>:–¼‘O‹óŠÔ:Reference‚ð‘ÎÛ‚É‚µ‚½ƒhƒLƒ…ƒƒ“ƒg–¼A’˜ŽÒ–¼‚É‚æ‚éƒCƒ“ƒfƒbƒNƒXˆê——<br>[[Special:ReferenceIndexes]] |
− | <h2> | + | <h2>‚»‚Ì‘¼‚ÌExtension</h2> |
− | ;<h3> | + | ;<h3>ŒŸõ</h3>:¶‘¤‚ÌŒŸõ•”‚ÌŠg’£B |
− | * | + | *‘啶Žš¬•¶Žš‚Ì‹æ•Ê‚Í‚µ‚È‚¢B |
− | * | + | *u_v‚É‚æ‚é”CˆÓ‚̈ꕶŽš‚ƃ}ƒbƒ` |
− | * | + | *u%v‚É‚æ‚é0•¶ŽšˆÈã‚Ì‘S‚Ä‚Ì•¶Žš‚ƃ}ƒbƒ` |
− | <h2> | + | <h2>import‚³‚ꂽŠù‘¶Extension</h2> |
;<h3>CategoryTree</h3>:[http://www.mediawiki.org/wiki/Extension:CategoryTree CategoryTree Extension] | ;<h3>CategoryTree</h3>:[http://www.mediawiki.org/wiki/Extension:CategoryTree CategoryTree Extension] | ||
Revision as of 00:57, 27 February 2008
List of supported extensions using the MediaWiki's extension function
Variable Extension
[[MEDIAWIKIROOT]]
- /mediawiki
The path to the MediaWiki folder from the DOCUMENT_ROOT
[[APPLETROOT]]
- /mediawiki/applt
The path to the applet folder from the DOCUMENT_ROOT
Tag Extension
<wbr>
- Use <wbr> of HTML as they are
<formula>
- Find the corresponding MOL file from the page title, and output its formula data.
<ave_mass>
- Find the corresponding MOL file from the page title, and output its average mass data.
<ext_mass>
- Find the corresponding MOL file from the page title, and output its exact mass data.
<smiles>
- Find the corresponding MOL file from the page title, and output its SMILES data.
Parser Extension
- Arguments without default values (= arg) are required.
{{#substring: str | start=0 | end=0 }}
- Returns substring. Japanese ok.
e.g. {{#substring:Hello world|1}} => "ello world"
e.g. {{#substring:Hello world|1|4}} => "ell"
{{#length: str }}
- Returns string length. Japanese ok.
e.g. {{#length:Hello world}} => 11
{{#indexOf: str | pattern =' '(space)|offset=0}}
- Returns the first index where the pattern occurs. To specify a space, use " ".
e.g. {{#indexOf:Hello world|wor}} = 6
e.g. {{#indexOf:Hello world}} = 5
{{#lastIndexOf: str | pattern =' '(space)}}
- Returns the last index where the pattern occurs. To spacify a space, use " ".
e.g. {{#lastIndexOf:abc abc abc|abc}} = 8
e.g. {{#lastIndexOf:abc abc abc}} = 7
{{#isdigit: str | yes | no }}
- Returns yes if str is digit, otherwise no.
e.g. {{#isdigit:1234567890|This is digit|This is not digit}} => This is digit
e.g. {{#isdigit:123abc456|This is not alphanumeric|This is alphanumeric}} => This is alphanumeric
{{#isalnum: str | yes | no }}
- Returns yes if str is alphanumeric, otherwise no.
e.g. {{#isalnum:123abc456|This is alphanumeric|This is not alphanumeric}} => This is alphanumeric
e.g. {{#isalnum:*123abc456*|This is alphanumeric|This is not alphanumeric}} => This is not alphanumeric
{{#repeat: template | argc | args |separator="\n"|prefix=''|postfix=''}}
- —^‚¦‚ç‚ꂽˆø”ƒŠƒXƒg‚ðƒZƒpƒŒ[ƒ^‚Å•ªŠ„‚µAŽw’肳‚ꂽƒeƒ“ƒvƒŒ[ƒg‚Ɉø”‚Ì”‚¾‚¯ˆø”‚ð“n‚µAˆø”‚ª‚È‚‚È‚é‚܂Ńeƒ“ƒvƒŒ[ƒg‚ðŒÄ‚Ño‚·B
‚½‚¾‚µu|v‚Ímediawiki“à‚ł̃ZƒpƒŒ[ƒ^‚É‚È‚Á‚Ä‚¢‚é‚Ì‚ÅAˆø”ƒŠƒXƒg‚âƒZƒpƒŒ[ƒ^‚Å‚ÍŽw’è•s‰Â”\BƒXƒy[ƒX‚ðŽw’è‚·‚éꇂÍu v‚ð—p‚¢‚éB
e.g. {{#repeat:template|3|a,b,c,d,e,f,g,h,i|,}} => {{template|a|b|c}}{{template|d|e|f}}{{template|g|h|i}}
{{#cr:}}
- Returns \cr.
e.g. {{#cr:}} =>
(‰üs)
{{#bar:}}
- Returns |.
e.g. {{#bar:}} => |
{{#count: str | pattern }}
- Returns the count of pattern in the str. Japanese ok.
e.g. {{#count:abcabcabca|a}} => 4
{{#ifexistfile:ƒpƒX}}
- DOCUMENT_ROOT‚©‚çŽw’肳‚ꂽƒpƒX‚Ƀtƒ@ƒCƒ‹‚ª‘¶Ý‚µ‚Ä‚¢‚éꇂÉA‚»‚̃pƒX‚ւ̃Šƒ“ƒN‚ð•Ô‚·B
e.g. {{#ifexistfile:/index.html}} => index.html
{{#replace: str |pattern |’uŠ· str }}
- —^‚¦‚ç‚ꂽ str ‚©‚çpattern ‚Ƀ}ƒbƒ`‚·‚é•”•ª‚ð’uŠ· str ‚É’u‚«Š·‚¦‚Ä•Ô‚·BƒXƒy[ƒX‚ðŽw’è‚·‚éꇂÍu v‚ð—p‚¢‚éB
e.g. {{#replace:abcdefghi|def|123}} => abc123ghi
e.g. {{#replace:a b c d| |1}} => a1b1c1d
{{#javaWithParam:ƒNƒ‰ƒX–¼|ƒA[ƒJƒCƒu–¼|ƒR[ƒhƒx[ƒX=.|•=100|‚‚³=100|ƒpƒ‰ƒ[ƒ^=''}}
- javaƒAƒvƒŒƒbƒg‚ð•\Ž¦‚·‚éHTMLƒR[ƒh‚ð•Ô‚·Bƒpƒ‰ƒ[ƒ^‚Íu;v‹æØ‚è‚ÅŽw’è‰Â”\B
e.g. {{#javaWithParam:Main.class|Main.jar|.|100|100|data=123;id=java}} =>
<object codebase="." code="Main.class" archive="Main.jar" width="100" height="100">
<param name="data" value="123">
<param name="id" value="java">
</object>
{{#searchLine:ŒŸõŒê|–¼‘O‹óŠÔ='Main'|ƒy[ƒWƒ^ƒCƒgƒ‹=''}}
- —^‚¦‚ç‚ꂽŒŸõŒê‚ðŽw’肳‚ꂽ–¼‘O‹óŠÔAƒy[ƒW‚©‚ç’T‚µ‚¾‚µ‚»‚ÌŒ‹‰Ê‚ð•Ô‚·Bƒy[ƒWƒ^ƒCƒgƒ‹‚Ü‚ÅŽw’è‚·‚é‚ÆŒŸõ”͈͂ª‹·‚ß‚ç‚ê‚é‚Ì‚ÅAˆ—Œø—¦‚ª—Ç‚¢B
ŒŸõŒã‚Íu^v‚ð擪‚ɂ‚¯‚邱‚Æ‚Å•¶“ªAu$v‚ð––”ö‚ɂ‚¯‚邱‚Æ‚Å•¶––Žw’肪‰Â”\BŒ‹‰Ê‚Í“ª‚Éu&&ƒy[ƒW–¼v‚ª•t—^‚³‚ê‚éB
‚±‚ÌŒŸõ‚Íedit‰æ–Ê‚ÅŒ©‚¦‚éwikiƒR[ƒh‚ɑ΂µ‚Äs‚í‚ê‚éB
e.g. {{#searchLine:sandbox|Main|Sandbox}} =>
{{#car: str |delimiter=' '(space)}}
- Emulate car in Lisp.
e.g. {{#car:a;b;c;d;e|;}} => a
{{#cdr: str |delimiter=' '(space)}}
- Emulate cdr in Lisp.
e.g. {{#cdr:a;b;c;d;e|;}} => b;c;d;e
{{#cadr: str |delimiter=' '(space)}}
- Emulate cadr in Lisp.
e.g. {{#cadr:a;b;c;d;e|;}} => b
{{#cddr: str |delimiter=' '(space)}}
- Emulate cddr in Lisp.
e.g. {{#cddr:a;b;c;d;e|;}} => c;d;e
{{#caddr: str |delimiter=' '(space)}}
- Emulate caddr in Lisp.
e.g. {{#caddr:a;b;c;d;e|;}} => c
{{#cdddr: str |delimiter=' '(space)}}
- Emulate cdddr in Lisp.
e.g. {{#cdddr:a;b;c;d;e|;}} => d;e
{{#trim: str }}
- Emulate trim in Perl. Removes \n, \r, \t, \v, \0.
e.g. {{#trim:abc(\n)}} => abc
{{#post:page_title|name|arg|button_str ='send'}}
- Returns the form code in HTML with post
e.g. {{#post:WikiPage|data|abcdef}} =>
<form action="[WIKI]/WikiPage" method="post">
<input type="hidden" name="data" value="abcdef">
<input type="submit" value="send">
</form>
{{#get:–¼‘O}}
- Returns data sent by get or post methods.
e.g. {{#get:data}} => abcdef
{{#forcedBR: str |‹§‰üs•¶Žš”=25}}
- —^‚¦‚ç‚ꂽ str ‚É‹§‰üs str ‚²‚Æ‚É<wbr>‚ð‹²‚Ýž‚Ý‚Ü‚·B
e.g. {{#forcedBR:123456789012345678901234567890123456789012345678901234567890|10}} => 12345678901234567890 1234567890 1234567890 1234567890 1234567890
{{#tag:ƒ^ƒO str |ˆø”|ƒ^ƒO‚ň͂܂ê‚é str }}
- ‹–‰Â‚³‚ꂽ“Á’è‚̃^ƒO‚Ì‚ÝHTMLƒR[ƒh‚Æ‚µ‚Ä•Ô‚·B‹–‰Â‚³‚ê‚Ä‚¢‚éƒ^ƒO‚ÍuformvutextarevuselectvuoptionvuoptgroupvufieldsetvulegendvulabelvuinputvB
form‚É‚æ‚郃\ƒbƒhŽw’è‚Ípost‚Ì‚ÝB
e.g. {{#tag:input|type="submit"}} => <input type="submit">
e.g. {{#tag:form|action="-"|...}} => <form action="-" method="post">...</form>
{{#graph:ƒOƒ‰ƒt‚ÌŽí—Þ|ƒTƒCƒY|ƒf[ƒ^|ƒ‰ƒxƒ‹=''|ƒ^ƒCƒgƒ‹=''}}
- jpgraph‚É‚æ‚éƒOƒ‰ƒt¶¬‚ðs‚¤BƒOƒ‰ƒt‚ÌŽí—Þ‚Íupievupie3dvulinevuhvarvuvbarv‚ðƒTƒ|[ƒgBƒTƒCƒY‚Íu•x‚‚³v‚ÅŽw’èAƒf[ƒ^Aƒ‰ƒxƒ‹‚Íu,v‚̃ŠƒXƒgB
e.g. {{#graph:pie|100x100|12,34,21|ID1,ID2,ID3|Title}} =>
{{#def:•Ï”–¼|’l}}
- ‚»‚̃y[ƒW‚Ì‚Ý‚ÅŽg—p‰Â”\‚È•Ï”‚ð’è‹`‚·‚éB
e.g. {{#def:i|1}} => i=1
{{#var:•Ï”–¼}}
- •Ï”‚Ì’†g‚ð•Ô‚·B
e.g. {{#var:i}} => 1
{{#and:ƒŠƒXƒg1|ƒŠƒXƒg2}}
- ‰üs‹æØ‚è‚Å—^‚¦‚ç‚ꂽ“ñ‚‚̃ŠƒXƒg‚Ì’†‚ÅA—¼•û‚É‘¶Ý‚µ‚Ä‚¢‚és‚Ì‚Ý•Ô‚·B
e.g.
{{#and:1
2
4|1
3
4}} => 1 4
{{#or:ƒŠƒXƒg1|ƒŠƒXƒg2}}
- ‰üs‹æØ‚è‚Å—^‚¦‚ç‚ꂽ“ñ‚‚̃ŠƒXƒg‚ð‚ ‚í‚¹‚½Œ‹‰Ê‚ð•Ô‚·B
e.g.
{{#or:1
2
4|1
3
4}} => 1 2 3 4
{{#lua:ƒ\[ƒX|ˆø”}}
- luaƒvƒƒOƒ‰ƒ€‚ðŽÀs‚·‚éBˆø”‚É—^‚¦‚½ƒf[ƒ^‚Íustdinv‚Æ‚¢‚¤•Ï”–¼‚ŃAƒNƒZƒX‰Â”\B‚½‚¾‚µAioAdebugApackageAosƒNƒ‰ƒX‚ÍŽg—p•s‰Â”\B
e.g. {{#lua:print(stdin)|abc}} => abc
SpecialPage
ReferenceIndexes
- –¼‘O‹óŠÔ:Reference‚ð‘ÎÛ‚É‚µ‚½ƒhƒLƒ…ƒƒ“ƒg–¼A’˜ŽÒ–¼‚É‚æ‚éƒCƒ“ƒfƒbƒNƒXˆê——
Special:ReferenceIndexes
‚»‚Ì‘¼‚ÌExtension
ŒŸõ
- ¶‘¤‚ÌŒŸõ•”‚ÌŠg’£B
- ‘啶Žš¬•¶Žš‚Ì‹æ•Ê‚Í‚µ‚È‚¢B
- u_v‚É‚æ‚é”CˆÓ‚̈ꕶŽš‚ƃ}ƒbƒ`
- u%v‚É‚æ‚é0•¶ŽšˆÈã‚Ì‘S‚Ä‚Ì•¶Žš‚ƃ}ƒbƒ`
import‚³‚ꂽŠù‘¶Extension
CategoryTree
- CategoryTree Extension
ParserFunctions
- ParserFunctions Extension
Help