Template:Officeholder infobox/doc: Difference between revisions
m (added to css) |
No edit summary |
||
Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
If consecutive affiliations or offices are the same, the duplicate headings will be omitted | Please see [[NPOWiki:Policies#Infoboxes]] for which positions to list and the order to list them in. If consecutive affiliations or offices are the same, the duplicate headings will be omitted. | ||
This template is meant to be "implemented" by other templates, but can be used directly if needed. Implementations must specify the game name and pass through any relevant parameters, or custom formatted information. They must be updated if the available parameters are changed. | This template is meant to be "implemented" by other templates, but can be used directly if needed. Implementations must specify the game name and pass through any relevant parameters, or custom formatted information. They must be updated if the available parameters are changed. | ||
Line 7: | Line 7: | ||
For a list of current implementations, [{{fullurl:Special:WhatLinksHere|target=Template:Officeholder_infobox&namespace=10}} see here]. | For a list of current implementations, [{{fullurl:Special:WhatLinksHere|target=Template:Officeholder_infobox&namespace=10}} see here]. | ||
For the helper template, see [[Template:Officeholder infobox/office]]. | For the helper template this uses, see [[Template:Officeholder infobox/office]]. | ||
==Available parameters== | ==Available parameters== |
Revision as of 00:33, 29 July 2020
Please see NPOWiki:Policies#Infoboxes for which positions to list and the order to list them in. If consecutive affiliations or offices are the same, the duplicate headings will be omitted.
This template is meant to be "implemented" by other templates, but can be used directly if needed. Implementations must specify the game name and pass through any relevant parameters, or custom formatted information. They must be updated if the available parameters are changed.
For a list of current implementations, see here.
For the helper template this uses, see Template:Officeholder infobox/office.
Available parameters
- game - can be one of: cybernations, nationstates, othergame (default).
- width - of infobox; use sparingly. Currently not available in implementations.
- name
- image - file name and extension only
- caption
- affiliation1 through affiliation9 - the name of the group this position was in.
- office1 through office9 - the name of the position.
- start1 through start9 - the date the office began being held.
- end1 through end9 - the date the office ended being held.
- prev1 through prev9 - the name of the person who previously held the position.
- next1 through next9 - the name of the person who next held the position.
Skeleton
NOTE: if you are not expecting to use the maximum offices on a page, please reduce the skeleton to a reasonable number.
{{Officeholder infobox |game = |width = |name = |image = |caption = |affiliation1 = |office1 = |start1 = |end1 = |prev1 = |next1 = |affiliation2 = |office2 = |start2 = |end2 = |prev2 = |next2 = |affiliation3 = |office3 = |start3 = |end3 = |prev3 = |next3 = |affiliation4 = |office4 = |start4 = |end4 = |prev4 = |next4 = |affiliation5 = |office5 = |start5 = |end5 = |prev5 = |next5 = |affiliation6 = |office6 = |start6 = |end6 = |prev6 = |next6 = |affiliation7 = |office7 = |start7 = |end7 = |prev7 = |next7 = |affiliation8 = |office8 = |start8 = |end8 = |prev8 = |next8 = |affiliation9 = |office9 = |start9 = |end9 = |prev9 = |next9 = }}
Helper
For a script to generate the code for an implementation, see Template:Community infobox#Helper.