View source for Module:Wikipedia Signpost/Main page top preview

MyWikiBiz, Author Your Legacy — Saturday March 29, 2025
Jump to navigationJump to search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in one of the groups: Users, vuser.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

-- This module allows [[Wikipedia:Wikipedia Signpost/Templates/Main page top]] to
-- be previewed with today's date and an incremented issue number.
p = {}
p.top = function()
local title = mw.title.new("Wikipedia:Wikipedia Signpost/Templates/Main page top")
local wikitext = title:getContent()
:gsub("<!%-%-.-%-%->","") -- remove comments
:gsub("<noinclude>.-</noinclude>","") -- remove noincludes
:gsub("{{Wikipedia:Wikipedia Signpost/Issue|1}}", "{{TODAY}}") -- use current date
:gsub( -- increment issue number
"{{Str right|{{Wikipedia:Wikipedia Signpost/Issue|2}}|10}}",
"issue {{#expr:1+{{Str right|{{Wikipedia:Wikipedia Signpost/Issue|2}}|16}}}}"
)
-- process and return the wikitext
return mw.getCurrentFrame():preprocess( wikitext )
end
return p
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Debug console
* The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console.

Return to Module:Wikipedia Signpost/Main page top preview.