Dead by Daylight Wiki
Linia 1: Linia 1:
 
--DO NOT CHANGE
 
--DO NOT CHANGE
  +
require("Module:Extensions")
 
bar = "|" -- code for |
 
bar = "|" -- code for |
 
br = "<br>" --break
 
br = "<br>" --break
Linia 17: Linia 18:
 
pg = "<p>" --paragraph
 
pg = "<p>" --paragraph
 
ntl = "|-" -- new table line
 
ntl = "|-" -- new table line
hl = "! " -- header line
+
hl = "!" -- header line
 
tl = "|" --table line
 
tl = "|" --table line
 
dtl = "||" -- double table line
 
dtl = "||" -- double table line
Linia 43: Linia 44:
 
ils = {
 
ils = {
 
-- Interaction
 
-- Interaction
baseHooks = "Haki w Piwnicy",
+
basementHooks = "Haki w Piwnicy",
blastMines = "Miny",
+
blastMines = "Miny",
bWall = "Ściana do Zniszczenia",
+
breakableWall = "Ściana do Zniszczenia",
bWalls = "Ściany do Zniszczenia",
+
breakableWalls = "Ściany do Zniszczenia",
boonTotem = "Dobry Totem",
+
boonTotem = "Dobry Totem",
chest = "Skrzynia",
+
boonTotems = "Dobre Totemy",
chests = "Skrzynie",
+
chest = "Skrzynia",
dullTotem = "Zwykły Totem",
+
chests = "Skrzynie",
eMedkit = "Apteczka Awaryjna",
+
dullTotem = "Zwykły Totem",
  +
emergencyMedKit = "Apteczka Awaryjna",
exitGate = "Brama Wyjściowa",
 
exitGates = "Bramy Wyjściowe",
+
exitGate = "Brama Wyjściowa",
  +
exitGates = "Bramy Wyjściowe",
eGateSwitches = "Przełączniki Bram Wyjściowych",
 
  +
exitGateSwitch = "Przełącznik Bram Wyjściowych",
failedSChecks = "Chybione Testy Umiejętności",
 
 
exitGateSwitches = "Przełączniki Bram Wyjściowych",
firecrackers = "Fajerwerki",
 
 
failedSChecks = "Chybione Testy Umiejętności",
flashlights = "Latarki",
 
 
firecrackers = "Fajerwerki",
flashbangs = "Granaty Błyskowe",
 
 
flashlights = "Latarki",
flashGrenade = "Granat Błyskowy",
 
gen = "Generator",
+
flashbangs = "Granaty Błyskowe",
 
flashGrenade = "Granat Błyskowy",
gens = "Generatory",
 
  +
gen = "Generator",
gSkillCheck = "Dobry Test Umiejętności",
 
 
gens = "Generatory",
gSkillChecks = "Dobre Testy Umiejętności",
 
 
goodSkillCheck = "Dobry Test Umiejętności",
hatch = "Właz",
 
 
goodSkillChecks = "Dobre Testy Umiejętności",
hexTotem = "Przeklęty Totem",
 
hexTotems = "Przeklęte Totemy",
+
hatch = "Właz",
hook = "Hak",
+
hexTotem = "Przeklęty Totem",
hooks = "Haki",
+
hexTotems = "Przeklęte Totemy",
item = "Przedmiot",
+
hook = "Hak",
items = "Przedmioty",
+
hooks = "Haki",
locker = "Szafka",
+
item = "Przedmiot",
lockers = "Szafki",
+
items = "Przedmioty",
map = "Mapa",
+
locker = "Szafka",
medkit = "Apteczka",
+
lockers = "Szafki",
medkits = "Apteczki",
+
map = "Mapa",
pallet = "Paleta",
+
medkit = "Apteczka",
pallets = "Palety",
+
medkits = "Apteczki",
survivor = "Ocalały",
+
pallet = "Paleta",
survivors = "Ocalali",
+
pallets = "Palety",
skillCheck = "Test Umiejętności",
+
survivor = "Ocalały",
  +
survivors = "Ocalali",
skillChecks = "Testy Umiejętności",
 
  +
skillCheck = "Test Umiejętności",
toolbox = "Skrzynka z Narzędziami",
 
 
skillChecks = "Testy Umiejętności",
totem = "Totem",
 
totems = "Totemy",
+
toolbox = "Skrzynka z Narzędziami",
 
totem = "Totem",
greatSCheck = "Świetny Test Umiejętności",
 
  +
totems = "Totemy",
greatSChecks = "Świetne Testy Umiejętności",
 
 
greatSkillCheck = "Świetny Test Umiejętności",
window = "Okno",
 
 
greatSkillChecks = "Świetne Testy Umiejętności",
windows = "Okna",
 
 
window = "Okno",
 
windows = "Okna",
 
 
 
-- UI (Status Effects, Auras)
 
-- UI (Status Effects, Auras)
Linia 95: Linia 98:
 
auras = "Aury",
 
auras = "Aury",
 
bleeding = "Krwawienie",
 
bleeding = "Krwawienie",
  +
blessed = "Błogosławiony",
 
blindness = "Oślepienie",
 
blindness = "Oślepienie",
 
bloodlust = "Żądza Krwi",
 
bloodlust = "Żądza Krwi",
 
broken = "Okaleczenie",
 
broken = "Okaleczenie",
  +
chance = "Szansa",
 
cursed = "Przeklęty",
 
cursed = "Przeklęty",
 
deepWound = "Głęboka Rana",
 
deepWound = "Głęboka Rana",
Linia 124: Linia 129:
 
bloodpoints = "Punkty Krwi",
 
bloodpoints = "Punkty Krwi",
 
crows = "Wrony",
 
crows = "Wrony",
devious = "Przebiegłość",
+
deviousness = "Przebiegłość",
 
dyingState = "Stan Agonii",
 
dyingState = "Stan Agonii",
 
entity = "Byt",
 
entity = "Byt",
Linia 131: Linia 136:
 
hunter = "Łowca",
 
hunter = "Łowca",
 
injuredState = "Stan Ranny",
 
injuredState = "Stan Ranny",
  +
objectives = "Cele",
 
poolsBlood = "Ślady Krwi",
 
poolsBlood = "Ślady Krwi",
  +
sacrifice = "Ofiara",
 
scratchMarks = "Czerwone Zarysowania",
 
scratchMarks = "Czerwone Zarysowania",
 
statusEffect = "Efekt",
 
statusEffect = "Efekt",
 
statusEffects = "Efekty",
 
statusEffects = "Efekty",
 
stillCrows = "Wrony Bezczynności",
 
stillCrows = "Wrony Bezczynności",
  +
survival = "Przetrwanie",
 
terrorRadius = "Zasięg Terroru",
 
terrorRadius = "Zasięg Terroru",
 
}
 
}
Linia 156: Linia 164:
 
function link(text)
 
function link(text)
 
return '[[' .. text .. ']]'
 
return '[[' .. text .. ']]'
  +
end
  +
  +
function file(text)
  +
return link(cstr.file .. text)
 
end
 
end
   
Linia 170: Linia 182:
 
function i(text)
 
function i(text)
 
return "''" .. text .. "''"
 
return "''" .. text .. "''"
  +
end
  +
  +
function join(...)
  +
local values
  +
local result = cstr.empty
  +
local sep = ", "
  +
if type(...) == "string" then
  +
values = {...}
  +
sep = table.remove(values)
  +
else
  +
values = {...}
  +
sep = table.remove(values)
  +
values = table.remove(values)
  +
end
  +
  +
for i, value in ipairs(values) do
  +
result = result .. value .. ((i < #values and sep) or cstr.empty)
  +
end
  +
return result
 
end
 
end
   
 
function the(alter)
 
function the(alter)
 
return (type(alter) == "table" and alter.the) or alter or cstr.the
 
return (type(alter) == "table" and alter.the) or alter or cstr.the
  +
end
  +
  +
--table line => creates a basic table line so it can be easily stacked
  +
function tLine(attrs, ...)
  +
local values = (type(...) == "string" and {...}) or ...
  +
local result = cstr.empty
  +
local separator = (values[#values] == hl and table.remove(values)) or tl --if the last item is header separator then set it to var
  +
--if separator == hl then table.remove(values) end --if the last item was a separator, then remove it from the list. It's not needed anymore
  +
result = result .. ntl .. nl .. separator .. ((attrs and space .. attrs .. space .. tl) or cstr.empty) .. space .. table.remove(values, 1)
  +
for _, value in ipairs(values) do
  +
result = result .. space .. separator .. separator .. space .. value
  +
end
  +
return result .. nl
  +
end
  +
  +
--table header line => same as table line, just for header version
  +
function thLine(attrs, ...)
  +
local values = {...}
  +
table.insert(values, hl)
  +
return tLine(attrs, values)
 
end
 
end

Wersja z 10:40, 23 lut 2022


--DO NOT CHANGE
require("Module:Extensions")
bar = "&#124;" -- code for |
br = "<br>" --break
brnl = "<br>\n" --break new line
space = " "
dot = "."
comma = ", "
colon = ":"
bullet = "\n* " --deprecated, do not use!
nbullet = "*" --newBullet -> please use this version, the old will be removed eventually
dbullet = "\n** " --deprecated
ndbullet = "**"
nl = "\n" --new line
dnl = "\n\n" -- double new line
tnl = "\n\n\n" --tripple new line
nlp = "\n<p>" --new line paragraph
pg = "<p>" --paragraph
ntl = "|-" -- new table line
hl = "!" -- header line
tl = "|" --table line
dtl = "||" -- double table line

--common strings
--common strings
cstr = {
	file = "File:", --[[File: ...]]
	media = "Media:",
	empty = "",
	the = "The",
	contact = "Please Contact [[User:Jouki|Jouki]]",
	
	--File Formats
	ogg = 'ogg',
	mp3 = 'mp3',
	mp4 = 'mp4',
	jpg = 'jpg',
	jpeg= 'jpeg',
	png = 'png',
	gif = 'gif',
}

--iconLinkStrings
ils = {
	-- Interaction
	basementHooks	  = "Haki w Piwnicy",
	blastMines		  = "Miny",
	breakableWall	  = "Ściana do Zniszczenia",
	breakableWalls	  = "Ściany do Zniszczenia",
	boonTotem		  = "Dobry Totem",
	boonTotems  	  = "Dobre Totemy",
	chest			  = "Skrzynia",
	chests			  = "Skrzynie",
	dullTotem		  = "Zwykły Totem",
	emergencyMedKit	  = "Apteczka Awaryjna",
	exitGate		  = "Brama Wyjściowa",
	exitGates		  = "Bramy Wyjściowe",
	exitGateSwitch	  = "Przełącznik Bram Wyjściowych",
	exitGateSwitches  = "Przełączniki Bram Wyjściowych",
	failedSChecks	  = "Chybione Testy Umiejętności",
	firecrackers	  = "Fajerwerki",
	flashlights		  = "Latarki",
	flashbangs		  = "Granaty Błyskowe",
	flashGrenade	  = "Granat Błyskowy",
	gen				  = "Generator",
	gens			  = "Generatory",
	goodSkillCheck	  = "Dobry Test Umiejętności",
	goodSkillChecks	  = "Dobre Testy Umiejętności",
	hatch			  = "Właz",
	hexTotem		  = "Przeklęty Totem",
	hexTotems		  = "Przeklęte Totemy",
	hook			  = "Hak",
	hooks			  = "Haki",
	item			  = "Przedmiot",
	items			  = "Przedmioty",
	locker			  = "Szafka",
	lockers			  = "Szafki",
	map				  = "Mapa",
	medkit			  = "Apteczka",
	medkits			  = "Apteczki",
	pallet			  = "Paleta",
	pallets			  = "Palety",
	survivor		  = "Ocalały",
	survivors		  = "Ocalali",
	skillCheck		  = "Test Umiejętności",
	skillChecks		  = "Testy Umiejętności",
	toolbox			  = "Skrzynka z Narzędziami",
	totem			  = "Totem",
	totems			  = "Totemy",
	greatSkillCheck   = "Świetny Test Umiejętności",
	greatSkillChecks  = "Świetne Testy Umiejętności",
	window			  = "Okno",
	windows			  = "Okna",
	
	-- UI (Status Effects, Auras)
	adrenaline		= "Adrenalina",
	aura			= "Aura",
	auras			= "Aury",
	bleeding		= "Krwawienie",
	blessed         = "Błogosławiony",
	blindness		= "Oślepienie",
	bloodlust		= "Żądza Krwi",
	broken			= "Okaleczenie",
	chance          = "Szansa",
	cursed			= "Przeklęty",
	deepWound		= "Głęboka Rana",
	endurance		= "Wytrzymałość",
	exhausted		= "Wyczerpany",
	exhaustion		= "Wyczerpanie",
	exposed			= "Narażony",
	haemorrhage		= "Krwawienie",
	haste			= "Pośpiech",
	hindered		= "Skrępowany",
	incapacitated	= "Unieruchomiony",
	luck			= "Szczęście",
	mangled			= "Zmasakrowany",
	obsession		= "Obsesja",
	oblivious		= "Nieświadomy",
	undetectable	= "Niewykrywalny",
	
	-- Killers
	killer			= "Zabójca",
	nightmare		= "Koszmar",
	
	-- Misc.
	addon			= "Dodatek",
	altruism		= "Altruizm",
	basement		= "Piwnica",
	bloodpoints		= "Punkty Krwi",
	crows			= "Wrony",
	deviousness		= "Przebiegłość",
	dyingState		= "Stan Agonii",
	entity			= "Byt",
	healthState		= "Stan Zdrowia",
	healthy			= "Zdrowy",
	hunter			= "Łowca",
	injuredState    = "Stan Ranny",
	objectives      = "Cele",
	poolsBlood		= "Ślady Krwi",
	sacrifice       = "Ofiara",
	scratchMarks	= "Czerwone Zarysowania",
	statusEffect	= "Efekt",
	statusEffects	= "Efekty",
	stillCrows      = "Wrony Bezczynności",
	survival        = "Przetrwanie",
	terrorRadius	= "Zasięg Terroru",
}

function clr(color, text)
	local utils = require("Module:Utils")
	return utils.clr(text, color)
end

function bclr(color, text)
	local utils = require("Module:Utils")
	return b(utils.clr(text, color))
end

function iclr(color, text)
	local utils = require("Module:Utils")
	return i(utils.clr(text, color))
end

function link(text)
	return '[[' .. text .. ']]'
end

function file(text)
	return link(cstr.file .. text)
end

function brackets(text)
	return '(' .. text .. ')'
end

--bold function
function b(text)
	return "'''" .. text .. "'''"
end

--italic function
function i(text)
	return "''" .. text .. "''"
end

function join(...)
	local values
	local result = cstr.empty
	local sep = ", "
	if type(...) == "string" then
		values = {...}
		sep = table.remove(values)
	else 
		values = {...}
		sep = table.remove(values)
		values = table.remove(values)
	end
	
	for i, value in ipairs(values) do
		result = result .. value .. ((i < #values and sep) or cstr.empty)
	end
	return result
end

function the(alter)
	return (type(alter) == "table" and alter.the) or alter or cstr.the
end

--table line => creates a basic table line so it can be easily stacked
function tLine(attrs, ...)
	local values = (type(...) == "string" and {...}) or ...
	local result = cstr.empty
	local separator = (values[#values] == hl and table.remove(values)) or tl --if the last item is header separator then set it to var
	--if separator == hl then table.remove(values) end --if the last item was a separator, then remove it from the list. It's not needed anymore
	result = result .. ntl .. nl .. separator .. ((attrs and space .. attrs .. space .. tl) or cstr.empty) .. space .. table.remove(values, 1)
	for _, value in ipairs(values) do
		result = result .. space .. separator .. separator .. space .. value
	end
	return result .. nl
end

--table header line => same as table line, just for header version
function thLine(attrs, ...)
	local values = {...}
	table.insert(values, hl)
	return tLine(attrs, values)
end