ホーム
おまかせ表示
ログイン
設定
脳科学辞典について
免責事項
脳科学辞典
検索
テンプレート:Trim/docのソースを表示
←
テンプレート:Trim/doc
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
{{Documentation subpage}} {{notice|This template is for trimming whitespace from strings. For the maintenance tag for images, see {{tl|trimming}}}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This template trims whitespace from a string. The string should be passed as the first unnamed parameter. You may [[WP:SUBST|substitute]] this template - that is, if used as {{tlxs|trim}}, the resulting wikicode is "clean". == Usage == <nowiki>{{trim|</nowiki>''text''<nowiki>}}</nowiki> = ''text'' with any leading or trailing whitespace removed. == Example == *{{tlx|trim| abc}} produces {{trim| abc}}. == Template data == {{TemplateDataHeader}} <templatedata> { "description": "The template trims whitespace from a string.", "params": { "1": { "label": "String", "description": "The string to be trimmed of whitespace", "type": "string", "required": true } } } </templatedata> ==See also== * {{tl|Strip whitespace}} which does nearly the exact same thing, but which should not be [[WP:SUBST|substituted]]. * {{tl|Crop}} {{navbox string handling templates}} <includeonly> <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> [[Category:String manipulation templates]] </includeonly>
テンプレート:Trim/doc
に戻る。