(Marked this version for translation) |
(Define errBadRow) |
||
Line 62: | Line 62: | ||
-- Displayed if a subsection isn't a table. |
-- Displayed if a subsection isn't a table. |
||
− | p. |
+ | p.errBadRow = "Section ${section}, subsection ${subsection}, row ${row} is not a table." |
-- Displayed if there's no output for infobox() |
-- Displayed if there's no output for infobox() |
Revision as of 18:44, 19 December 2015
-- DO NOT translate words that are ${like this}
. If you do, things will break.
--
--
local p = {} -- automatically appended when expanding image arguments p.imageParameters = "" -- Default maximum width of images. Override by setting maxWidth in the image arg. p.maxImageSize = 260 -- Default link text p.linkText = [=[Link]=] ------ -- Error-related messages ------ -- Text displayed when a parameter is wrong p.badParameterName = [=[Unrecognised parameter:]=] -- Text displayed when a switch is given an unknown value p.unknownType = [=[Unknown value]=] -- Displayed when a module can't be loaded at all. p.loadFailure = [=[Couldn't load module:]=] -- Message to inform a translation admin. p.informTranslationAdmin = [=[Please inform a translation admin as the translation markings probably need updating.]=] -- Displayed if the definition has no "format" entry p.errNoFormat = "The infobox definition has no <code>format</code> entry." -- Displayed if the definition has a format which is empty p.errEmptyInfoboxFormat = "The infobox definition contains no non-<code>docOnly</code> sections and thus would be invisible." -- Displayed if an argument table lacks an arg key or it's not a string or table p.errArgMissingArgName = "Argument table lacks a usable <code>arg</code> key." -- Displayed regarding the position of an error in a cell. p.errCellLocation = "Section ${section}, subsection ${subsection}, row ${row}, cell ${cell}" -- Displayed regarding the position of a troublesome section title p.errSectionLocation = "Section ${section} title" -- Displayed if a section isn't a table. p.errBadSection = "Section ${section} is not a table." -- Displayed if a section *has* no title p.errSectionNoTitle = "Section ${section} has no title!" -- Displayed if a switch parameter has no allowedValues entry. p.errArgMissingSwitchValues = "Argument table lacks a usable <code>allowedValues</code> key." -- Displayed if a subsection isn't a table. p.errBadSection = "Subsection ${subsection} of section ${section} is not a table." -- Displayed if a subsection isn't a table. p.errBadRow = "Section ${section}, subsection ${subsection}, row ${row} is not a table." -- Displayed if there's no output for infobox() p.errNoOutput = "With the supplied parameters, there is nothing to show." ------ -- Strings used in documentation generation. ------ -- In the documentation page, word that separates alternate choices for things like argument names p.nameorname = [=[or]=] -- Text appended to the description of switch arguments, just before the list of possible values. p.switchdoc = [=[Can be any of the following. Anything else will add the page to a list of pages with type errors.]=] -- Text appended to the description of image arguments p.imagedoc = [=[Use the ''complete'' filename, like "'''Block_sand.png'''".]=] -- Template-supporting wikitext used to form the hatnote pointing to the relevant subpage of Module:Infobox. ${template} becomes the name of that page. p.generatedFrom = [=[This template and its documentation are generated using the definition at [[${template}]]]=] -- Template-supporting wikitext placed as the lead of the documentation (as is docLead from the infobox definition) p.docLead = [=[This template is used to create an info box that aligns to the right side of the article it is embedded in.]=] -- Heading of the parameters section p.parameters = [=[Parameters]=] -- Template-supporting wikitext that starts the parameters section p.parameterLead = [=[:''A blank infobox is provided on the right for quicker reference, the infobox will be collapsed on actual articles.'']=] -- Heading of the examples section p.examples = [=[Examples]=] -- Heading of the "Code" column in example section p.exampleCode = [=[Code]=] -- Heading of the "Result" column in the example section p.exampleResult = [=[Result]=] -- Message displayed when there are no examples p.noExamples = [=[There are no examples for this template.]=] return p --