diff --git a/kumascript/macros/htmlattrxref.ejs b/kumascript/macros/htmlattrxref.ejs deleted file mode 100644 index 7a6e0e58ca2c..000000000000 --- a/kumascript/macros/htmlattrxref.ejs +++ /dev/null @@ -1,46 +0,0 @@ -<% -// Inserts a link to the specified attribute of a particular HTML element. -// -// Parameters: -// $0 The attribute to insert -// $1 The element on which the attribute is used (optional) -// $2 The text to display (between code) -// $3 If set, do not put the text in -// -// If the element isn't specified, the link is made to the Global Attributes -// page. - -// Throw a MacroDeprecatedError flaw -// Condition for removal: no more use in translated-content -// 0 occurrences left in en-US -mdn.deprecated("This macro is deprecated; see https://github.com/orgs/mdn/discussions/347 to learn how to replace it."); - - -var lang = env.locale; -var url = ""; - -var globalAttrSlug = mdn.localString({ - "en-US": "Global_attributes", - "fr" : "Attributs_universels" -}); - -const attrLC = $0.toLowerCase(); - -var text = ($2 && ($2!=undefined)) ? $2 : attrLC; - -let basePath; -if ($1) { - basePath = '/' + lang + '/docs/Web/HTML/Element/'; - url = basePath + $1 + '#attr-' + attrLC; -} else { - url = '/' + lang + '/docs/Web/HTML/' + globalAttrSlug + '#' + attrLC; -} - -if (!$3) { - text = `${text}`; -} - -const result = web.smartLink(url, null, text, $1, basePath); - -%> -<%- result %>