Skip to content

Commit

Permalink
chore(macros): deprecate old compatibility table macros (mdn#6251)
Browse files Browse the repository at this point in the history
- {{CompatAndroid}}
- {{CompatChrome}}
- {{CompatGeckoDesktop}}
- {{CompatGeckoMobile}}
- {{CompatIE}}
- {{CompatNo}}
- {{CompatOpera}}
- {{CompatOperaMobile}}
- {{CompatSafari}}
- {{CompatUnknown}}
- {{CompatVersionUnknown}}
- {{CompatibilityTable}}
  • Loading branch information
queengooborg authored and OnkarRuikar committed Jun 2, 2022
1 parent c8a4fc5 commit d598238
Show file tree
Hide file tree
Showing 12 changed files with 88 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kumascript/macros/CompatAndroid.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<%
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var AndroidVer = $0;
%>

Expand Down
7 changes: 7 additions & 0 deletions kumascript/macros/CompatChrome.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
// Parameters:
// $0 The Chrome version number
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var ChromeVer = $0;
%>
<%-ChromeVer%>
7 changes: 7 additions & 0 deletions kumascript/macros/CompatGeckoDesktop.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<%
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var fxVer = '';
var geckoVer = $0;
Expand Down
7 changes: 7 additions & 0 deletions kumascript/macros/CompatGeckoMobile.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<%
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var fxVer = '';
var gecko = $0.split('.',1);
if (gecko == '2') {
Expand Down
7 changes: 7 additions & 0 deletions kumascript/macros/CompatIE.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<%
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var IEver = $0;
%>

Expand Down
8 changes: 8 additions & 0 deletions kumascript/macros/CompatNo.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<%
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var text = mdn.localString({
"en-US": "No&nbsp;support",
"de" : "Nicht unterstützt",
Expand Down
7 changes: 7 additions & 0 deletions kumascript/macros/CompatOpera.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<%
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var OperaVer = $0;
%>
<%- OperaVer %>
7 changes: 7 additions & 0 deletions kumascript/macros/CompatOperaMobile.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<%
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var OperaVer = $0;
%>
<%-OperaVer%>
7 changes: 7 additions & 0 deletions kumascript/macros/CompatSafari.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<%
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var SafariVer = $0;
%>
<%- SafariVer %>
8 changes: 8 additions & 0 deletions kumascript/macros/CompatUnknown.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<%
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var style = "color: rgb(255, 153, 0);";
// Localizers: add your language to the switch statement below!
Expand Down
8 changes: 8 additions & 0 deletions kumascript/macros/CompatVersionUnknown.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<%
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var str = mdn.localStringMap({
"en-US": {
'title': "Please update this with the earliest version of support.",
Expand Down
8 changes: 8 additions & 0 deletions kumascript/macros/CompatibilityTable.ejs
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
<%
// Compatibility tables have been migrated to {{Compat}} which uses the
// browser-compat-data project. Remove this file when compat tables in
// translated-content are converted to {{Compat}}
// Throw a MacroDeprecatedError flaw
mdn.deprecated()
var s_header = mdn.localString({
"en-US": [ "Desktop", "Mobile" ],
"pt-BR": [ "Desktop", "Dispositivo móvel" ],
Expand Down

0 comments on commit d598238

Please sign in to comment.