לדלג לתוכן

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

מתוך צפונות ויקי
עריכה
אין תקציר עריכה
שורה 34: שורה 34:
         ["wrapper-suffix"] = " </span>"
         ["wrapper-suffix"] = " </span>"
     }
     }
local options_empty = {}


local result = {
local result = {
שורה 41: שורה 40:
[4] = options_rest, -- ויקיפדיה
[4] = options_rest, -- ויקיפדיה
[6] = options_0, -- קובץ
[6] = options_0, -- קובץ
[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

גרסה מ־20:49, 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 result = {
	[0] = options_0,		-- ערכים
	[2] = options_rest,		-- משתמש	
	[4] = options_rest,		-- ויקיפדיה
	[6] = options_0,		-- קובץ
	[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