「テンプレート:Evaldemo/3」の版間の差分
ナビゲーションに移動
検索に移動
細 (1版) |
(相違点なし)
|
2015年3月14日 (土) 12:15時点における最新版
Template:Evaldemo/3 (edit talk links history) shows the call of a template or predefined template and its result, for documentation.
- Usage:
- {{Evaldemo/3|left side|up to 6 additional parameters}}
- {{Evaldemo/3|left side|up to 6 additional parameters|s=separator}}
- The default separator is "gives", use s== to get "=". The first parameter has to be specified and can't be empty, compare template:Evaldemo (edit•talk•links•history). Please note that for parser functions the first parameter belongs to the left side before the "|" vertical bar aka pipe, use {{evaldemo}} for examples without any vertical bar.
- Examples:
-
- {{Evaldemo/3|#expr:5*7|s==}}
- {{
#expr:5*7
}} = 35
- {{
- {{Evaldemo/3|#ifeq:1.00|+1|okay|bad}}
- {{
#ifeq:1.00|+1|okay|bad
}} gives okay
- {{
- {{Evaldemo/3|#ifeq:this|that|true|s=is}}
- {{
#ifeq:this|that|true|false
}} is false
- {{
- {{Evaldemo/3|#expr:5*7|s==}}
Optional substitution with subst=subst: is not supported. It's anyway against the spirit of this demo template showing what another template actually does, and not what it did some time ago.