Help:Extension/ExtendedFunctions
From Metabolomics.JP
(Difference between revisions)
Line 7: | Line 7: | ||
__TOC__ | __TOC__ | ||
− | + | Extension to use (mainly) string-related operations. | |
− | + | Based on [http://www.mediawiki.org/wiki/Extension:ParserFunctions Extension:ParserFunctions]. | |
== Requirements == | == Requirements == | ||
Line 27: | Line 27: | ||
== Function == | == Function == | ||
− | # [[ | + | # [[Help:Extensions#.7B.7B.23car:str.7Cseparator.3D.27.C2.A0.27.28space.29.7D.7D|car]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23cdr:str.7Cseparator.3D.27.C2.A0.27.28space.29.7D.7D|cdr]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23cadr:str.7Cseparator.3D.27.C2.A0.27.28space.29.7D.7D|cadr]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23cddr:str.7Cseparator.3D.27.C2.A0.27.28space.29.7D.7D|cddr]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23caddr:str.7Cseparator.3D.27.C2.A0.27.28space.29.7D.7D|caddr]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23cdddr:str.7Cseparator.3D.27.C2.A0.27.28space.29.7D.7D|cdddr]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23and:list1.7Clist2.7D.7D|and]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23or:list1.7Clist2.7D.7D|or]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23def:arg.7Cval.7D.7D|def]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23var:arg.7Cval.7D.7D|var]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23substring:str.7Cstart.3D0.7Cend.3D0.7D.7D|substring]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23trim:str.7D.7D|trim]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23length:str.7D.7D|length]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23count:str.7Cpattern.7D.7D|count]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23indexOf:str.7Cpattern.3D.27.C2.A0.27.28space.29.7Coffset.3D0.7D.7D|indexof]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23lastIndexOf:str.7Cpattern.3D.27.C2.A0.27.28space.29.7D.7D|lastindexof]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23isdigit:_str.7Cyes.7Cno.7D.7D|isdigit]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23isalnum:str.7Cyes.7Cno.7D.7D|isalnum]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23replace:str.7Cpattern1.7Cpattern2.7D.7D|replace]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23cr:.7D.7D|cr]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23bar:.7D.7D|bar]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23forcedBR:str.7Cwidth.3D25.7D.7D|forcedbr]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23repeat:template.7Cargc.7Cargl.7Cseparator.3D.22.5Cn.22.7Cprefix.3D.27.27.7Cpostfix.3D.27.27.7D.7D|repeat]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23repeatnum:template.7Cargc.7Cargl.7Cseparator.3D.22.5Cn.22.7D.7D|repeatnum]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23ifexistfile:path.7D.7D|ifexistfile]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23javaWithParam:classname.7Carchive.7Ccodebase.3D..7Cwidth.3D100.7Cheight.3D100.7Cparameter.3D.27.27.7D.7D|javawithparam]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23searchLine:_str_.7Cnamespace.3D.27Main.27.7Cpagename.3D.27.27.7D.7D|searchline]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23searchTitle:_str_.7Cnamespace.3D.27Main.27.7D.7D|searchtitle]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23countLine:_str_.7Cnamespace.3D.27Main.27.7Cpagename.3D.27.27.7D.7D|countline]] |
− | # [[ | + | # [[Help:Extensions#.7B.7B.23countTitle:_str_.7Cnamespace.3D.27Main.27.7D.7D|counttitle]] |
Revision as of 16:25, 20 September 2008
Extension Information | |
Implementation | |
Description | |
Author(s) | K, Suwa |
Version | 0.1 |
MediaWiki | 1.11.1 |
License | |
Hooks used | |
Token type | |
Contents |
Extension to use (mainly) string-related operations.
Based on Extension:ParserFunctions.
Requirements
None
Download
version | source | size |
0.1(September 11,2008) | ExtendedFunctions.phps |
Installtion
- Download source and rename to ExtendedFunctions.php.
- Put in extensions/ directory.
- Insert follow line to LocalSettings.php
require_once( "$IP/extensions/ExtendedFunctions.php" );