Gaan na inhoud

Sjabloon:Gedeeltelik

in Wikipedia, die vrye ensiklopedie
Deels
Dokumentasie-ikoon Sjabloondokumentasie[sien] [wysig] [geskiedenis] [wis kasgeheue]

Sjablone kan met enige kleur gebruik word, maar elkeen moet apart gemaak word, soos in Engels:

| Template:BLACK =
Vir the text color template, sien Template:Black.
| Template:Ya =
Vir the template with a smaller tick and no green background, sien Template:Aye.
| Template:Maybe =
Vir the yellow tick template, sien Template:Mby.

| Template:TBA = Sjabloon:Distinguish

| Template:Pending =
Vir the comment templates with small icons, sien Template:Tobedone, Template:Bug pending, and Template:PendingRequest.

| Template:Correct = Sjabloon:Distinguish

}}

The templates in this series are designed to be used in a table to make a cell with text in that cell, with an appropriately colored background. They are commonly used in comparison tables. Most of these templates should not be used simply to produce a background color, use them according to their meaning.

For example, {{yes}} makes a cell with a green background. The text in the cell is taken from the first parameter; {{yes|Sure}} would give "Sure" otherwise it defaults to "Yes". Most templates allow editors to override the default text using |1= or equivalent, some require text to be placed after the template call, and others may need a vertical bar (Sjabloon:Char) separating the two: {{table cell template}} text or {{table cell template}} | text. This information, the colors, and default texts are found in the table below.

Sjabloon:Warnsign If you want to use other attributes for the table cells that do not appear in Sjabloon:Gedeeltelik § Notes below, e.g. colspan, rowspan, or style, they need to be put before the template call, and there must be no vertical bar (Sjabloon:Char) in-between them, for example:

Ja Nee N/A
colspan=2 style="border:solid 3px Maroon" Sjabloon:Yes-No
...
!{{ja1}} ||{{Nee}} ||rowspan=2 {{n/a}}
|-
|colspan=2 style="border:solid 3px Maroon" {{Yes-No}}
...

Templates

[wysig bron]

Sjabloon:Sticky header

Table cell templates
Class[1] Default Customized
Syntax Preview Syntax Preview
(tt) table-rh {{rh}} (tt) | Row header[2] Sjabloon:Rh | Row header {{rh|align=right}} Sjabloon:Mono Sjabloon:Rh | Row header
{{rh2}} (tt) | Row header[2] Sjabloon:Rh2 | Row header {{rh2|align=center}} Sjabloon:Mono Sjabloon:Rh2 | Row header
(tt) table-yes {{ja1}} Ja {{yes|customized [[Plain text|text]]}} customized text
{{yes C}} Sjabloon:Yes C {{yes C|customized [[Plain text|text]]}} Sjabloon:Yes C
{{yes O}} Sjabloon:Yes O {{yes O|customized [[Plain text|text]]}} Sjabloon:Yes O
{{yes N}} Sjabloon:Yes N {{yes N|customized [[Plain text|text]]}} Sjabloon:Yes N
(tt) table-maybe {{Gedeeltelik}} Deels {{maybe|customized [[Plain text|text]]}} customized text
(tt) table-no {{nee}} Nee {{no|customized [[Plain text|text]]}} (no) customized text
{{no O}} Sjabloon:No O {{no O|customized [[Plain text|text]]}} Sjabloon:No O
{{no X}} Sjabloon:No X {{no X|customized [[Plain text|text]]}} Sjabloon:No X
{{eliminated}} Sjabloon:Eliminated {{eliminated|dropped out}} Sjabloon:Eliminated
{{lost}} Sjabloon:Lost {{lost|missing}} Sjabloon:Lost
{{active fire}}[3] Sjabloon:Active fire {{active fire|12%}} Sjabloon:Active fire
{{member inactive}} Sjabloon:Member inactive {{member inactive}} (Last active 2017) Sjabloon:Member inactive (Last active 2017)
{{safe}} Sjabloon:Safe {{safe|protected}} Sjabloon:Safe
{{no Y}} Sjabloon:No Y {{no Y|customized [[plain text|text]]}} Sjabloon:No Y
(tt) table-active {{active}} Sjabloon:Active {{active|live}} Sjabloon:Active
(tt) table-siteactive {{site active}} Sjabloon:Site active {{site active|up}} Sjabloon:Site active
{{coming soon}} Sjabloon:Coming soon {{coming soon|second half of the year}} Sjabloon:Coming soon
(tt) table-siteinactive {{site inactive}} Sjabloon:Site inactive {{site inactive|down}} Sjabloon:Site inactive
(tt) table-success {{success}} Sjabloon:Success {{success|mission complete}} Sjabloon:Success
{{operational}} Sjabloon:Operational {{operational|returning data}} Sjabloon:Operational
(tt) table-failure {{failure}} Sjabloon:Failure {{failure|wrong orbit}} Sjabloon:Failure
(tt) table-yes2 {{yes2}} Sjabloon:Yes2 {{yes2|text}} Sjabloon:Yes2
{{good}} Sjabloon:Good {{good|A}} Sjabloon:Good
{{ya}} Sjabloon:Ya {{ya|text=ya}} Sjabloon:Ya
{{ya|Ya}} Sjabloon:Ya {{ya|text|link=WP:ALT}} Sjabloon:Ya
{{yan}} Sjabloon:Yan {{yan|text=ya}} Sjabloon:Yan
{{won}} Gewen {{won|text=white|color=darkblue|winner}} winner
{{won|place=1}} 1 {{won|place=gold}} gold
{{won|place=2}} 2 {{won|place=silver}} silver
{{won|place=3}} 3 {{won|place=bronze}} bronze
{{WinDL}} Sjabloon:WinDL {{WinDL|win}} Sjabloon:WinDL
{{WinDL|res=D}} Sjabloon:WinDL {{WinDL|res=draw}} Sjabloon:WinDL
{{WinDL|res=L}} Sjabloon:WinDL {{WinDL|res=loss}} Sjabloon:WinDL
(tt) table-no2 {{no2}} Sjabloon:No2 {{no2|text}} Sjabloon:No2
{{na}} (na) {{na|text=na}} (na)
{{na|Na}} (na) Na {{na|text|link=WP:ALT}} (na) text
{{nan}} Sjabloon:Nan {{nan|text=na}} Sjabloon:Nan
{{nom}} Benoem {{nom|5}} 5
{{notnom}} Sjabloon:Notnom {{notnom|not selected}} Sjabloon:Notnom
{{shortlisted}} Sjabloon:Shortlisted {{shortlisted|proposed}} Sjabloon:Shortlisted
{{longlisted}} Sjabloon:Longlisted {{longlisted|rejected}} Sjabloon:Longlisted
{{TBA}} Sjabloon:TBA {{TBA|to be announced}} Sjabloon:TBA
(tt) table-partial {{partial}} Sjabloon:Partial {{partial|almost done}} Sjabloon:Partial
{{Regional}} Sjabloon:Regional {{Regional|Uyghur}} Sjabloon:Regional
{{MaybeCheck}} Sjabloon:MaybeCheck {{MaybeCheck|text=possibly}} Sjabloon:MaybeCheck
{{MaybeCheck|possibly}} Sjabloon:MaybeCheck {{MaybeCheck|text|link=WP:ALT}} Sjabloon:MaybeCheck
{{partial success}} Sjabloon:Partial success {{partial success|
reached orbit and returned pictures}}
Sjabloon:Partial success
{{partial failure}} Sjabloon:Partial failure {{partial failure|[[Cubesat]] not deployed}} Sjabloon:Partial failure
{{okay}} Sjabloon:Okay {{okay|C}} Sjabloon:Okay
{{Yes-No}} Sjabloon:Yes-No {{Yes-No|yes with an if; no with a but}} Sjabloon:Yes-No
{{some}} Sjabloon:Some {{some|many}} Sjabloon:Some
{{pending}} Sjabloon:Pending {{pending|awaiting}} Sjabloon:Pending
{{sometimes}} Sjabloon:Sometimes {{sometimes|occasionally}} Sjabloon:Sometimes
{{rarely}} Sjabloon:Rarely {{rarely|seldom}} Sjabloon:Rarely
{{usually}} Sjabloon:Usually {{usually|commonly}} Sjabloon:Usually
{{unofficial}} Sjabloon:Unofficial {{unofficial|''de facto''}} Sjabloon:Unofficial
{{unofficial2}} Sjabloon:Unofficial2 {{unofficial2|''de facto''}} Sjabloon:Unofficial2
{{nonpartisan}} Sjabloon:Nonpartisan {{nonpartisan|impartial}} Sjabloon:Nonpartisan
(tt) table-any {{any}} Sjabloon:Any {{any|anyone}} Sjabloon:Any
(tt) table-automatic {{perhaps}} Sjabloon:Perhaps {{perhaps|maybe}} Sjabloon:Perhaps
(tt) table-draw {{draw}} Sjabloon:Draw {{draw|1:1}} Sjabloon:Draw
(tt) table-noAttempt {{No attempt}} Sjabloon:No attempt {{No attempt|No landing attempted}} Sjabloon:No attempt
(tt) table-na {{n/a}} N/A {{n/a|unavailable}} unavailable
{{varies}} Sjabloon:Varies {{varies|differs}} Sjabloon:Varies
{{non-album single}}[4] Sjabloon:Non-album single {{non-album single|EP}} Sjabloon:Non-album single
{{unreleased}} Sjabloon:Unreleased {{unreleased|shelved}} Sjabloon:Unreleased
{{BLACK}} Sjabloon:BLACK {{BLACK|banned}} Sjabloon:BLACK
{{sdash}} Sjabloon:Sdash {{sdash}} Sjabloon:Sdash
{{vacant}} Sjabloon:Vacant {{vacant|missing}} Sjabloon:Vacant
(tt) table-unknown {{unknown}} Sjabloon:Unknown {{unknown|?}} Sjabloon:Unknown
{{dunno}} Sjabloon:Dunno {{dunno|not sure}} Sjabloon:Dunno
(tt) table-included {{included}} Sjabloon:Included {{included|incorporated}} Sjabloon:Included
(tt) noresult {{no result}} Sjabloon:No result {{no result|NR}} Sjabloon:No result
(tt) table-planned {{planned}} Sjabloon:Planned {{planned|July 2028}} Sjabloon:Planned
(tt) table-scheduled {{scheduled}} Sjabloon:Scheduled {{scheduled|3 March 2027}} Sjabloon:Scheduled
(tt) table-software[5] {{beta}} β {{beta|preview}} β
{{table-experimental}} Sjabloon:Table-experimental {{table-experimental|lab}} Sjabloon:Table-experimental
{{nightly}} Sjabloon:Nightly {{nightly|dev}} Sjabloon:Nightly
{{Alpha version}} Sjabloon:Alpha version {{Alpha version}} Sjabloon:Alpha version
{{release-candidate}} Sjabloon:Release-candidate {{release-candidate|RC}} Sjabloon:Release-candidate
{{Stable version}} Sjabloon:Stable version {{Stable version}} Sjabloon:Stable version
{{open source}} Sjabloon:Open source {{open source|software libre}} Sjabloon:Open source
{{free}} Sjabloon:Free {{free|empty}} Sjabloon:Free
{{proprietary}} Sjabloon:Proprietary {{proprietary|custom extension}} Sjabloon:Proprietary
{{nonfree}} Sjabloon:Nonfree {{nonfree|paid}} Sjabloon:Nonfree
{{needs}} Sjabloon:Needs {{needs|req.}} Sjabloon:Needs
(tt) table-depends {{depends}} Sjabloon:Depends {{depends|vendor-defined}} Sjabloon:Depends
(tt) table-dropped {{dropped}} Sjabloon:Dropped {{dropped|discontinued}} Sjabloon:Dropped
{{terminated}} Sjabloon:Terminated {{terminated|fired}} Sjabloon:Terminated
(tt) incorrect {{incorrect}} Sjabloon:Incorrect {{incorrect|wrong}} Sjabloon:Incorrect
(tt) table-debate {{D-P}} Sjabloon:D-P {{D-P|present}} Sjabloon:D-P
{{D-A}} Sjabloon:D-A {{D-A|absent}} Sjabloon:D-A
{{D-I}} Sjabloon:D-I {{D-I|invited}} Sjabloon:D-I
{{D-O}} Sjabloon:D-O {{D-O|other debate}} Sjabloon:D-O
{{D-N}} Sjabloon:D-N {{D-N|not invited}} Sjabloon:D-N
{{D-Nv}} Sjabloon:D-Nv {{D-Nv|not voting}} Sjabloon:D-Nv
{{D-W}} Sjabloon:D-W {{D-W|withdrawn}} Sjabloon:D-W
{{D-Out}} Sjabloon:D-Out {{D-Out|out of race}} Sjabloon:D-Out
(tt) table-cast[6] {{CMain}} Hoof {{CMain|text}} text
{{CAlso starring}} Sjabloon:CAlso starring {{CAlso starring|costar}} Sjabloon:CAlso starring
{{CRecurring}} Herhalend {{CRecurring|regular guest}} regular guest
{{CGuest}} Gas {{CGuest|victim}} victim
{{COther}} Sjabloon:COther {{COther|ensemble}} Sjabloon:COther
{{CNone}} Does not appear {{CNone|cast}} cast
{{CRemoved}} Sjabloon:CRemoved {{CRemoved|edited}} Sjabloon:CRemoved
{{CFinalist}} Sjabloon:CFinalist {{CFinalist|contender}} Sjabloon:CFinalist
{{CFinalist|place=3rd Place}} Sjabloon:CFinalist {{CFinalist|place=third place}} Sjabloon:CFinalist
{{exempt}} Sjabloon:Exempt {{exempt|exe}} Sjabloon:Exempt
{{Black Exempt}} Sjabloon:Black Exempt {{Black Exempt|lack}} Sjabloon:Black Exempt
{{nocontest}} Sjabloon:Nocontest {{nocontest|rescheduled}} Sjabloon:Nocontest
{{Runner-up}} Sjabloon:Runner-up {{Runner-up|2nd Place}} Sjabloon:Runner-up
{{Quit}} Sjabloon:Quit {{Quit|left}} Sjabloon:Quit
(tt) table-IUCN[7] {{IUCN-EX}} Sjabloon:IUCN-EX {{IUCN-EX|Extinct}} Sjabloon:IUCN-EX
{{IUCN-CR}} Sjabloon:IUCN-CR {{IUCN-CR|Critically Endangered}} Sjabloon:IUCN-CR
{{IUCN-EN}} Sjabloon:IUCN-EN {{IUCN-EN|Endangered}} Sjabloon:IUCN-EN
{{IUCN-VU}} Sjabloon:IUCN-VU {{IUCN-VU|Vulnerable}} Sjabloon:IUCN-VU
{{IUCN-NT}} Sjabloon:IUCN-NT {{IUCN-NT|Near-Threatened}} Sjabloon:IUCN-NT
{{IUCN-LC}} Sjabloon:IUCN-LC {{IUCN-LC|Least Concern}} Sjabloon:IUCN-LC
{{IUCN-DD}} Sjabloon:IUCN-DD {{IUCN-DD|Data Deficient}} Sjabloon:IUCN-DD
no class {{not yet}} Sjabloon:Not yet {{not yet|NY}} Sjabloon:Not yet
{{optional}} Sjabloon:Optional {{optional|non-mandatory}} Sjabloon:Optional
{{shade|100}}% Sjabloon:Shade% {{shade|color=blue|100}}% Sjabloon:Shade%
{{shade|75}}% Sjabloon:Shade% {{shade|color=blue|75|73–78}}% Sjabloon:Shade%
{{shade|25}}% Sjabloon:Shade% {{shade|color=blue|25|{{val|25|2|u=%}}}} Sjabloon:Shade
{{shade|0}}% Sjabloon:Shade% {{shade|color=blue|0}}% Sjabloon:Shade%
{{cell color|2|0|10}} Sjabloon:Cell color {{cell color|5|0|10|FF0000|0000FF}} Sjabloon:Cell color
{{CellCategory|1}} Sjabloon:CellCategory {{CellCategory|1|Group A}} Sjabloon:CellCategory
{{CellCategory|2}} Sjabloon:CellCategory {{CellCategory|2|Group B|align=tc}} Sjabloon:CellCategory
{{CellCategory|3}} Sjabloon:CellCategory {{CellCategory|3|Group C|align=tr}} Sjabloon:CellCategory

Common code to most if not all the templates in this series:

Sjabloon:Table cell templates

Code specific to this template:

style="background:#FFB; color:black;vertical-align:middle;text-align:center; " class="table-partial"|Deels

Creating new templates

[wysig bron]

To make a new table cell template you can use:

{{subst:Table cell templates|text= default text |bg= background color |class= a class name without prefix |align= standard horizontal alignment}}

You should leave out the align parameter and often the class parameter is unnecessary, too.

Add the new template to the table in the common documentation afterwards. Please consider reusing one of the other templates and please choose the color sensibly.

If you find a table cell template that does not take a parameter and you want to be able to change the text in the cell, do not duplicate the template! Instead, edit the template and change the text to a default parameter substitution. For example, if a template's text is Dropped, change that to {{{1|Dropped}}}.

style="background: #abcdef; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="automatic table-automatic"| {{{1|text}}}

Choosing a color

[wysig bron]

When changing or creating a new template, follow the use of colour guidelines and the when choosing the background color and, sometimes, the text color. Many of these templates can be used with links to other articles or references, so the links should be clearly identifiable against the background color. You can check contrast level using the WebAIM contrast checker by setting the foreground color to the blue link color. Contrast should be at the minimum WCAG AA level and, whenever possible, at WCAG AAA level. Wikipedia:Manual of Style/Accessibility/Colors has a set of colors that comply with WCAG AAA and WCAG AA for unvisited links and normal text.

Color subpage

[wysig bron]

All templates should either have a /bgcolor subpage that contains nothing but a valid CSS color code, possibly wrapped in nowiki tags, e.g. #BFD, which can be included with background: {{/bgcolor}}; in the style attribute, or they should reference another template's subpage, e.g. background: {{Template:Yes2/bgcolor}};. Alternatively, the /bgcolor subpage may redirect to another color code subpage: #REDIRECT [[yes2/bgcolor]].

This way, pages that are using these templates may also use {{legend}} and similar templates which can reference the actual color: {{legend|{{yes2/bgcolor}}|supported}}

TemplateData

[wysig bron]
Dit is die Sjabloondatadokumentasie vir hierdie sjabloon wat gebruik word deur die Visuele redigeerder en ander hulpmiddels.

Sjabloondata vir Gedeeltelik

{{{templatedata|<templatedata> { "description": "One of several templates for styling individual table cells with standard contents and colors.", "format": "inline", "params": { "1": { "label": "text", "description": "text to be displayed instead of the default; if this doesn't work put the text after the template, possibly with a vertical bar | in between", "type": "content", "default": "(template dependent)", "required": false,

           "suggested": false

}, "align": { "label": "horizontal align", "description": "text alignment inside the cell, either 'left', 'right', 'center' or 'justified'", "default": "center", "inherits": "1", "type": "string",

           "suggested": false,

"suggestedvalues": [ "left", "center",

       		"right",
       		"justified"

] }, "style": { "label": "style", "description": "a semicolon-separated list of additional CSS rules to be applied to the table cell", "inherits": "1", "type": "string",

           "suggested": false

}, "color": { "label": "background color", "description": "a valid CSS color value or name to override the standard cell background, only available with some templates", "inherits": "1", "type": "line",

           "suggested": false

} } }

Notes

[wysig bron]
  1. The HTML class of table cell templates may be referenced in a user stylesheet to change appearance.
  2. 2,0 2,1 Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.
  3. This template is related to Sjabloon:WikiProject link.
  4. This template is related to Sjabloon:WikiProject link.
  5. This group of templates is related to Sjabloon:WikiProject link.
  6. This group of templates is related to Sjabloon:WikiProject link.
  7. This group of templates is related to Sjabloon:WikiProject link.