« Thousands separator » : différence entre les versions

De Semantic MediaWiki - Sandbox

Aucun résumé des modifications
Aucun résumé des modifications
Ligne 28 : Ligne 28 :
* Without separator <code><nowiki>{{#show:{{PAGENAME}}|?Value2#}}</nowiki></code> :  
* Without separator <code><nowiki>{{#show:{{PAGENAME}}|?Value2#}}</nowiki></code> :  
| '''{{#show:{{PAGENAME}}|?Value2#}}'''
| '''{{#show:{{PAGENAME}}|?Value2#}}'''
|-
|
* <code><nowiki>{{#number_format:{{#show:{{PAGENAME}}|?Value2}}|2|,|.|.}}</nowiki></code> :
| '''{{#number_format:{{#show:{{PAGENAME}}|?Value2}}|2|,|.|.}}'''
|-
|
* <code><nowiki>{{#number_format:{{#show:{{PAGENAME}}|?Value2}}|2|,||.}}</nowiki></code> :
| '''{{#number_format:{{#show:{{PAGENAME}}|?Value2}}|2|,||.}}'''
|}
|}



Version du 26 novembre 2015 à 16:06

Properties

  • Property:Value1 : 1000.55« .55 » n’est pas déclaré comme une unité valide de mesure pour cette propriété.
  • Property:Value2 : 21000.4« .4 » n’est pas déclaré comme une unité valide de mesure pour cette propriété.

#Show

  • With separator {{#show:{{PAGENAME}}|?Value1}} :
€ 1 000,55¥ 114 062,7 <br />
  • Without separator {{#show:{{PAGENAME}}|?Value1#}} :
€ 1000,55
  • {{#number_format:{{#show:{{PAGENAME}}|?Value1}}|2|,|.|.}} :
Le premier argument de « number_format » doit être un nombre.
  • {{#number_format:{{#show:{{PAGENAME}}|?Value1}}|2|,||.}} :
Le premier argument de « number_format » doit être un nombre.
  • With separator {{#show:{{PAGENAME}}|?Value2}} :
€ 21 000,4¥ 2 394 045,6 <br />
  • Without separator {{#show:{{PAGENAME}}|?Value2#}} :
€ 21000,4
  • {{#number_format:{{#show:{{PAGENAME}}|?Value2}}|2|,|.|.}} :
Le premier argument de « number_format » doit être un nombre.
  • {{#number_format:{{#show:{{PAGENAME}}|?Value2}}|2|,||.}} :
Le premier argument de « number_format » doit être un nombre.

#Ask

  • With separator {{#ask:[[{{PAGENAME}}]]|?Value1|?Value2|mainlabel=-}} :
Value1Value2
€ 1 000,55¥ 114 062,7 <br />€ 21 000,4¥ 2 394 045,6 <br />
  • Without separator {{#ask:[[{{PAGENAME}}]]|?Value1#|?Value2#|mainlabel=-}} :
Value1Value2
€ 1000,55€ 21000,4

#Ask format=min

  • With separator {{#ask:[[{{PAGENAME}}]]|?Value1|?Value2|format=min}} :
1 000,55
  • Without separator {{#ask:[[{{PAGENAME}}]]|?Value1#|?Value2#|format=min}} :
1000.55
  • {{#number_format:{{#ask:[[{{PAGENAME}}]]|?Value1|?Value2|format=min}}|2|,||.}} :
100055,00

#Ask format=max

  • With separator {{#ask:[[{{PAGENAME}}]]|?Value1|?Value2|format=max}} :
21 000,4
  • Without separator {{#ask:[[{{PAGENAME}}]]|?Value1#|?Value2#|format=max}} :
21000.4
  • {{#number_format:{{#ask:[[{{PAGENAME}}]]|?Value1|?Value2|format=max}}|2|,||.}} :
210004,00

#Ask format=sum

  • With separator {{#ask:[[{{PAGENAME}}]]|?Value1|?Value2|format=sum}} :
22 000,95
  • Without separator {{#ask:[[{{PAGENAME}}]]|?Value1#|?Value2#|format=sum}} :
22000.95
  • {{#number_format:{{#ask:[[{{PAGENAME}}]]|?Value1|?Value2|format=sum}}|2|,||.}} :
2200095,00
Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.