Pojdi na vsebino

Predloga:N/a/dok

Iz Wikipedije, proste enciklopedije

Predloge te serije so narejene za uporabo v tabelah, kjer ustvarijo celico z določeno vsebino in barvo ozadja. Uporabljajo se v tabelah za primerjanje in drugod. Večina ni namenjena preprostemu barvanju ozadja celic, temveč naj bi se uporabljale skladno s pomenom.

Za primer, {{da}} ustvari celico z zelenim ozadjem in izpiše privzeto besedilo »Da«, lahko pa določimo besedilo s prvim parametrom: tako bo {{Da|Seveda}} izpisalo »Seveda« namesto »Da«. Tovrstno zamenjavo besedila omogoča večina predlog te serije. Druge zahtevajo besedilo po klicu predloge ali tudi z navpičnico vmes: {{predloga za celico v tabeli}} besedilo ali {{predloga za celico v tabeli}} | besedilo. Navodila za uporabo prikazuje spodnja tabela.

Pomembno: če želite uporabljati druge atribute za celice, kot so colspan, rowspan ali style, morajo biti vključeni pred klicem predloge in brez navpičnice (»pipe«) | vmes:

DaNeN/A
da/ne
...
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
|-
|colspan=2 style="border:solid 3px Maroon" {{Yes-No}}
...

Predloge

[uredi kodo]
Predloge za celico v tabeli
Razred[1] Privzeto Spremenjeno
SyntaxPredogled SyntaxPredogled
table-rh {{rh}} | Row header[2]Row header{{rh|align=right}} | Row headerRow header
{{rh2}} | Row header[2]Predloga:Rh2 | Row header{{rh2|align=center}} | Row headerPredloga:Rh2 | Row header
table-yes {{yes}}Da{{yes|customized [[Plain text|text]]}}customized text
{{yes C}}Predloga:Yes C{{yes C|customized [[Plain text|text]]}}Predloga:Yes C
{{yes O}}Predloga:Yes O{{yes O|customized [[Plain text|text]]}}Predloga:Yes O
{{yes N}}Predloga:Yes N{{yes N|customized [[Plain text|text]]}}Predloga:Yes N
table-maybe {{maybe}}Mogoče{{maybe|customized [[Plain text|text]]}}customized text
table-no {{no}}Ne{{no|customized [[Plain text|text]]}}customized text
{{no O}}Predloga:No O{{no O|customized [[Plain text|text]]}}Predloga:No O
{{no X}}Predloga:No X{{no X|customized [[Plain text|text]]}}Predloga:No X
{{eliminated}}Eliminated{{eliminated|dropped out}}dropped out
{{lost}}Predloga:Lost{{lost|missing}}Predloga:Lost
{{active fire|12%}}[3]Predloga:Active fire
{{safe}}Predloga:Safe{{safe|protected}}Predloga:Safe
{{no Y}}Predloga:No Y{{no Y|customized [[plain text|text]]}}Predloga:No Y
table-active {{active}}Aktivno{{active|live}}live
table-siteactive {{site active}}Predloga:Site active{{site active|up}}Predloga:Site active
{{coming soon}}Predloga:Coming soon{{coming soon|second half of the year}}Predloga:Coming soon
table-siteinactive {{site inactive}}Predloga:Site inactive{{site inactive|down}}Predloga:Site inactive
table-success {{success}}Predloga:Success{{success|mission complete}}Predloga:Success
{{operational}}Predloga:Operational{{operational|returning data}}Predloga:Operational
table-failure {{failure}}Predloga:Failure{{failure|wrong orbit}}Predloga:Failure
table-yes2 {{yes2}}{{yes2|text}}text
{{good}}Dobro{{good|A}}A
{{ya}}Da{{ya|text=ya}}ya
{{ya|Ya}}Ya{{ya|text|link=WP:ALT}}text
{{yan}}Predloga:Yan{{yan|text=ya}}Predloga:Yan
{{won}}Osvojil/a{{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}}Predloga:WinDL{{WinDL|win}}Predloga:WinDL
{{WinDL|res=D}}Predloga:WinDL{{WinDL|res=draw}}Predloga:WinDL
{{WinDL|res=L}}Predloga:WinDL{{WinDL|res=loss}}Predloga:WinDL
table-no2 {{no2}}{{no2|text}}text
{{na}}No{{na|text=na}}na
{{na|Na}}Na{{na|text|link=WP:ALT}}text
{{nan}}Predloga:Nan{{nan|text=na}}Predloga:Nan
{{nom}}nominiran/a{{nom|5}}5
{{notnom}}Predloga:Notnom{{notnom|not selected}}Predloga:Notnom
{{sho}}Ožji izbor{{sho|proposed}}proposed
{{longlisted}}Predloga:Longlisted{{longlisted|rejected}}Predloga:Longlisted
{{TBA}}Predloga:TBA{{TBA|to be announced}}Predloga:TBA
table-partial {{partial}}deloma{{partial|almost done}}almost done
{{Regional}}Predloga:Regional{{Regional|Uyghur}}Predloga:Regional
{{MaybeCheck}}Predloga:MaybeCheck{{MaybeCheck|text=possibly}}Predloga:MaybeCheck
{{MaybeCheck|possibly}}Predloga:MaybeCheck{{MaybeCheck|text|link=WP:ALT}}Predloga:MaybeCheck
{{partial success}}Predloga:Partial success{{partial success|
reached orbit and returned pictures}}
Predloga:Partial success
{{partial failure}}Predloga:Partial failure{{partial failure|[[Cubesat]] not deployed}}Predloga:Partial failure
{{okay}}Predloga:Okay{{okay|C}}Predloga:Okay
{{Yes-No}}da/ne{{Yes-No|yes with an if; no with a but}}yes with an if; no with a but
{{some}}Predloga:Some{{some|many}}Predloga:Some
{{pending}}Poteka{{pending|awaiting}}awaiting
{{sometimes}}Predloga:Sometimes{{sometimes|occasionally}}Predloga:Sometimes
{{rarely}}Predloga:Rarely{{rarely|seldom}}Predloga:Rarely
{{usually}}Predloga:Usually{{usually|commonly}}Predloga:Usually
{{unofficial}}Predloga:Unofficial{{unofficial|''de facto''}}Predloga:Unofficial
{{unofficial2}}Predloga:Unofficial2{{unofficial2|''de facto''}}Predloga:Unofficial2
{{nonpartisan}}Predloga:Nonpartisan{{nonpartisan|impartial}}Predloga:Nonpartisan
table-any {{any}}Predloga:Any{{any|anyone}}Predloga:Any
table-automatic {{perhaps}}Predloga:Perhaps{{perhaps|maybe}}Predloga:Perhaps
table-draw {{draw}}Predloga:Draw{{draw|1:1}}Predloga:Draw
table-noAttempt {{No attempt}}Predloga:No attempt{{No attempt|No landing attempted}}Predloga:No attempt
table-na {{n/a}}N/A{{n/a|unavailable}}unavailable
{{varies}}Predloga:Varies{{varies|differs}}Predloga:Varies
{{non-album single}}[4]Predloga:Non-album single{{non-album single|EP}}Predloga:Non-album single
{{unreleased}}Predloga:Unreleased{{unreleased|shelved}}Predloga:Unreleased
{{BLACK}}N/A{{BLACK|banned}}banned
{{sdash}}{{sdash|[[File:Dash.svg|13px|dash icon]]}}dash
{{vacant}}Predloga:Vacant{{vacant|missing}}Predloga:Vacant
table-unknown {{unknown}}Neznano{{unknown|?}}?
{{dunno}}?{{dunno|not sure}}not sure
table-included {{included}}Predloga:Included{{included|incorporated}}Predloga:Included
noresult {{no result}}Ni rezultata{{no result|NR}}NR
table-planned {{planned}}Predloga:Planned{{planned|July 2028}}Predloga:Planned
table-scheduled {{scheduled}}Predloga:Scheduled{{scheduled|3 March 2027}}Predloga:Scheduled
table-software[5] {{beta}}Predloga:Beta{{beta|preview}}Predloga:Beta
{{table-experimental}}Predloga:Table-experimental{{table-experimental|lab}}Predloga:Table-experimental
{{nightly}}Predloga:Nightly{{nightly|dev}}Predloga:Nightly
{{release-candidate}}Predloga:Release-candidate{{release-candidate|RC}}Predloga:Release-candidate
{{open source}}Predloga:Open source{{open source|software libre}}Predloga:Open source
{{free}}Predloga:Free{{free|empty}}Predloga:Free
{{proprietary}}Predloga:Proprietary{{proprietary|custom extension}}Predloga:Proprietary
{{nonfree}}Predloga:Nonfree{{nonfree|paid}}Predloga:Nonfree
{{needs}}Predloga:Needs{{needs|req.}}Predloga:Needs
table-depends {{depends}}Predloga:Depends{{depends|vendor-defined}}Predloga:Depends
table-dropped {{dropped}}Predloga:Dropped{{dropped|discontinued}}Predloga:Dropped
{{terminated}}Predloga:Terminated{{terminated|fired}}Predloga:Terminated
incorrect {{incorrect}}Napačno{{incorrect|wrong}}wrong
table-debate {{D-P}}Predloga:D-P{{D-P|present}}Predloga:D-P
{{D-A}}Predloga:D-A{{D-A|absent}}Predloga:D-A
{{D-I}}Predloga:D-I{{D-I|invited}}Predloga:D-I
{{D-O}}Predloga:D-O{{D-O|invited to other debate}}Predloga:D-O
{{D-N}}Predloga:D-N{{D-N|not invited}}Predloga:D-N
{{D-Nv}}Predloga:D-Nv{{D-Nv|not voting}}Predloga:D-Nv
{{D-W}}Predloga:D-W{{D-W|withdrawn}}Predloga:D-W
{{D-Out}}Predloga:D-Out{{D-Out|out of race}}Predloga:D-Out
table-cast[6] {{CMain}}Predloga:CMain{{CMain|text}}Predloga:CMain
{{CAlso starring}}Predloga:CAlso starring{{CAlso starring|costar}}Predloga:CAlso starring
{{CRecurring}}Predloga:CRecurring{{CRecurring|regular guest}}Predloga:CRecurring
{{CGuest}}Predloga:CGuest{{CGuest|victim}}Predloga:CGuest
{{COther}}Predloga:COther{{COther|ensemble}}Predloga:COther
{{CNone}}Predloga:CNone{{CNone|cast}}Predloga:CNone
{{CEmpty}}Predloga:CEmpty
{{CRemoved}}Predloga:CRemoved{{CRemoved|edited}}Predloga:CRemoved
{{CFinalist}}Predloga:CFinalist{{CFinalist|contender}}Predloga:CFinalist
{{CFinalist|place=3rd Place}}Predloga:CFinalist{{CFinalist|place=third place}}Predloga:CFinalist
{{exempt}}Predloga:Exempt{{Black Exempt}}Predloga:Black Exempt
{{nocontest}}Predloga:Nocontest{{nocontest|rescheduled}}Predloga:Nocontest
{{Runner-up}}Predloga:Runner-up{{Runner-up|2nd Place}}Predloga:Runner-up
{{Quit}}Predloga:Quit{{Quit|left}}Predloga:Quit
no class {{not yet}}Predloga:Not yet{{not yet|NY}}Predloga:Not yet
{{optional}}Neobvezno{{optional|non-mandatory}}non-mandatory
{{shade|100}}%Predloga:Shade%{{shade|color=blue|100}}%Predloga:Shade%
{{shade|75}}%Predloga:Shade%{{shade|color=blue|75|73–78}}%Predloga:Shade%
{{shade|25}}%Predloga:Shade%{{shade|color=blue|25|{{val|25|2|u=%}}}}Predloga:Shade
{{shade|0}}%Predloga:Shade%{{shade|color=blue|0}}%Predloga:Shade%
{{Cell color|90|25|90}}Predloga:Cell color{{Cell color|90|25|90|a80202|0d89fc}}Predloga:Cell color
{{Cell color|58|25|90}}Predloga:Cell color{{Cell color|58|25|90|a80202|0d89fc}}Predloga:Cell color
{{Cell color|25|25|90}}Predloga:Cell color{{Cell color|25|25|90|a80202|0d89fc}}Predloga:Cell color
{{CellCategory|2|Some text}}Predloga:CellCategory

Splošna koda za praktično vse predloge te serije:

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

Koda za to konkretno predlogo:

V predlogi je bila odkrita zanka: Predloga:Table cell templates/dok

Creating new templates

[uredi kodo]

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

[uredi kodo]

When changing or creating a new template, follow the use of colour guidelines and the color accessibility guidelines 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

[uredi kodo]

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

[uredi kodo]
To je dokumentacija TemplateData za predlogo, ki jo uporabljajo Vizualni urejevalnik in druga orodja; glejte mesečno poročilo o uporabi parametrov za to predlogo.

TemplateData za N/a

One of several templates for styling individual table cells with standard contents and colors.

Parametri predloge[Urejanje podatkov predloge]

Za to predlogo se uporablja postavitev parametrov v eni vrstici.

ParameterOpisVrstaStanje
text1

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

Privzeto
(template dependent)
Vsebinaneobvezno
horizontal alignalign

text alignment inside the cell, either 'left', 'right', 'center' or 'justified'

Predlagane vrednosti
left center right justified
Privzeto
center
Nizneobvezno
stylestyle

a semicolon-separated list of additional CSS rules to be applied to the table cell

Privzeto
(template dependent)
Nizneobvezno
background colorcolor

a valid CSS color value or name to override the standard cell background, only available with some templates

Privzeto
(template dependent)
Vrsticaneobvezno

See also

[uredi kodo]

Notes

[uredi kodo]
  1. Razredi HTML, s katerimi je možno spreminjati izgled, so zbrani na strani user stylesheet.
  2. 1 2 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 Predloga:WikiProject link.
  4. This template is related to Predloga:WikiProject link.
  5. This group of templates is related to Predloga:WikiProject link.
  6. This group of templates is related to Predloga:WikiProject link.