Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Module:Pagename
(view source)
Revision as of 12:48, 12 May 2021
372 bytes added
,
3 years ago
m
5 revisions imported
Line 1:
Line 1:
+
local getArgs = require('Module:GetArgs')
+
return {
return {
format = function(frame)
format = function(frame)
Line 4:
Line 6:
local f2 = f1 and f1:getParent()
local f2 = f1 and f1:getParent()
local f3 = f2 and f2:getParent()
local f3 = f2 and f2:getParent()
−
return (
f1 and f1.
args
.pagename or '
x
') .. (
f2
and
f2.args
.pagename or '
x
') .. (
f3
and
f3.args
.pagename or '
x
')
+
local a1 = f1 and getArgs{ frame = f1 }
+
local a2 = f2 and getArgs{ frame = f2 }
+
local a3 = f3 and getArgs{ frame = f3 }
+
local s1 =
f1 and
(
f1
:getTitle() .. ','
.
. (a1 and a1
.pagename or '
-
'
)) or '='
+
local s2 = f2 and (f2:getTitle(
)
.. ','
.. (
a2
and
a2
.pagename or '
-
'
)) or '='
+
local s3 = f3 and (f3:getTitle(
)
.. ','
.. (
a3
and
a3
.pagename or '
-
')
) or '='
+
return s1 .. ';' .. s2 .. ';' .. s3
end
end
}
}
Botkaze
Bots
, gkautomate
12,557
edits