FuzzyBot@legacy41714739 (talk | contribs) (Importing a new version from external source) |
FuzzyBot@legacy41714739 (talk | contribs) (Importing a new version from external source) |
||
Line 1: | Line 1: | ||
+ | -- '''DO NOT''' translate words that are <code>${like this}</code>. If you do, things will break. --<pre> |
||
− | -- <pre> |
||
local p = {} |
local p = {} |
||
Line 7: | Line 7: | ||
-- Default maximum width of images. Override by setting maxWidth in the image arg. |
-- Default maximum width of images. Override by setting maxWidth in the image arg. |
||
p.maxImageSize = 260 |
p.maxImageSize = 260 |
||
+ | |||
+ | ------ |
||
+ | -- Error-related messages |
||
+ | ------ |
||
-- Text displayed when a switch is given an unknown value |
-- Text displayed when a switch is given an unknown value |
||
Line 16: | Line 20: | ||
-- Message to inform a translation admin. |
-- Message to inform a translation admin. |
||
p.informTranslationAdmin = [=[Please inform a translation admin as the translation markings probably need updating.]=] |
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.errBadSection = "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." |
||
------ |
------ |
Revision as of 07:32, 6 January 2015
Documentation for this module may be created at Module:Infobox/strings/en/doc
-- '''DO NOT''' translate words that are <code>${like this}</code>. If you do, things will break. --<pre>
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
------
-- Error-related messages
------
-- 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.errBadSection = "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.]=]
-- 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
--</pre>