「テンプレート:Trim」の版間の差分

提供: 脳科学辞典
ナビゲーションに移動 検索に移動
(1版 をインポートしました)
(1版 をインポートしました)
 
(他の1人の利用者による、間の2版が非表示)
1行目: 1行目:
{{#if:1|{{{1|}}}}}<noinclude>
<includeonly>{{safesubst:#if:1|{{{1|}}}}}</includeonly><noinclude>
{{documentation}}
{{Documentation}}
[[Category:String manipulation templates]]
</noinclude>
</noinclude>

2025年8月14日 (木) 16:52時点における最新版

[edit] [purge] Documentation icon Template documentation

This template trims whitespace from a string. The string should be passed as the first unnamed parameter. You may substitute this template - that is, if used as {{subst:trim}}, the resulting wikicode is "clean".

Usage

{{trim|text}} = text with any leading or trailing whitespace removed.

Example

  • {{trim| abc}} produces abc.

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Trim

The template trims whitespace from a string.

テンプレートパラメーター

パラメーター説明状態
String1

The string to be trimmed of whitespace

文字列必須

See also