Module:Signpost poll/config

.mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid var(--border-color-base,#a2a9b1);background-color:#ecfcf4;color:inhe

Module:Signpost poll/config
-- This module stores configuration data for [[Module:Signpost poll]].

return {

-- The wrapper template(s) used for the module. This is passed to the "wrappers"
-- argument of  [[Module:Arguments]].
wrappers = 'Wikipedia:Wikipedia Signpost/Templates/Voter',

-- The default colors to use for the vote visualization. They can be in any
-- format usable with inline CSS.
colors = {
	'#006699', -- Foundation blue
	'#339966', -- Foundation red
	'#990000', -- Foundation green

	-- From http://stackoverflow.com/questions/470690/how-to-automatically-generate-n-distinct-colors
	-- with some colors similar to Foundation colors removed.
	'#FFB300',
	'#803E75',
	'#FF6800',
	'#A6BDD7',
	'#CEA262',
	'#817066',
	'#F6768E',
	'#FF7A5C',
	'#53377A',
	'#FF8E00',
	'#B32851',
	'#F4C800',
	'#93AA00',
	'#593315',
	'#F13A13',
	'#232C16',
},

msg = {

-- The default preload page for the vote page.
-- This will be given the current page as a parameter $1. This will hopefully
-- correspond to the poll page when the poll is first set up.
['vote-page-preload-default'] = 'Wikipedia:Wikipedia Signpost/Templates/Voter/Setup/Counter Preload',

-- The edit summary to use when creating the vote page.
['vote-page-create-summary'] = 'Create vote page for Signpost poll',

-- The edit intro page to use when creating the vote page.
['vote-page-create-editintro'] = 'Wikipedia:Wikipedia Signpost/Templates/Voter/Setup/Counter EditIntro',

-- The default vote preload text. This is preprocessed.
-- $1 is the option number.
['vote-default'] = 'Voting for option $1.',

-- The text that appears beside each option in the legend. This is preprocessed.
-- $1 is the option text,
-- $2 is the number of votes, and
-- $3 is the percentage of the total votes.
['legend-option-text'] = '$1 <small>($3%;&nbsp;$2&nbsp;{{PLURAL: $2 | vote | votes }})</small>',

-- The warning that is displayed if there are not enough votes cast to display
-- the vizualization. This is preprocessed.
-- $1 is the number of votes needed before the results are displayed.
['not-enough-votes-warning'] = "Need '''$1''' more {{PLURAL: $1 | vote | votes }} " ..
	"to display results&mdash;if you haven't already, consider voting!",

-- Warning to display if the poll is closed due to the expiry date having been
-- reached.
['poll-closed-warning'] = 'Sorry; the poll is now closed.',

-- The default preload page for votes. This page should only contain the text
-- "$1".
['preload-page'] = 'Wikipedia:Wikipedia Signpost/Templates/Voter/Vote preload',

-- The default icon. Don't include a "File:" prefix.
['icon-default'] = 'WikipediaSignpostIcon.svg',

-- The default overlay image. Don't include a "File:" prefix.
['overlay-default'] = 'Foundation Logo Transparent.svg',

-- The default minimum number of votes needed for the visualization to be
-- displayed.
['minimum-default'] = 10,

-- The default header/title text.
['header-text'] = "''Signpost'' poll",

-- The error that is displayed if no question is specified.
['no-question-error'] = 'Please specify a question',

-- The error that is displayed if no vote page is specified.
['no-votepage-error'] = 'Please specify a vote page',

-- The error that is displayed if the vote page doesn't exist.
-- $1 is the URL of a link to create the page with the vote page preload text.
['votepage-nonexistent-error'] = 'The vote page doesn\'t exist; please [$1 create it]',

-- The error that is displayed if less than two options are specified.
['not-enough-options-error'] = 'Polls must have at least two options',

-- The error that is displayed if any of the vote texts are duplicates of any
-- other vote text. This is preprocessed.
-- $1 and $2 are the numbers of the options with duplicate vote text.
['duplicate-vote-text-error'] = 'duplicate vote text detected for options $1 and $2',

},

}

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.