Template:ObsoleteBadge

  • Revision slug: Template:ObsoleteBadge
  • Revision title: Template:ObsoleteBadge
  • Revision id: 430035
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment

Revision Content

<% // Inserts a badge marking an API or term as being obsolete. // // Parameters: // $0 If specified, the badge is "small" var titleAttrValue = mdn.localString({ "ca": "This is an obsolete API and is no longer guaranteed to work.", "cs": "This is an obsolete API and is no longer guaranteed to work.", "de": "This is an obsolete API and is no longer guaranteed to work.", "el": "This is an obsolete API and is no longer guaranteed to work.", "es": "This is an obsolete API and is no longer guaranteed to work.", "fa": "This is an obsolete API and is no longer guaranteed to work.", "fi": "This is an obsolete API and is no longer guaranteed to work.", "fr": "This is an obsolete API and is no longer guaranteed to work.", "he": "This is an obsolete API and is no longer guaranteed to work.", "hr": "This is an obsolete API and is no longer guaranteed to work.", "hu": "This is an obsolete API and is no longer guaranteed to work.", "id": "This is an obsolete API and is no longer guaranteed to work.", "it": "This is an obsolete API and is no longer guaranteed to work.", "ja": "これは廃止されたAPIであり、今後の動作は保障されていません。ご注意下さい。", "ka": "This is an obsolete API and is no longer guaranteed to work.", "ko": "This is an obsolete API and is no longer guaranteed to work.", "ms": "This is an obsolete API and is no longer guaranteed to work.", "nl": "This is an obsolete API and is no longer guaranteed to work.", "pl": "This is an obsolete API and is no longer guaranteed to work.", "ro": "This is an obsolete API and is no longer guaranteed to work.", "ru": "This is an obsolete API and is no longer guaranteed to work.", "sq": "This is an obsolete API and is no longer guaranteed to work.", "th": "This is an obsolete API and is no longer guaranteed to work.", "tr": "This is an obsolete API and is no longer guaranteed to work.", "vi": "This is an obsolete API and is no longer guaranteed to work.", "bn-BD": "This is an obsolete API and is no longer guaranteed to work.", "fy-NL": "This is an obsolete API and is no longer guaranteed to work.", "ga-IE": "This is an obsolete API and is no longer guaranteed to work.", "pt-BR": "This is an obsolete API and is no longer guaranteed to work.", "pt-PT": "This is an obsolete API and is no longer guaranteed to work.", "zh-CN": "This is an obsolete API and is no longer guaranteed to work.", "zh-TW": "This is an obsolete API and is no longer guaranteed to work.", "en-US": "This is an obsolete API and is no longer guaranteed to work." }); var str = ""; if ($0) { %><% } else { str = mdn.localString({ "ca": "Obsolete", "cs": "Obsolete", "de": "Obsolete", "el": "Obsolete", "es": "Obsolete", "fa": "Obsolete", "fi": "Obsolete", "fr": "Obsolete", "he": "Obsolete", "hr": "Obsolete", "hu": "Obsolete", "id": "Obsolete", "it": "Obsolete", "ja": "廃止", "ka": "Obsolete", "ko": "Obsolete", "ms": "Obsolete", "nl": "Obsolete", "pl": "Obsolete", "ro": "Obsolete", "ru": "Obsolete", "sq": "Obsolete", "th": "Obsolete", "tr": "Obsolete", "vi": "Obsolete", "bn-BD": "Obsolete", "fy-NL": "Obsolete", "ga-IE": "Obsolete", "pt-BR": "Obsolete", "pt-PT": "Obsolete", "zh-CN": "Obsolete", "zh-TW": "Obsolete", "en-US": "Obsolete" }); %><%-template("SimpleBadge", [str, "obsoleteBadge", titleAttrValue])%><% } %>

Revision Source

<%
// Inserts a badge marking an API or term as being obsolete.
//
// Parameters:
//  $0  If specified, the badge is "small"

var titleAttrValue = mdn.localString({
    "ca": "This is an obsolete API and is no longer guaranteed to work.",
    "cs": "This is an obsolete API and is no longer guaranteed to work.",
    "de": "This is an obsolete API and is no longer guaranteed to work.",
    "el": "This is an obsolete API and is no longer guaranteed to work.",
    "es": "This is an obsolete API and is no longer guaranteed to work.",
    "fa": "This is an obsolete API and is no longer guaranteed to work.",
    "fi": "This is an obsolete API and is no longer guaranteed to work.",
    "fr": "This is an obsolete API and is no longer guaranteed to work.",
    "he": "This is an obsolete API and is no longer guaranteed to work.",
    "hr": "This is an obsolete API and is no longer guaranteed to work.",
    "hu": "This is an obsolete API and is no longer guaranteed to work.",
    "id": "This is an obsolete API and is no longer guaranteed to work.",
    "it": "This is an obsolete API and is no longer guaranteed to work.",
    "ja": "これは廃止されたAPIであり、今後の動作は保障されていません。ご注意下さい。",
    "ka": "This is an obsolete API and is no longer guaranteed to work.",
    "ko": "This is an obsolete API and is no longer guaranteed to work.",
    "ms": "This is an obsolete API and is no longer guaranteed to work.",
    "nl": "This is an obsolete API and is no longer guaranteed to work.",
    "pl": "This is an obsolete API and is no longer guaranteed to work.",
    "ro": "This is an obsolete API and is no longer guaranteed to work.",
    "ru": "This is an obsolete API and is no longer guaranteed to work.",
    "sq": "This is an obsolete API and is no longer guaranteed to work.",
    "th": "This is an obsolete API and is no longer guaranteed to work.",
    "tr": "This is an obsolete API and is no longer guaranteed to work.",
    "vi": "This is an obsolete API and is no longer guaranteed to work.",
    "bn-BD": "This is an obsolete API and is no longer guaranteed to work.",
    "fy-NL": "This is an obsolete API and is no longer guaranteed to work.",
    "ga-IE": "This is an obsolete API and is no longer guaranteed to work.",
    "pt-BR": "This is an obsolete API and is no longer guaranteed to work.",
    "pt-PT": "This is an obsolete API and is no longer guaranteed to work.",
    "zh-CN": "This is an obsolete API and is no longer guaranteed to work.",
    "zh-TW": "This is an obsolete API and is no longer guaranteed to work.",
    "en-US": "This is an obsolete API and is no longer guaranteed to work."
});

var str = "";

if ($0) {
    %><span title="<%=titleAttrValue%>" style="cursor:default;color:red;"><i class="icon-trash"></i></span><%
} else {
str = mdn.localString({
    "ca": "Obsolete",
    "cs": "Obsolete",
    "de": "Obsolete",
    "el": "Obsolete",
    "es": "Obsolete",
    "fa": "Obsolete",
    "fi": "Obsolete",
    "fr": "Obsolete",
    "he": "Obsolete",
    "hr": "Obsolete",
    "hu": "Obsolete",
    "id": "Obsolete",
    "it": "Obsolete",
    "ja": "廃止",
    "ka": "Obsolete",
    "ko": "Obsolete",
    "ms": "Obsolete",
    "nl": "Obsolete",
    "pl": "Obsolete",
    "ro": "Obsolete",
    "ru": "Obsolete",
    "sq": "Obsolete",
    "th": "Obsolete",
    "tr": "Obsolete",
    "vi": "Obsolete",
    "bn-BD": "Obsolete",
    "fy-NL": "Obsolete",
    "ga-IE": "Obsolete",
    "pt-BR": "Obsolete",
    "pt-PT": "Obsolete",
    "zh-CN": "Obsolete",
    "zh-TW": "Obsolete",
    "en-US": "Obsolete"
});

%><%-template("SimpleBadge", [str, "obsoleteBadge", titleAttrValue])%><%
}
%>
Revert to this revision