Difference between revisions of "Module:Automatic archive navigator/config"

From blackwiki
Jump to navigation Jump to search
blackwiki>Mr. Stradivarius
(add archive prefix)
m (11 revisions imported)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
--------------------------------------------------------------------------------
 +
--            Configuration for Module:Automatic archive navigator
 +
--
 
-- This module contains configuration data for
 
-- This module contains configuration data for
-- [[Module:AutomaticArchiveNavigator]].
+
-- [[Module:Automatic archive navigator]]. It can be used to easily translate the
 +
-- module for use on other wikis, as well as changing settings like the default
 +
-- archive prefix and the default link count.
 +
--------------------------------------------------------------------------------
  
 
return {
 
return {
 +
 +
--------------------------------------------------------------------------------
 +
-- Blurb
 +
--------------------------------------------------------------------------------
 +
 +
-- The blurbs to use for the archive banner. If the "period" argument is
 +
-- specified, the "blurb-period" message is used; otherwise the "blurb-noperiod"
 +
-- message is used.
 +
-- $1 - the full page name of the current talk page (assumed to be the base
 +
--      page of the archive pages.
 +
-- $2 - the value of the "period" argument.
 
['blurb-period'] = "This is an '''[[Help:Archiving a talk page|archive]]''' " ..
 
['blurb-period'] = "This is an '''[[Help:Archiving a talk page|archive]]''' " ..
 
"of past discussions for the period '''$2'''. '''Do not edit the " ..
 
"of past discussions for the period '''$2'''. '''Do not edit the " ..
 
"contents of this page.''' If you wish to start a new discussion or " ..
 
"contents of this page.''' If you wish to start a new discussion or " ..
"revive an old one, please do so on the $1.",
+
"revive an old one, please do so on the [[$1|current talk page]].",
 
['blurb-noperiod'] = "This is an '''[[Help:Archiving a talk page|archive]]''' " ..
 
['blurb-noperiod'] = "This is an '''[[Help:Archiving a talk page|archive]]''' " ..
 
"of past discussions. '''Do not edit the contents of this page.''' If " ..
 
"of past discussions. '''Do not edit the contents of this page.''' If " ..
 
"you wish to start a new discussion or revive an old one, please do so " ..
 
"you wish to start a new discussion or revive an old one, please do so " ..
"on the $1.",
+
"on the [[$1|current talk page]].",
['blurb-talk-link-display'] = 'current talk page',
+
 
 +
--------------------------------------------------------------------------------
 +
-- Image
 +
--------------------------------------------------------------------------------
 +
 
 +
-- The default icon for the archive banner.
 
['default-icon'] = 'Replacement filing cabinet.svg',
 
['default-icon'] = 'Replacement filing cabinet.svg',
 +
 +
-- The image size, unless a custom image is specified with the "image"
 +
-- parameter.
 
['image-size'] = '40x40px',
 
['image-size'] = '40x40px',
['archive-prefix'] = 'Archive '
+
 
 +
--------------------------------------------------------------------------------
 +
-- Archive links
 +
--------------------------------------------------------------------------------
 +
 
 +
-- The default prefix for archive pages on this wiki. This is the subpage text
 +
-- minus the archive number itself. So if the full page name of a typical
 +
-- archive was "Talk:France/Archive 12", the prefix would be "Archive ". This
 +
-- message is used to detect whether the current page is an archive page.
 +
['archive-prefix'] = 'Archive ',
 +
 
 +
-- The display value to use for long archive links. These are used if seven or
 +
-- less links are output.
 +
-- $1 - The archive number.
 +
['archive-link-display'] = 'Archive $1',
 +
 
 +
-- The default number of archive links to output.
 +
['default-link-count'] = 7
 +
 
 
}
 
}

Latest revision as of 13:17, 26 September 2020

Documentation for this module may be created at Module:Automatic archive navigator/config/doc

--------------------------------------------------------------------------------
--             Configuration for Module:Automatic archive navigator
--
-- This module contains configuration data for
-- [[Module:Automatic archive navigator]]. It can be used to easily translate the
-- module for use on other wikis, as well as changing settings like the default
-- archive prefix and the default link count.
--------------------------------------------------------------------------------

return {

--------------------------------------------------------------------------------
-- Blurb
--------------------------------------------------------------------------------

-- The blurbs to use for the archive banner. If the "period" argument is
-- specified, the "blurb-period" message is used; otherwise the "blurb-noperiod"
-- message is used.
-- $1 - the full page name of the current talk page (assumed to be the base
--      page of the archive pages.
-- $2 - the value of the "period" argument.
['blurb-period'] = "This is an '''[[Help:Archiving a talk page|archive]]''' " ..
	"of past discussions for the period '''$2'''. '''Do not edit the " ..
	"contents of this page.''' If you wish to start a new discussion or " ..
	"revive an old one, please do so on the [[$1|current talk page]].",
['blurb-noperiod'] = "This is an '''[[Help:Archiving a talk page|archive]]''' " ..
	"of past discussions. '''Do not edit the contents of this page.''' If " ..
	"you wish to start a new discussion or revive an old one, please do so " ..
	"on the [[$1|current talk page]].",

--------------------------------------------------------------------------------
-- Image
--------------------------------------------------------------------------------

-- The default icon for the archive banner.
['default-icon'] = 'Replacement filing cabinet.svg',

-- The image size, unless a custom image is specified with the "image"
-- parameter.
['image-size'] = '40x40px',

--------------------------------------------------------------------------------
-- Archive links
--------------------------------------------------------------------------------

-- The default prefix for archive pages on this wiki. This is the subpage text
-- minus the archive number itself. So if the full page name of a typical
-- archive was "Talk:France/Archive 12", the prefix would be "Archive ". This
-- message is used to detect whether the current page is an archive page.
['archive-prefix'] = 'Archive ',

-- The display value to use for long archive links. These are used if seven or
-- less links are output.
-- $1 - The archive number.
['archive-link-display'] = 'Archive $1',

-- The default number of archive links to output.
['default-link-count'] = 7

}