- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
テンプレート:Parameter
提供: WordPress Codex 日本語版
2010年3月3日 (水) 18:12時点におけるBono (トーク | 投稿記録)による版 (関数のパラメータ説明テンプレ。en:Template:Parameter 02:54, 13 January 2008 HEngel 版をコピー)
- {{{1}}}
- ({{{2}}}) (required) {{{3}}}
- Default: None
Notes
This template is for standardizing how parameters look in the Function Reference and in Template Tags. Here is an example of this template being called:
{{Parameter|$something|string|This is a string.|optional|bah}}
The usage of this template is below:
{{Parameter|name|datatype|description|importance|default}}
Let's take a closer look at the parameters..
- name
- The name of the parameter.
- datatype
- The datatype that should be given for this parameter when called.
- description
- A short description of the parameter.
- importance
- Set this parameter to optional if the parameter is optional. Otherwise, do not declare this parameter—it defaults to required.
- default
- If this parameter is optional, default is the value that will be used if the parameter is not declared.