« Thousands separator » : différence entre les versions

De Semantic MediaWiki - Sandbox

Aucun résumé des modifications
Aucun résumé des modifications
Ligne 50 : Ligne 50 :
* Without separator <code><nowiki>{{#ask:[[{{PAGENAME}}]]|?Value1#|?Value2#|format=min}}</nowiki></code> :  
* Without separator <code><nowiki>{{#ask:[[{{PAGENAME}}]]|?Value1#|?Value2#|format=min}}</nowiki></code> :  
| '''{{#ask:[[{{PAGENAME}}]]|?Value1#|?Value2#|format=min}}'''
| '''{{#ask:[[{{PAGENAME}}]]|?Value1#|?Value2#|format=min}}'''
|-
|
* <code><nowiki>{{#number_format:{{#ask:[[{{PAGENAME}}]]|?Value1#|?Value2|format=min}}|,||.}}</nowiki></code> :
| '''{{#number_format:{{#ask:[[{{PAGENAME}}]]|?Value1#|?Value2|format=min}}|,||.}}'''
|}
|}



Version du 26 novembre 2015 à 16:00

Properties

  • Property:Value1 : 1000.55« .55 » n’est pas déclaré comme une unité valide de mesure pour cette propriété.
  • Property:Value2 : 21000.42« .42 » 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

#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}}|,||.}} :
1.001

#Ask format=max

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

#Ask format=sum

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