aboutsummaryrefslogtreecommitdiff
path: root/files/es/web/javascript/reference/global_objects/number
diff options
context:
space:
mode:
authorYujiSoftware <yuji.software+github@gmail.com>2022-03-03 22:36:23 +0900
committerGitHub <noreply@github.com>2022-03-03 07:36:23 -0600
commit0ce7202a706c9036eeea42c158f433c2b7940457 (patch)
tree4e952b5472e3140bd12ac07e77df3aa47e79b60f /files/es/web/javascript/reference/global_objects/number
parent581e6fb5827a5450e295c91250dd0563a3c9251a (diff)
downloadtranslated-content-0ce7202a706c9036eeea42c158f433c2b7940457.tar.gz
translated-content-0ce7202a706c9036eeea42c158f433c2b7940457.tar.bz2
translated-content-0ce7202a706c9036eeea42c158f433c2b7940457.zip
Migrate CompatibilityTable to Compat macro (es) (#4355)
* Migrate CompatibilityTable to Compat macro (es) * Migrate to multiple Compat macro (es)
Diffstat (limited to 'files/es/web/javascript/reference/global_objects/number')
-rw-r--r--files/es/web/javascript/reference/global_objects/number/isnan/index.html50
-rw-r--r--files/es/web/javascript/reference/global_objects/number/max_value/index.html50
-rw-r--r--files/es/web/javascript/reference/global_objects/number/min_value/index.html50
-rw-r--r--files/es/web/javascript/reference/global_objects/number/negative_infinity/index.html49
-rw-r--r--files/es/web/javascript/reference/global_objects/number/positive_infinity/index.html49
-rw-r--r--files/es/web/javascript/reference/global_objects/number/tofixed/index.html50
6 files changed, 8 insertions, 290 deletions
diff --git a/files/es/web/javascript/reference/global_objects/number/isnan/index.html b/files/es/web/javascript/reference/global_objects/number/isnan/index.html
index 5d638d528f..b8336e5905 100644
--- a/files/es/web/javascript/reference/global_objects/number/isnan/index.html
+++ b/files/es/web/javascript/reference/global_objects/number/isnan/index.html
@@ -83,55 +83,7 @@ Number.isNaN = Number.isNaN || function(value) {
<h2 id="Compatibilidad_de_navegador">Compatibilidad de navegador</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatChrome("25")}}</td>
- <td>{{CompatGeckoDesktop("15")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>9</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatGeckoMobile("15")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>9</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("javascript.builtins.Number.isNaN")}}
<h2 id="Ver_también">Ver también</h2>
diff --git a/files/es/web/javascript/reference/global_objects/number/max_value/index.html b/files/es/web/javascript/reference/global_objects/number/max_value/index.html
index 814beaac14..940a014da8 100644
--- a/files/es/web/javascript/reference/global_objects/number/max_value/index.html
+++ b/files/es/web/javascript/reference/global_objects/number/max_value/index.html
@@ -75,55 +75,7 @@ verificarValorMaximo(numero2); // El número es infinito
<h2 id="Compatibilidad">Compatibilidad</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("javascript.builtins.Number.MAX_VALUE")}}
<h2 id="Ver_también">Ver también</h2>
diff --git a/files/es/web/javascript/reference/global_objects/number/min_value/index.html b/files/es/web/javascript/reference/global_objects/number/min_value/index.html
index 3b0b515b63..caa21971bb 100644
--- a/files/es/web/javascript/reference/global_objects/number/min_value/index.html
+++ b/files/es/web/javascript/reference/global_objects/number/min_value/index.html
@@ -65,55 +65,7 @@ original_slug: Web/JavaScript/Referencia/Objetos_globales/Number/MIN_VALUE
<h2 id="Compatibilidad_de_navegador">Compatibilidad de navegador</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("javascript.builtins.Number.MIN_VALUE")}}
<h2 id="Ver_también">Ver también</h2>
diff --git a/files/es/web/javascript/reference/global_objects/number/negative_infinity/index.html b/files/es/web/javascript/reference/global_objects/number/negative_infinity/index.html
index 5103aa5df2..c5691c6002 100644
--- a/files/es/web/javascript/reference/global_objects/number/negative_infinity/index.html
+++ b/files/es/web/javascript/reference/global_objects/number/negative_infinity/index.html
@@ -63,53 +63,8 @@ if (smallNumber === Number.NEGATIVE_INFINITY) {
</tbody>
</table>
<h2 id="Compatibilidad_con_navegadores">Compatibilidad con navegadores</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div id="compat-desktop">
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Característica</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Soporte básico</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div id="compat-mobile">
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Característica</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Soporte básico</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- </tr>
- </tbody>
- </table>
-</div>
+{{Compat("javascript.builtins.Number.NEGATIVE_INFINITY")}}
+
<h2 id="See_also" name="See_also">Ver también</h2>
<ul>
<li>{{jsxref("Number.POSITIVE_INFINITY")}}</li>
diff --git a/files/es/web/javascript/reference/global_objects/number/positive_infinity/index.html b/files/es/web/javascript/reference/global_objects/number/positive_infinity/index.html
index 72c482b252..f83071f114 100644
--- a/files/es/web/javascript/reference/global_objects/number/positive_infinity/index.html
+++ b/files/es/web/javascript/reference/global_objects/number/positive_infinity/index.html
@@ -61,53 +61,8 @@ if (bigNumber === Number.POSITIVE_INFINITY) {
</tbody>
</table>
<h2 id="Compatibilidad_con_navegadores">Compatibilidad con navegadores</h2>
-<p>{{ CompatibilityTable() }}</p>
-<div id="compat-desktop">
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Caracteristica</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Soporte básico</td>
- <td>(SI)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- </tr>
- </tbody>
- </table>
-</div>
-<div id="compat-mobile">
- <table class="compat-table">
- <tbody>
- <tr>
- <th>Caracteristica</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Soprote básico</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- <td>(Si)</td>
- </tr>
- </tbody>
- </table>
-</div>
+{{Compat("javascript.builtins.Number.POSITIVE_INFINITY")}}
+
<h2 id="See_also" name="See_also">Ver también</h2>
<ul>
<li>{{jsxref("Number.NEGATIVE_INFINITY")}}</li>
diff --git a/files/es/web/javascript/reference/global_objects/number/tofixed/index.html b/files/es/web/javascript/reference/global_objects/number/tofixed/index.html
index 429a8f5a85..7380afdd4d 100644
--- a/files/es/web/javascript/reference/global_objects/number/tofixed/index.html
+++ b/files/es/web/javascript/reference/global_objects/number/tofixed/index.html
@@ -89,55 +89,7 @@ numObj.toFixed(6); // Returns '12345.678900': note added zeros
<h2 id="Browser_compatibility">Browser compatibility</h2>
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
+{{Compat("javascript.builtins.Number.toFixed")}}
<h2 id="See_also">See also</h2>