Module:News/config
From Soyjak Wiki, the free ensoyclopedia
Jump to navigationJump to search

This page is currently under development(You) VVILL NOT edit the page until it's properly finished.
-- Settings for Module:News
-- due to the backend containing very little hardcoding, even simple adjustments for any of these keys will have drastic consequences!
return {
name = 'The Soy Chronicle', --placeholders
tagline = 'Extra! Extra! Jak all about it!',
emblem = 'Cobson chronicle.png',
emblemAlt = 'The Soy Chronicle',
pages = {
base = 'Soyjak Wiki:Newspaper',
archive = 'Archives',
newsroom = 'Newsroom',
contribute = 'Newsroom#How to contribute',
},
preload = 'Template:News/preload', -- do not tinker
stylesheets = { -- CSS stylesheets
base = 'Template:News/styles.css', -- base stylesheet
front = 'Template:News/front.css', -- front page stylesheet
issue = 'Template:News/issue.css', -- issue page stylesheet
},
issueStylesPattern = 'Template:News/issues/$id.css',
-- front page links row, in display order
-- key = a built-in destination (latest, archive, newsroom, contribute)
-- page = any title or anchor.
links = {
{ label = 'Latest issue', key = 'latest' },
{ label = 'All issues', key = 'archive' },
{ label = 'Newsroom', key = 'newsroom' },
{ label = 'How to contribute', key = 'contribute' },
{ label = 'Happenings', page = 'Happenings' },
},
-- ears (the boxes beside the nameplate). frontEar 'latest' = "promo" for newest issue
-- issueEar MUST be wikitext! $newsroom becomes the newsroom page title.
frontEar = 'latest',
issueEar = 'AD SPACE<br>SUBMIT AT THE<br>[[$newsroom|NEWSROOM]]', -- not a literal advertisement
-- ironic bux price shown in the issue folio line. you are REQUIRED to give the |price= arg. It does not need to be a number, strings will override unit and appear as whatever you pass.
price = {
unit = 'Boorubux',
format = '$amount $unit',
},
-- display
previewLimit = 6,
previewPlaceholder = 'Unknown.png',
previewFiller = true,
previewLatestLarge = true,
showLastEditor = true,
dateFormat = 'l, F j, Y', -- do not touch
shortDateFormat = 'F j, Y', -- do not touch
archiveMonthFormat = 'F Y', -- archive month headings. do not touch
-- every piece of interface text is found below
labels = { -- $substrings are placeholder values! do not tinker with them unless you know what you are doing
numberPrefix = 'No. ', -- ALWAYS preserve whitespace
unknownNumber = '?',
latest = 'Latest: $number, $date',
noIssues = 'No issues yet, come back later!',
earLatestTop = 'OUT NOW',
earLatestLink = 'Read it!',
latestCard = 'LATEST ISSUE',
cardMeta = '$number · $date',
readIssue = 'Read the issue --->', -- @todo make this arrow look nice
allIssues = 'All issues --->', -- ditto
noIssuesCard = 'No issues yet. Want to write the first one?',
noIssuesLink = 'Visit the Newsroom',
draftNotice = 'This issue is a draft and is not listed yet.',
embargoNotice = 'ATTENTION! This issue is embargoed until $date', -- read more about embargoes to learn what this is supposed to do
contributors = 'Contributors: ',
lastRevised = 'Last revised $date',
lastRevisedBy = 'Last revised $date by $user',
permanentLink = 'Permanent link',
older = '<--- $number', -- @todo make this arrow look nice
newer = '$number --->', -- ditto
notStarted = 'Not started',
startPage = 'Start it',
statusLine = 'Last edited $date by $user - $size bytes',
advertisement = 'Advertisement',
booruCaption = 'SoyBooru $id',
slotTitle = 'More to come...',
slotText = 'This spot is reserved for future older issues.',
},
-- Error and warning messages. Do not tinker with these ($id = issue ID, $field = field name, $value = bad value (found by Lua))
messages = {
malformedId = 'Malformed issue ID "$id"',
missingField = 'Issue $id has no $field',
pageMismatch = 'This page is not the page recorded for issue $id ($value)',
unknownLabel = 'Unknown label "$value"',
unknownSetting = 'Unknown or unreadable setting "$value"',
unknownPage = 'Unknown page key "$value"',
unknownLink = 'Unknown link key "$value"',
unknownPart = 'Unknown part "$value"',
missingPrice = 'Issue $id has no bux price: set price= on the nameplate',
},
-- maintenance cats
categories = {
drafts = 'Newspaper drafts',
embargoed = 'Newspaper embargoed issues',
errors = 'Newspaper pages with errors',
},
skipCategoryNamespaces = { 10, 828 },
-- templates whose parameters this module reads
wrappers = {
'Template:News/latest',
'Template:News/issue',
'Template:News/ear',
'Template:News/archive',
'Template:News/status',
'Template:News/figure',
},
}