יחידה:PV-options: הבדלים בין גרסאות בדף
מראה
IKhitron שינה את מודל התוכן של הדף יחידה:PV-options מ"JavaScript" ל"Scribunto" |
אין תקציר עריכה |
||
| שורה 1: | שורה 1: | ||
local options_0 = { | |||
["no-templatedata"] = "[[קטגוריה:שגיאות פרמטריות אין templatedata תקין]] <span class='paramvalidator-error'><br/>לא נמצא templatedata תקין </span>", | |||
["undeclared"] = "[[קטגוריה:שגיאות פרמטריות שם שגוי]] <span class='paramvalidator-error'><br/>פרמטרים [ paramname ] לא מופיעים בהגדרת התבנית </span>", | |||
["empty-undeclared"] = "[[קטגוריה:שגיאות פרמטריות שם שגוי ריק]] <span class='paramvalidator-error'><br/>פרמטרים ריקים [ paramname ] לא מופיעים בהגדרת התבנית </span>", | |||
["undeclared-numeric"] = "[[קטגוריה:שגיאות פרמטריות מספר סודר שגוי]] <span class='paramvalidator-error'><br/>פרמטרים [ paramname ] לא מופיעים בהגדרת התבנית. </span>", | |||
["empty-undeclared-numeric"] = "[[קטגוריה:שגיאות פרמטריות מספר סודר שגוי ריק]] <span class='paramvalidator-error'><br/>פרמטרים ריקים [ paramname ] לא מופיעים בהגדרת התבנית </span>", | |||
["empty-required"] = "[[קטגוריה:שגיאות פרמטריות פרמטר חובה חסר]] <span class='paramvalidator-error'><br/>פרמטרי חובה [ paramname ] חסרים </span>", | |||
["deprecated"] = "[[קטגוריה:שגיאות פרמטריות שימוש בפרמטר מיושן]] <span class='paramvalidator-error'><br/>שימוש בפרמטרים מיושנים [ paramname ] </span>", | |||
["empty-deprecated"] = "[[קטגוריה:שגיאות פרמטריות שימוש בפרמטר מיושן ריק]] <span class='paramvalidator-error'><br/>שימוש בפרמטרים מיושנים ריקים [ paramname ] </span>", | |||
["incompatible"] = "[[קטגוריה:שגיאות פרמטריות סוג לא תואם]]<span class='paramvalidator-error'>סוג לא תואם [ paramname ]</span>", | |||
["duplicate"] = "[[קטגוריה:שגיאות פרמטריות כפילות פרמטרים]]<span class='paramvalidator-error'>כפילות פרמטרים [ paramname ]</span>", | |||
["multiple"] = "[[קטגוריה:שגיאות פרמטריות שגיאות ממספר סוגים]]", | |||
["any"] = "[[קטגוריה:שגיאות פרמטריות]][[קטגוריה:שגיאות פרמטריות בתבנית tname_naked]]", | |||
["doc-subpage"] = "תיעוד", | |||
["wrapper-שגיאות פרמטריות מחוץ למרחב הערכים"] = "<span class='paramvalidator-wrapper'><span class='paramvalidator-error' style='text-align:center;'><br/>שגיאות פרמטריות ב[[templatename]] </span>", | |||
["wrapper-suffix"] = " </span>" | |||
} | |||
local options_rest = { | |||
["no-templatedata"] = " <span class='paramvalidator-error'><br/>לא נמצא templatedata תקין </span>", | |||
["undeclared"] = " <span class='paramvalidator-error'><br/>פרמטרים [ paramname ] לא מופיעים בהגדרת התבנית </span>", | |||
["empty-undeclared"] = " <span class='paramvalidator-error'><br/>פרמטרים ריקים [ paramname ] לא מופיעים בהגדרת התבנית </span>", | |||
["undeclared-numeric"] = " <span class='paramvalidator-error'><br/>פרמטרים [ paramname ] לא מופיעים בהגדרת התבנית. </span>", | |||
["empty-undeclared-numeric"] = " <span class='paramvalidator-error'><br/>פרמטרים ריקים [ paramname ] לא מופיעים בהגדרת התבנית </span>", | |||
["empty-required"] = " <span class='paramvalidator-error'><br/>פרמטרי חובה [ paramname ] חסרים </span>", | |||
["deprecated"] = " <span class='paramvalidator-error'><br/>שימוש בפרמטרים מיושנים [ paramname ] </span>", | |||
["empty-deprecated"] = " <span class='paramvalidator-error'><br/>שימוש בפרמטרים מיושנים ריקים [ paramname ] </span>", | |||
["incompatible"] = "<span class='paramvalidator-error'>סוג לא תואם [ paramname ]</span>", | |||
["duplicate"] = "<span class='paramvalidator-error'>כפילות פרמטרים [ paramname ]</span>", | |||
["multiple"] = "", | |||
["any"] = "[[קטגוריה:שגיאות פרמטריות מחוץ למרחב הערכים]]", | |||
["doc-subpage"] = "תיעוד", | |||
["skip-empty-numeric"] = "0", | |||
["wrapper-שגיאות פרמטריות מחוץ למרחב הערכים"] = "<span class='paramvalidator-wrapper'><span class='paramvalidator-error' style='text-align:center;'><br/>שגיאות פרמטריות ב[[templatename]] </span>", | |||
["wrapper-suffix"] = " </span>" | |||
} | |||
local options_empty = {} | |||
-- "0, 6, 10, 14, 100" | |||
-- "2, 4, 8, 12, 108, 118, 446, 828, 2300, 2302, 2600" | |||
-- "1, 3, 5, 7, 9, 11, 13, 15, 101, 109, 119, 447, 829, 2301, 2303" | |||
local result = { | |||
[0] = options_0, | |||
[1] = options_empty, | |||
[2] = options_rest, | |||
[3] = options_empty, | |||
[4] = options_rest, | |||
[5] = options_empty, | |||
[6] = options_0, | |||
[7] = options_empty, | |||
[8] = options_rest, | |||
[9] = options_empty, | |||
[10] = options_0, | |||
[11] = options_empty, | |||
[12] = options_rest, | |||
[13] = options_empty, | |||
[14] = options_0, | |||
[15] = options_empty, | |||
[100] = options_0, | |||
[101] = options_empty, | |||
[108] = options_rest, | |||
[109] = options_empty, | |||
[118] = options_rest, | |||
[119] = options_empty, | |||
[446] = options_rest, | |||
[447] = options_empty, | |||
[828] = options_rest, | |||
[829] = options_empty, | |||
[2300] = options_rest, | |||
[2301] = options_empty, | |||
[2302] = options_rest, | |||
[2303] = options_empty, | |||
[2600] = options_rest, | |||
} | |||
return result | |||
גרסה מ־14:29, 22 באוקטובר 2017
ניתן ליצור תיעוד על היחידה הזאת בדף יחידה:PV-options/תיעוד
local options_0 = {
["no-templatedata"] = "[[קטגוריה:שגיאות פרמטריות אין templatedata תקין]] <span class='paramvalidator-error'><br/>לא נמצא templatedata תקין </span>",
["undeclared"] = "[[קטגוריה:שגיאות פרמטריות שם שגוי]] <span class='paramvalidator-error'><br/>פרמטרים [ paramname ] לא מופיעים בהגדרת התבנית </span>",
["empty-undeclared"] = "[[קטגוריה:שגיאות פרמטריות שם שגוי ריק]] <span class='paramvalidator-error'><br/>פרמטרים ריקים [ paramname ] לא מופיעים בהגדרת התבנית </span>",
["undeclared-numeric"] = "[[קטגוריה:שגיאות פרמטריות מספר סודר שגוי]] <span class='paramvalidator-error'><br/>פרמטרים [ paramname ] לא מופיעים בהגדרת התבנית. </span>",
["empty-undeclared-numeric"] = "[[קטגוריה:שגיאות פרמטריות מספר סודר שגוי ריק]] <span class='paramvalidator-error'><br/>פרמטרים ריקים [ paramname ] לא מופיעים בהגדרת התבנית </span>",
["empty-required"] = "[[קטגוריה:שגיאות פרמטריות פרמטר חובה חסר]] <span class='paramvalidator-error'><br/>פרמטרי חובה [ paramname ] חסרים </span>",
["deprecated"] = "[[קטגוריה:שגיאות פרמטריות שימוש בפרמטר מיושן]] <span class='paramvalidator-error'><br/>שימוש בפרמטרים מיושנים [ paramname ] </span>",
["empty-deprecated"] = "[[קטגוריה:שגיאות פרמטריות שימוש בפרמטר מיושן ריק]] <span class='paramvalidator-error'><br/>שימוש בפרמטרים מיושנים ריקים [ paramname ] </span>",
["incompatible"] = "[[קטגוריה:שגיאות פרמטריות סוג לא תואם]]<span class='paramvalidator-error'>סוג לא תואם [ paramname ]</span>",
["duplicate"] = "[[קטגוריה:שגיאות פרמטריות כפילות פרמטרים]]<span class='paramvalidator-error'>כפילות פרמטרים [ paramname ]</span>",
["multiple"] = "[[קטגוריה:שגיאות פרמטריות שגיאות ממספר סוגים]]",
["any"] = "[[קטגוריה:שגיאות פרמטריות]][[קטגוריה:שגיאות פרמטריות בתבנית tname_naked]]",
["doc-subpage"] = "תיעוד",
["wrapper-שגיאות פרמטריות מחוץ למרחב הערכים"] = "<span class='paramvalidator-wrapper'><span class='paramvalidator-error' style='text-align:center;'><br/>שגיאות פרמטריות ב[[templatename]] </span>",
["wrapper-suffix"] = " </span>"
}
local options_rest = {
["no-templatedata"] = " <span class='paramvalidator-error'><br/>לא נמצא templatedata תקין </span>",
["undeclared"] = " <span class='paramvalidator-error'><br/>פרמטרים [ paramname ] לא מופיעים בהגדרת התבנית </span>",
["empty-undeclared"] = " <span class='paramvalidator-error'><br/>פרמטרים ריקים [ paramname ] לא מופיעים בהגדרת התבנית </span>",
["undeclared-numeric"] = " <span class='paramvalidator-error'><br/>פרמטרים [ paramname ] לא מופיעים בהגדרת התבנית. </span>",
["empty-undeclared-numeric"] = " <span class='paramvalidator-error'><br/>פרמטרים ריקים [ paramname ] לא מופיעים בהגדרת התבנית </span>",
["empty-required"] = " <span class='paramvalidator-error'><br/>פרמטרי חובה [ paramname ] חסרים </span>",
["deprecated"] = " <span class='paramvalidator-error'><br/>שימוש בפרמטרים מיושנים [ paramname ] </span>",
["empty-deprecated"] = " <span class='paramvalidator-error'><br/>שימוש בפרמטרים מיושנים ריקים [ paramname ] </span>",
["incompatible"] = "<span class='paramvalidator-error'>סוג לא תואם [ paramname ]</span>",
["duplicate"] = "<span class='paramvalidator-error'>כפילות פרמטרים [ paramname ]</span>",
["multiple"] = "",
["any"] = "[[קטגוריה:שגיאות פרמטריות מחוץ למרחב הערכים]]",
["doc-subpage"] = "תיעוד",
["skip-empty-numeric"] = "0",
["wrapper-שגיאות פרמטריות מחוץ למרחב הערכים"] = "<span class='paramvalidator-wrapper'><span class='paramvalidator-error' style='text-align:center;'><br/>שגיאות פרמטריות ב[[templatename]] </span>",
["wrapper-suffix"] = " </span>"
}
local options_empty = {}
-- "0, 6, 10, 14, 100"
-- "2, 4, 8, 12, 108, 118, 446, 828, 2300, 2302, 2600"
-- "1, 3, 5, 7, 9, 11, 13, 15, 101, 109, 119, 447, 829, 2301, 2303"
local result = {
[0] = options_0,
[1] = options_empty,
[2] = options_rest,
[3] = options_empty,
[4] = options_rest,
[5] = options_empty,
[6] = options_0,
[7] = options_empty,
[8] = options_rest,
[9] = options_empty,
[10] = options_0,
[11] = options_empty,
[12] = options_rest,
[13] = options_empty,
[14] = options_0,
[15] = options_empty,
[100] = options_0,
[101] = options_empty,
[108] = options_rest,
[109] = options_empty,
[118] = options_rest,
[119] = options_empty,
[446] = options_rest,
[447] = options_empty,
[828] = options_rest,
[829] = options_empty,
[2300] = options_rest,
[2301] = options_empty,
[2302] = options_rest,
[2303] = options_empty,
[2600] = options_rest,
}
return result