Predložak:TBA

Izvor: Hrvatska internetska enciklopedija
Inačica 395779 od 12. prosinca 2021. u 22:55 koju je unio WikiSysop (razgovor | doprinosi) (Bot: Automatski unos stranica)
(razl) ←Starija inačica | vidi trenutačnu inačicu (razl) | Novija inačica→ (razl)
Skoči na:orijentacija, traži
TBA
<Neinclude></Neinclude>

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.

For example, {{Da}} makes a cell with a green background. The text in the cell is taken from the first parameter; <Newiki>{{</Newiki>Da|Sure}} would output "Sure" otherwise it defaults to "Da". Most templates allow authors to override the default text in this way, some require text put after the template call and some also need a vertical bar in between: <Newiki>{{</Newiki>table cell template}} text or <Newiki>{{</Newiki>table cell template}} | text. This information, the colors and default texts are found in the table below.

Predložak:Warnsign If you want to use other attributes for the table cells, e.g. colspan, rowspan, or style, they need to be put before the template call, and there must be Ne vertical bar (aka pipe) | in-between them:

Da Ne N/A
Da/Ne
...
!{{Da}} ||{{Ne}} ||rowspan=2 {{n/a}}
|-
|colspan=2 style="border:solid 3px Maroon" {{Da/Ne}}
...

Templates

Table cell templates
Class[1] Default syntax Preview (default) Customized syntax Preview (customized)
table-rh {{rh}} | Row header[2] Row header Row header Row header
{{rh2}} | Row header[2] Predložak:Rh2 | Row header Row header Predložak:Rh2 | Row header
table-Da {{Da}} Da Script error: No such module "Tlp". customized text
{{Da C}} Predložak:Da C Script error: No such module "Tlp". Predložak:Da C
{{Da O}} Predložak:Da O Script error: No such module "Tlp". Predložak:Da O
table-maybe {{maybe}} Predložak:Maybe Script error: No such module "Tlp". Predložak:Maybe
table-Ne {{Ne}} Ne Script error: No such module "Tlp". customized text
{{Ne O}} Predložak:Ne O Script error: No such module "Tlp". Predložak:Ne O
{{Ne X}} Predložak:Ne X Script error: No such module "Tlp". Predložak:Ne X
{{eliminated}} Predložak:Eliminated Script error: No such module "Tlp". Predložak:Eliminated
Script error: No such module "Tlp". Predložak:Active fire
{{lost}} Predložak:Lost Script error: No such module "Tlp". Predložak:Lost
{{safe}} Predložak:Safe Script error: No such module "Tlp". Predložak:Safe
table-active {{active}} Predložak:Active Script error: No such module "Tlp". Predložak:Active
table-siteactive {{site active}} Predložak:Site active Script error: No such module "Tlp". Predložak:Site active
{{coming soon}} Predložak:Coming soon Script error: No such module "Tlp". Predložak:Coming soon
table-siteinactive {{site inactive}} Predložak:Site inactive Script error: No such module "Tlp". Predložak:Site inactive
table-Da2 {{good}} Predložak:Good Script error: No such module "Tlp". Predložak:Good
{{Da2}} Predložak:Da2 Script error: No such module "Tlp". Predložak:Da2
{{ya}} Predložak:Ya Script error: No such module "Tlp". Predložak:Ya
Script error: No such module "Tlp". Predložak:Ya Script error: No such module "Tlp". Predložak:Ya
{{won}} Predložak:Won Script error: No such module "Tlp". Predložak:Won
Script error: No such module "Tlp". Predložak:Won Script error: No such module "Tlp". Predložak:Won
Script error: No such module "Tlp". Predložak:Won Script error: No such module "Tlp". Predložak:Won
Script error: No such module "Tlp". Predložak:Won Script error: No such module "Tlp". Predložak:Won
{{WinDL}} Predložak:WinDL Script error: No such module "Tlp". Predložak:WinDL
Script error: No such module "Tlp". Predložak:WinDL Script error: No such module "Tlp". Predložak:WinDL
Script error: No such module "Tlp". Predložak:WinDL Script error: No such module "Tlp". Predložak:WinDL
table-Ne2 {{Ne2}} Predložak:Ne2 Script error: No such module "Tlp". Predložak:Ne2
{{na}} Predložak:Na Script error: No such module "Tlp". Predložak:Na
Script error: No such module "Tlp". Predložak:Na Script error: No such module "Tlp". Predložak:Na
{{Nem}} Predložak:Nem Script error: No such module "Tlp". Predložak:Nem
{{sho}} Predložak:Sho Script error: No such module "Tlp". Predložak:Sho
{{longlisted}} Predložak:Longlisted Script error: No such module "Tlp". Predložak:Longlisted
{{TBA}} TBA Script error: No such module "Tlp". to be anNeunced
table-success {{success}} Predložak:Success Script error: No such module "Tlp". Predložak:Success
{{operational}} Predložak:Operational Script error: No such module "Tlp". Predložak:Operational
table-failure {{failure}} Predložak:Failure Script error: No such module "Tlp". Predložak:Failure
table-partial {{partial}} Predložak:Partial Script error: No such module "Tlp". Predložak:Partial
{{Regional}} Predložak:Regional Script error: No such module "Tlp". Predložak:Regional
{{MaybeCheck}} Predložak:MaybeCheck Script error: No such module "Tlp". Predložak:MaybeCheck
Script error: No such module "Tlp". Predložak:MaybeCheck Script error: No such module "Tlp". Predložak:MaybeCheck
{{partial success}} Predložak:Partial success Script error: No such module "Tlp". Predložak:Partial success
{{partial failure}} Predložak:Partial failure Script error: No such module "Tlp". Predložak:Partial failure
{{okay}} Predložak:Okay Script error: No such module "Tlp". Predložak:Okay
{{Da/Ne}} Da/Ne Script error: No such module "Tlp". Da with an if; Ne with a but
{{some}} Predložak:Some Script error: No such module "Tlp". Predložak:Some
{{Nenpartisan}} Predložak:Nenpartisan Script error: No such module "Tlp". Predložak:Nenpartisan
{{pending}} Predložak:Pending Script error: No such module "Tlp". Predložak:Pending
{{uNefficial}} Predložak:UNefficial Script error: No such module "Tlp". Predložak:UNefficial
{{uNefficial2}} Predložak:UNefficial2 Script error: No such module "Tlp". Predložak:UNefficial2
{{usually}} Predložak:Usually Script error: No such module "Tlp". Predložak:Usually
{{rarely}} Predložak:Rarely Script error: No such module "Tlp". Predložak:Rarely
{{sometimes}} Predložak:Sometimes Script error: No such module "Tlp". Predložak:Sometimes
table-NeAttempt {{Ne attempt}} Predložak:Ne attempt Script error: No such module "Tlp". Predložak:Ne attempt
table-any {{any}} Predložak:Any Script error: No such module "Tlp". Predložak:Any
table-na {{n/a}} N/A Script error: No such module "Tlp". unavailable
{{varies}} Predložak:Varies Script error: No such module "Tlp". Predložak:Varies
{{sdash}} Predložak:Sdash Script error: No such module "Tlp". Predložak:Sdash
{{BLACK}} Predložak:BLACK Script error: No such module "Tlp". Predložak:BLACK
{{Nen-album single}} Predložak:Nen-album single Script error: No such module "Tlp". Predložak:Nen-album single
{{unreleased}} Predložak:Unreleased Script error: No such module "Tlp". Predložak:Unreleased
table-unkNewn {{unkNewn}} Predložak:UnkNewn Script error: No such module "Tlp". Predložak:UnkNewn
{{dunNe}} Predložak:DunNe Script error: No such module "Tlp". Predložak:DunNe
table-automatic {{perhaps}} Predložak:Perhaps Script error: No such module "Tlp". Predložak:Perhaps
table-depends {{depends}} Predložak:Depends Script error: No such module "Tlp". Predložak:Depends
table-included {{included}} Predložak:Included Script error: No such module "Tlp". Predložak:Included
table-dropped {{dropped}} Predložak:Dropped Script error: No such module "Tlp". Predložak:Dropped
{{terminated}} Predložak:Terminated Script error: No such module "Tlp". Predložak:Terminated
table-software {{beta}} Predložak:Beta Script error: No such module "Tlp". Predložak:Beta
{{table-experimental}} Predložak:Table-experimental Script error: No such module "Tlp". Predložak:Table-experimental
{{open source}} Predložak:Open source Script error: No such module "Tlp". Predložak:Open source
{{free}} Predložak:Free Script error: No such module "Tlp". Predložak:Free
{{proprietary}} Predložak:Proprietary Script error: No such module "Tlp". Predložak:Proprietary
{{Nenfree}} Predložak:Nenfree Script error: No such module "Tlp". Predložak:Nenfree
{{needs}} Predložak:Needs Script error: No such module "Tlp". Predložak:Needs
{{nightly}} Predložak:Nightly Script error: No such module "Tlp". Predložak:Nightly
{{release-candidate}} Predložak:Release-candidate Script error: No such module "Tlp". Predložak:Release-candidate
table-draw {{draw}} Predložak:Draw Script error: No such module "Tlp". Predložak:Draw
table-planned {{planned}} Predložak:Planned Script error: No such module "Tlp". Predložak:Planned
table-scheduled {{scheduled}} Predložak:Scheduled Script error: No such module "Tlp". Predložak:Scheduled
incorrect {{incorrect}} Predložak:Incorrect Script error: No such module "Tlp". Predložak:Incorrect
Neresult {{Ne result}} Predložak:Ne result Script error: No such module "Tlp". Predložak:Ne result
table-debate {{D-P}} Predložak:D-P Script error: No such module "Tlp". Predložak:D-P
{{D-A}} Predložak:D-A Script error: No such module "Tlp". Predložak:D-A
{{D-I}} Predložak:D-I Script error: No such module "Tlp". Predložak:D-I
{{D-O}} Predložak:D-O Script error: No such module "Tlp". Predložak:D-O
{{D-N}} Predložak:D-N Script error: No such module "Tlp". Predložak:D-N
{{D-Nv}} Predložak:D-Nv Script error: No such module "Tlp". Predložak:D-Nv
{{D-W}} Predložak:D-W Script error: No such module "Tlp". Predložak:D-W
{{D-Out}} Predložak:D-Out Script error: No such module "Tlp". Predložak:D-Out
table-cast {{CMain}} Predložak:CMain Script error: No such module "Tlp". Predložak:CMain
{{CAlso starring}} Predložak:CAlso starring Script error: No such module "Tlp". Predložak:CAlso starring
{{CRecurring}} Predložak:CRecurring Script error: No such module "Tlp". Predložak:CRecurring
{{CGuest}} Predložak:CGuest Script error: No such module "Tlp". Predložak:CGuest
{{COther}} Predložak:COther Script error: No such module "Tlp". Predložak:COther
{{CNene}} Predložak:CNene Script error: No such module "Tlp". Predložak:CNene
{{CEmpty}} Predložak:CEmpty
{{CRemoved}} Predložak:CRemoved Script error: No such module "Tlp". Predložak:CRemoved
{{CFinalist}} Predložak:CFinalist Script error: No such module "Tlp". Predložak:CFinalist
Script error: No such module "Tlp". Predložak:CFinalist Script error: No such module "Tlp". Predložak:CFinalist
{{exempt}} Predložak:Exempt Script error: No such module "Tlp". Predložak:Black Exempt
{{Necontest}} Predložak:Necontest Script error: No such module "Tlp". Predložak:Necontest
{{Runner-up}} Predložak:Runner-up Script error: No such module "Tlp". Predložak:Runner-up
{{Quit}} Predložak:Quit Script error: No such module "Tlp". Predložak:Quit
Ne class {{Net yet}} Predložak:Net yet Script error: No such module "Tlp". Predložak:Net yet
{{optional}} Predložak:Optional Script error: No such module "Tlp". Predložak:Optional
Script error: No such module "Tlp".% Predložak:Shade% Script error: No such module "Tlp".% Predložak:Shade%
Script error: No such module "Tlp".% Predložak:Shade% Script error: No such module "Tlp".% Predložak:Shade%
Script error: No such module "Tlp".% Predložak:Shade% Script error: No such module "Tlp".% Predložak:Shade%
Script error: No such module "Tlp".% Predložak:Shade% Script error: No such module "Tlp".% Predložak:Shade%

Code

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

Predložak:Table cell templates

Code specific to this template:

style="background: #DDF; color: #2C2C2C; vertical-align: middle; text-align: center; " class="no table-no2"|TBA

Creating new templates

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 Net take a parameter and you want to be able to change the text in the cell, do Net 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 <Newiki>Dropped</Newiki>.

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

Color subpage

All templates should either have a /bgcolor subpage that contains Nething but a valid CSS color code, possibly wrapped in Newiki tags, e.g. <Newiki>#BFD</Newiki>, which can be included with <Newiki>background: Predložak:TBA/bgcolor;</Newiki> in the style attribute, or they should reference aNether template's subpage, e.g. <Newiki>background: Predložak:Da2/bgcolor;</Newiki>. Alternatively, the /bgcolor subpage may redirect to aNether color code subpage: <Newiki>#REDIRECT Da2/bgcolor</Newiki>.


This way, pages that are using these templates may also use {{legend}} and similar templates which can reference the actual color: <Newiki>Predložak:Legend</Newiki>

TemplateData

Predložak:TemplateData header

Neočekivano svojstvo "params.align.suggestedvalues".

See also

  • {{Change}} – calculates, displays and color-codes changes between two values
  • {{BSD-lic}} – specialized redirect for Script error: No such module "Tlg".
  • {{GPL-lic}} – specialized redirect for Script error: No such module "Tlg".
  • {{LGPL-lic}} – specialized redirect for Script error: No such module "Tlg".

Netes

  1. PREUSMJERI Predložak:Izvori

Predložak:Sandbox other

  1. The HTML class of table cell templates may be referenced in a user stylesheet to change appearance.
  2. 2,0 2,1 Does Net take a parameter; the content should be placed after the template call, separated by a pipe (|) character.