Template:Infobox political party and Module:Message box/configuration: Difference between pages

From Frontierpedia, the Microsoft Agent encyclopedia
(Difference between pages)
frontierpediav5>WikiSysop
m (Reverted edits by Mintman21 (talk) to last revision by WikiSysop)
 
en>Mr. Stradivarius
(useId --> allowId)
 
Line 1: Line 1:
{{Infobox
local ambox = {
| bodyclass = vcard
types = {
speedy = {
class = 'ambox-speedy',
image = 'Ambox speedy deletion.png'
},
delete = {
class = 'ambox-delete',
image = 'Ambox deletion.png'
},
content = {
class = 'ambox-content',
image = 'Ambox content.png'
},
style = {
class = 'ambox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'ambox-move',
image = 'Ambox move.png'
},
protection = {
class = 'ambox-protection',
image = 'Ambox protection.png'
},
notice = {
class = 'ambox-notice',
image = 'Ambox notice.png'
}
},
default                    = 'notice',
allowBlankParams          = {'talk', 'sect', 'date'},
allowSmall                = true,
smallParam                = 'left',
smallClass                = 'mbox-small-left',
substCheck                = true,
classes                    = {'metadata', 'plainlinks', 'ambox'},
imageEmptyCell            = true,
imageCheckBlank            = true,
imageSmallSize            = '20x20px',
imageCellDiv              = true,
useCollapsibleTextFields  = true,
imageRightNone            = true,
sectionDefault            = 'article',
allowMainspaceCategories  = true,
templateCategory          = 'Article message templates',
templateErrorCategory      = 'Article message templates with missing parameters',
templateErrorParamsToCheck = {'issue', 'fix', 'subst'}
}


| abovestyle = font-size: 125%;
local cmbox = {
| above = <div style="padding-top:0.3em; padding-bottom:0.3em; {{#if:{{{colorcode|}}}|border-top:2px solid {{{colorcode}}}; border-bottom:2px solid {{{colorcode}}};}} line-height: 1;"><div class="fn org">{{if empty|{{{name|}}}|{{PAGENAMEBASE}}}}</div> {{#if:{{{native_name|}}} |<div style="font-size: 0.8em; padding-top:0.3em;" class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}}>{{{native_name}}}</div>}}</div>
types = {
speedy = {
class = 'cmbox-speedy',
image = 'Cmbox deletion.png'
},
delete = {
class = 'cmbox-delete',
image = 'Cmbox deletion.png'
},
content = {
class = 'cmbox-content',
image = 'Cmbox content.png'
},
style = {
class = 'cmbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'cmbox-move',
image = 'Cmbox move.png'
},
protection = {
class = 'cmbox-protection',
image = 'Cmbox protection.png'
},
notice = {
class = 'cmbox-notice',
image = 'Cmbox notice.png'
}
},
default              = 'notice',
showInvalidTypeError = true,
classes              = {'plainlinks', 'cmbox'},
imageEmptyCell      = true
}


| subheader = {{{_subheader|}}}
local fmbox = {
types = {
warning = {
class = 'fmbox-warning',
image = 'Cmbox deletion.png'
},
editnotice = {
class = 'fmbox-editnotice',
image = 'Imbox notice.png'
},
system = {
class = 'fmbox-system',
image = 'Imbox notice.png'
}
},
default              = 'system',
showInvalidTypeError = true,
allowId                = true,
classes              = {'plainlinks', 'fmbox'},
imageEmptyCell      = false,
imageRightNone      = false
}


| imageclass = logo
local imbox = {
| imagestyle = padding-top:.4em;padding-bottom:.3em;
types = {
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|upright={{{logo_upright|0.8}}}|alt={{{logo_alt|}}}|size={{{logo_size|}}}}}
speedy = {
| caption = {{{caption|}}}
class = 'imbox-speedy',
image = 'Imbox speedy deletion.png'
},
delete = {
class = 'imbox-delete',
image = 'Imbox deletion.png'
},
content = {
class = 'imbox-content',
image = 'Imbox content.png'
},
style = {
class = 'imbox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'imbox-move',
image = 'Imbox move.png'
},
protection = {
class = 'imbox-protection',
image = 'Imbox protection.png'
},
license = {
class = 'imbox-license',
image = 'Imbox license.png'
},
featured = {
class = 'imbox-featured',
image = 'Imbox featured.png'
},
notice = {
class = 'imbox-notice',
image = 'Imbox notice.png'
}
},
default              = 'notice',
showInvalidTypeError = true,
classes              = {'imbox'},
usePlainlinksParam  = true,
imageEmptyCell      = true,
below                = true,
templateCategory    = 'File message boxes'
}


| headerstyle = line-height: 0.8em;
local ombox = {
| labelstyle = line-height:1.3em;
types = {
| datastyle = line-height:1.3em;
speedy = {
class = 'ombox-speedy',
image = 'Imbox speedy deletion.png'
},
delete = {
class = 'ombox-delete',
image = 'Imbox deletion.png'
},
content = {
class = 'ombox-content',
image = 'Imbox content.png'
},
style = {
class = 'ombox-style',
image = 'Edit-clear.svg'
},
move = {
class = 'ombox-move',
image = 'Imbox move.png'
},
protection = {
class = 'ombox-protection',
image = 'Imbox protection.png'
},
notice = {
class = 'ombox-notice',
image = 'Imbox notice.png'
}
},
default              = 'notice',
showInvalidTypeError = true,
classes              = {'plainlinks', 'ombox'},
allowSmall          = true,
imageEmptyCell      = true,
imageRightNone      = true
}


| label1  = {{{lang1}}} name
local tmbox = {
| class1  = nickname
types = {
|  data1  = {{{name_lang1|}}}
speedy = {
class = 'tmbox-speedy',
image = 'Imbox speedy deletion.png'
},
delete = {
class = 'tmbox-delete',
image = 'Imbox deletion.png'
},
content = {
class = 'tmbox-content',
image = 'Imbox content.png'
},
style = {
class = 'tmbox-style',
image = 'Edit-clear.svg '
},
move = {
class = 'tmbox-move',
image = 'Imbox move.png'
},
protection = {
class = 'tmbox-protection',
image = 'Imbox protection.png'
},
notice = {
class = 'tmbox-notice',
image = 'Imbox notice.png'
}
},
default              = 'notice',
showInvalidTypeError = true,
classes              = {'plainlinks', 'tmbox'},
allowSmall          = true,
imageRightNone      = true,
imageEmptyCell      = true,
imageEmptyCellStyle  = true,
templateCategory    = 'Talk message boxes'
}


| label2  = Name
return {
| class2  = party_name
ambox = ambox,
|  data2  = {{{party_name|}}}
cmbox = cmbox,
 
fmbox = fmbox,
| label5  = Abbreviation
imbox = imbox,
| class5  = nickname
ombox = ombox,
|  data5  = {{if empty|{{{abbreviation|}}}|{{{abbr|}}}}}
tmbox = tmbox
 
}
| label13 = Ideology
| class13 = ideology
|  data13 = {{{ideology|}}}
 
| label14 = [[Party secretary|Secretary]]
| class14 = agent
|  data14 = {{if empty|{{{secretary|}}}|{{{secretary|}}}}}
 
| label15 = [[Party spokesperson|Spokes{{#if:{{{spokesperson|}}}|person|man}}]]
| class15 = agent
|  data15 = {{if empty|{{{spokesperson|}}}|{{{spokesman|}}}}}
 
| label16 = {{{leader1_title|}}}
| class16 = agent
|  data16 = {{{leader1_name|}}}
 
| label17 = {{{leader2_title|}}}
| class17 = agent
|  data17 = {{{leader2_name|}}}
 
| label22 = Founded
|  data22 = {{if empty|{{{founded|}}}|{{{foundation|}}}}}
 
| label23 = Registered
|  data23 = {{{registered|}}}
 
| label24 = Legali{{#if:{{{legalised|}}}|s|z}}ed
|  data24 = {{if empty|{{{legalised|}}}|{{{legalized|}}}}}
 
| label25 = Dissolved?
|  data25 = {{{dissolved?|}}}
 
| label26 = Merger&nbsp;of
|  data26 = {{{merger|}}}
 
| label27 = Split&nbsp;from
|  data27 = {{{split|}}}
 
| label28 = Preceded&nbsp;by
|  data28 = {{{predecessor|}}}
 
| label29 = Merged&nbsp;into
|  data29 = {{{merged|}}}
 
| label30 = Succeeded&nbsp;by
|  data30 = {{{successor|}}}
 
| label41 = Membership{{#if:{{{membership_year|}}} |&nbsp;({{{membership_year}}})}}
|  data41 = {{{membership|}}}
 
| label42 = Alignment
| class42 = category
|  data42 = {{{alignment|}}}
 
 
| label44 = Religion
| class44 = category
|  data44 = {{{religion|}}}
 
| label51 = {{{affiliation1_title}}}
| class51 = category
|  data51 = {{#if:{{{affiliation1_title|}}}|{{{affiliation1|}}}}}
 
| label52 = {{{affiliation2_title}}}
| class52 = category
|  data52 = {{#if:{{{affiliation2_title|}}}|{{{affiliation2|}}}}}
 
| label53 = Colo{{#if:{{{colours|}}}|u|}}rs
|  data53 = {{{colo{{#if:{{{colours|}}}|u|}}rs|}}}
 
| label54 = Slogan
|  data54 = {{{slogan|}}}
 
 
| label56 = {{{blank1_title|}}}
|  data56 = {{{blank1|}}}
 
| label57 = {{{blank2_title|}}}
|  data57 = {{{blank2|}}}
 
| label58 = {{{blank3_title|}}}
|  data58 = {{{blank3|}}}
 
| label59 = {{{blank4_title|}}}
|  data59 = {{{blank4|}}}
 
| label60 = {{{seats1_title|}}}
|  data60 = {{{seats1|}}}
 
| label61 = {{{seats2_title|}}}
|  data61 = {{{seats2|}}}
 
| label62 = {{{seats3_title|}}}
|  data62 = {{{seats3|}}}
 
| label63 = {{{seats4_title|}}}
|  data63 = {{{seats4|}}}
 
| label64 = {{{seats5_title|}}}
|  data64 = {{{seats5|}}}
 
| label65 = {{{seats6_title|}}}
|  data65 = {{{seats6|}}}
 
| label66 = {{{seats7_title|}}}
|  data66 = {{{seats7|}}}
 
| label67 = {{{seats8_title|}}}
|  data67 = {{{seats8|}}}
 
| label68 = {{{seats9_title|}}}
|  data68 = {{{seats9|}}}
 
| label69 = {{{seats10_title|}}}
|  data69 = {{{seats10|}}}
 
| label70 = {{{seats11_title|}}}
|  data70 = {{{seats11|}}}
 
| label71= Election symbol
|  data71 = {{{symbol|}}}
 
| label72= E-nation
|  data72 = {{{e-nation|}}}
 
}}{{Infoboxend}}<noinclude>
{{Infobox political party
| name = Examplist Party
| logo = Example.png
| logo_alt = Logo of the Examplist Party.
| colorcode =red<!-- HTML color code (e.g. "red", "#FF0000" or Party metadata color template) otherwise "transparent" -->
| party_name = Examplist Party
| founded =   January 1st, 2000
| ideology = Examplism
| alignment = center-right to right
| abbreviation = EXP
| slogan = Make examples great again!
| e-nation = Republic of Examples
| seats1_title = House of Representatives
| seats1 = {{Composition bar|50|100|red}}
}}
Empty template:
<pre>
{{Infobox political party
| name =
| logo =
| logo_alt =
| colorcode = <!-- HTML color code (e.g. "red", "#FF0000" or Party metadata color template) otherwise "transparent" -->
| party_name =
| founded =   
| ideology =
| alignment =
| abbreviation =
| slogan =
| e-nation =
| predecessor =
| successor =
| seats1_title =
| seats1 = <!-- feel free to modify this bar to your needs {{Composition bar|1|1|red}} -->
| dissolved? = <!-- Only use if its actually dissolved-->
}}
</pre>
[[Category:Modernized infoboxes]]
</noinclude>

Revision as of 14:17, 8 October 2013

Documentation for this module may be created at Module:Message box/configuration/doc

local ambox = {
	types = {
		speedy = {
			class = 'ambox-speedy',
			image = 'Ambox speedy deletion.png'
		},
		delete = {
			class = 'ambox-delete',
			image = 'Ambox deletion.png'
		},
		content = {
			class = 'ambox-content',
			image = 'Ambox content.png'
		},
		style = {
			class = 'ambox-style',
			image = 'Edit-clear.svg'
		},
		move = {
			class = 'ambox-move',
			image = 'Ambox move.png'
		},
		protection = {
			class = 'ambox-protection',
			image = 'Ambox protection.png'
		},
		notice = {
			class = 'ambox-notice',
			image = 'Ambox notice.png'
		}
	},
	default                    = 'notice',
	allowBlankParams           = {'talk', 'sect', 'date'},
	allowSmall                 = true,
	smallParam                 = 'left',
	smallClass                 = 'mbox-small-left',
	substCheck                 = true,
	classes                    = {'metadata', 'plainlinks', 'ambox'},
	imageEmptyCell             = true,
	imageCheckBlank            = true,
	imageSmallSize             = '20x20px',
	imageCellDiv               = true,
	useCollapsibleTextFields   = true,
	imageRightNone             = true,
	sectionDefault             = 'article',
	allowMainspaceCategories   = true,
	templateCategory           = 'Article message templates',
	templateErrorCategory      = 'Article message templates with missing parameters',
	templateErrorParamsToCheck = {'issue', 'fix', 'subst'}
}

local cmbox = {
	types = {
		speedy = {
			class = 'cmbox-speedy',
			image = 'Cmbox deletion.png'
		},
		delete = {
			class = 'cmbox-delete',
			image = 'Cmbox deletion.png'
		},
		content = {
			class = 'cmbox-content',
			image = 'Cmbox content.png'
		},
		style = {
			class = 'cmbox-style',
			image = 'Edit-clear.svg'
		},
		move = {
			class = 'cmbox-move',
			image = 'Cmbox move.png'
		},
		protection = {
			class = 'cmbox-protection',
			image = 'Cmbox protection.png'
		},
		notice = {
			class = 'cmbox-notice',
			image = 'Cmbox notice.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'plainlinks', 'cmbox'},
	imageEmptyCell       = true
}

local fmbox = {
	types = {
		warning = {
			class = 'fmbox-warning',
			image = 'Cmbox deletion.png'
		},
		editnotice = {
			class = 'fmbox-editnotice',
			image = 'Imbox notice.png'
		},
		system = {
			class = 'fmbox-system',
			image = 'Imbox notice.png'
		}
	},
	default              = 'system',
	showInvalidTypeError = true,
	allowId                = true,
	classes              = {'plainlinks', 'fmbox'},
	imageEmptyCell       = false,
	imageRightNone       = false
}

local imbox = {
	types = {
		speedy = {
			class = 'imbox-speedy',
			image = 'Imbox speedy deletion.png'
		},
		delete = {
			class = 'imbox-delete',
			image = 'Imbox deletion.png'
		},
		content = {
			class = 'imbox-content',
			image = 'Imbox content.png'
		},
		style = {
			class = 'imbox-style',
			image = 'Edit-clear.svg'
		},
		move = {
			class = 'imbox-move',
			image = 'Imbox move.png'
		},
		protection = {
			class = 'imbox-protection',
			image = 'Imbox protection.png'
		},
		license = {
			class = 'imbox-license',
			image = 'Imbox license.png'
		},
		featured = {
			class = 'imbox-featured',
			image = 'Imbox featured.png'
		},
		notice = {
			class = 'imbox-notice',
			image = 'Imbox notice.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'imbox'},
	usePlainlinksParam   = true,
	imageEmptyCell       = true,
	below                = true,
	templateCategory     = 'File message boxes'
}

local ombox = {
	types = {
		speedy = {
			class = 'ombox-speedy',
			image = 'Imbox speedy deletion.png'
		},
		delete = {
			class = 'ombox-delete',
			image = 'Imbox deletion.png'
		},
		content = {
			class = 'ombox-content',
			image = 'Imbox content.png'
		},
		style = {
			class = 'ombox-style',
			image = 'Edit-clear.svg'
		},
		move = {
			class = 'ombox-move',
			image = 'Imbox move.png'
		},
		protection = {
			class = 'ombox-protection',
			image = 'Imbox protection.png'
		},
		notice = {
			class = 'ombox-notice',
			image = 'Imbox notice.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'plainlinks', 'ombox'},
	allowSmall           = true,
	imageEmptyCell       = true,
	imageRightNone       = true
}

local tmbox = {
	types = {
		speedy = {
			class = 'tmbox-speedy',
			image = 'Imbox speedy deletion.png'
		},
		delete = {
			class = 'tmbox-delete',
			image = 'Imbox deletion.png'
		},
		content = {
			class = 'tmbox-content',
			image = 'Imbox content.png'
		},
		style = {
			class = 'tmbox-style',
			image = 'Edit-clear.svg '
		},
		move = {
			class = 'tmbox-move',
			image = 'Imbox move.png'
		},
		protection = {
			class = 'tmbox-protection',
			image = 'Imbox protection.png'
		},
		notice = {
			class = 'tmbox-notice',
			image = 'Imbox notice.png'
		}
	},
	default              = 'notice',
	showInvalidTypeError = true,
	classes              = {'plainlinks', 'tmbox'},
	allowSmall           = true,
	imageRightNone       = true,
	imageEmptyCell       = true,
	imageEmptyCellStyle  = true,
	templateCategory     = 'Talk message boxes'
}

return {
	ambox = ambox,
	cmbox = cmbox,
	fmbox = fmbox,
	imbox = imbox,
	ombox = ombox,
	tmbox = tmbox
}