לדלג לתוכן

יחידה:PV-options: הבדלים בין גרסאות בדף

מתוך צפונות ויקי
אין תקציר עריכה
עריכה
שורה 35: שורה 35:
     }
     }
local options_empty = {}
local options_empty = {}
local result = {
local result = {
[0] = options_0, [1] = options_empty,
[0] = options_0, -- ערכים
[2] = options_rest, [3] = options_empty,
[2] = options_rest, -- משתמש
[4] = options_rest, [5] = options_empty,
[4] = options_rest, -- ויקיפדיה
[6] = options_0, [7] = options_empty,
[6] = options_0, -- קובץ
[8] = options_rest, [9] = options_empty,
[8] = options_rest, -- מדיה ויקי ??????  ?מה פתאום מדיה ויקי?
[10] = options_0, [11] = options_empty,
[10] = options_0, -- תבנית
[12] = options_rest, [13] = options_empty,
[12] = options_rest, -- עזרה
[14] = options_0, [15] = options_empty,
[14] = options_0, -- קטגוריה
[100] = options_0, [101] = options_empty,
[100] = options_0, -- וכן הלאה
[108] = options_rest, [109] = options_empty,
[108] = options_rest,
[118] = options_rest, [119] = options_empty,
[118] = options_rest,
[446] = options_rest, [447] = options_empty,
[446] = options_rest,
[828] = options_rest, [829] = options_empty,
[828] = options_rest,
[2300] = options_rest, [2301] = options_empty,
[2300] = options_rest,
[2302] = options_rest, [2303] = options_empty,
[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