יחידה:PV-options: הבדלים בין גרסאות בדף
מראה
אין תקציר עריכה |
עריכה |
||
| שורה 35: | שורה 35: | ||
} | } | ||
local options_empty = {} | local options_empty = {} | ||
local result = { | local result = { | ||
[0] = options_0, | [0] = options_0, -- ערכים | ||
[2] = options_rest, | [2] = options_rest, -- משתמש | ||
[4] = options_rest, | [4] = options_rest, -- ויקיפדיה | ||
[6] = options_0, | [6] = options_0, -- קובץ | ||
[8] = options_rest, | [8] = options_rest, -- מדיה ויקי ?????? ?מה פתאום מדיה ויקי? | ||
[10] = options_0, | [10] = options_0, -- תבנית | ||
[12] = options_rest, | [12] = options_rest, -- עזרה | ||
[14] = options_0, | [14] = options_0, -- קטגוריה | ||
[100] = options_0, | [100] = options_0, -- וכן הלאה | ||
[108] = options_rest | [108] = options_rest, | ||
[118] = options_rest | [118] = options_rest, | ||
[446] = options_rest | [446] = options_rest, | ||
[828] = options_rest | [828] = options_rest, | ||
[2300] = options_rest | [2300] = options_rest, | ||
[2302] = options_rest | [2302] = options_rest, | ||
[2600] = options_rest | [2600] = options_rest | ||
} | } | ||
return result | return result | ||
גרסה מ־18:24, 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 = {}
local result = {
[0] = options_0, -- ערכים
[2] = options_rest, -- משתמש
[4] = options_rest, -- ויקיפדיה
[6] = options_0, -- קובץ
[8] = options_rest, -- מדיה ויקי ?????? ?מה פתאום מדיה ויקי?
[10] = options_0, -- תבנית
[12] = options_rest, -- עזרה
[14] = options_0, -- קטגוריה
[100] = options_0, -- וכן הלאה
[108] = options_rest,
[118] = options_rest,
[446] = options_rest,
[828] = options_rest,
[2300] = options_rest,
[2302] = options_rest,
[2600] = options_rest
}
return result