Šablon:Won/dok
Ovo je dokumentaciona podstranica za Šablon:Won. Sadrži informacije o korišćenju, kategorijama i drugom sadržaju koji nije deo originalne stranice. |
Šabloni u ovoj seriji su dizajnirani da se koriste u tabelama da bi se napravila ćelija sa sadržanim tekstom te sa prikladno obojenom pozadinom. Najčešće se koriste u tabelama poređenja.
Na primer, {{Да}}
pravi ćeliju sa zelenom pozadinom. Tekst u ćeliji se uzima iz prvog parametra; {{Да|наравно}}
bi ispisalo „naravno”, dok je podrazumevana vrednost „Da”. Većina šablona dopušta autorima da zaobiđu podrazumevani tekst na ovaj način, dok neki zahtevaju da tekst bude posle pozivanja šablona ili da je uspravna crta neophodna između: {{шаблон за ћелије табела}} текст
ili {{шаблон за ћелије табела}} | текст
. Ova informacija, boje i podrazumevani tekstovi se mogu naći u tabeli ispod.
Ako želite da koristite druge atribute za ćelije tabela, na primer colspan
ili rowspan
, oni se moraju staviti pre pozivanja šablona, a vertikalne crte |
između njih ne sme da bude:
Da | Ne | N/D |
---|---|---|
Da/Ne |
... !{{Да}} ||{{Не}} ||rowspan=2 {{Н/Д}} |- |colspan=2 {{Да-Не}} ...
Šabloni[uredi izvor]
Klasa[1] | Podrazumevana sintaksa | Pretpregled (podrazumevani) | Izmenjena sintaksa | Pretpregled (izmenjeni) |
---|---|---|---|---|
table-rh |
{{rh}} | Zaglavlje reda[2] | Zaglavlje reda | {{rh|align=right}} | Zaglavlje reda | Zaglavlje reda |
{{rh2}} | Zaglavlje reda[2] | Zaglavlje reda | {{rh2|align=right}} | Zaglavlje reda | Zaglavlje reda | |
table-yes |
{{yes}} | Da | {{yes|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
{{ya}} | {{ya|Izmenjen tekst|link=WP:ALT}} | |||
table-no |
{{no}} | Ne | {{no|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
{{na}} | {{na|Izmenjen tekst|link=WP:ALT}} | |||
{{coming soon}} | Dolazi uskoro | |||
{{bad}} | Loše | {{bad|NOK}} | NOK | |
{{eliminated}} | Eliminisan(a) | |||
table-siteactive |
{{site active}} | Aktivan | ||
table-siteinactive |
{{site inactive}} | Neaktivan | ||
table-yes2 |
{{good}} | Dobro | {{good|OK}} | OK |
{{yes2}} | {{yes2|Tekst}} | Tekst | ||
{{won}} | Osvojeno | {{won|text=white|color=darkblue}} | Osvojeno | |
{{won|place=1}} | 1 | {{won|place=Zlato}} | Zlato | |
{{won|place=2}} | 2 | {{won|place=Srebro}} | Srebro | |
{{won|place=3}} | 3 | {{won|place=Bronza}} | Bronza | |
table-no2 |
{{no2}} | {{no2|Tekst}} | Tekst | |
{{nom}} | Nominacija | {{nom|5}} | 5 | |
{{sho}} | Uži izbor | |||
{{TBA}} | TBA | {{TBA|Biće objavljeno}} | Biće objavljeno | |
table-partial |
{{partial}} | Delimično | {{partial|Skoro završeno}} | Skoro završeno |
{{yes-No}} | Da/Ne | |||
{{okay}} | Neutr. | {{okay|N}} | N | |
{{some}} | Neki | |||
table-any |
{{any}} | Svaki | ||
table-na |
{{n/a}} | N/D | ||
{{BLACK}} | N/D | |||
table-unknown |
{{dunno}} | ? | {{dunno|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
{{unknown}} | Nepoznato | {{unknown|?}} | ? | |
table-depends |
{{depends}} | Zavisi | {{depends|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
table-included |
{{included}} | Deli | ||
table-dropped |
{{dropped}} | Odbačen(o) | ||
{{terminated}} | Prekinut(o) | |||
table-beta |
{{beta}} | Betaver | ||
{{table-experimental}} | Eksperimentalno | {{table-experimental|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst | |
table-maybe |
{{maybe}} | Možda | {{maybe|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
table-free |
{{free}} | Slobodno | {{free|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
table-proprietary |
{{proprietary}} | Vlasnički | {{proprietary|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
table-nonfree |
{{nonfree}} | Neslobodno | {{nonfree|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
table-needs |
{{needs}} | Bezuslovno | {{needs|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
table-nightly |
{{nightly}} | Noćna gradnja | {{nightly|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
table-release-candidate |
{{release-candidate}} | Kandidat za izlazak | {{release-candidate|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
no class | {{draw}} | {{draw|Tekst}} | Tekst | |
no class | {{incorrect}} | Neispravno | {{incorrect|Измењен [[:en:Plain text|текст]]}} | Izmenjen tekst |
no class | {{no result}} | Bez rezultata | {{no result|BR}} | BR |
no class | {{pending}} | Na čekanju | ||
no class | {{unofficial}} | Nezvanično | ||
no class | {{usually}} | Često | ||
no class | {{rarely}} | Retko | ||
no class | {{sometimes}} | Nekad | ||
no class | {{CMain}} | Glavna | ||
no class | {{CRecurring}} | Povratna | ||
no class | {{CGuest}} | Gost | ||
no class | {{active fire}} | Aktivno (12%) | ||
no class | {{contained}} | Obuzdano |
Code[uredi izvor]
Common code to most if not all the templates in this series:
style="background: #abcdef; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="automatic table-automatic"| {{{1|text}}}
Code specific to this template:
style="background: #99FF99; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|Освојено
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: center; " class="automatic table-automatic"| text
TemplateData[uredi izvor]
TemplateData za Won
A table cell template to show the color-coded place in a competition.
Parametar | Opis | Vrsta | Status | |
---|---|---|---|---|
Place | place | values like ‘1’, ‘2’, ‘3’ or ‘gold’, ‘silver’, ‘bronze’ automatically change the background color accordingly and the text displayed, too, unless an anonymous first parameter is specified, other values also show up, but with a default color
| tekst | neobavezno |
See also[uredi izvor]
- {{change}}: Calculates, displays and color-codes changes between two values
- {{GPL-lic}}: Specialized redirect for {{Free}}
- {{LGPL-lic}}: Specialized redirect for {{Free}}
Notes[uredi izvor]
- ^ HTML klase za ćelije tabela mogu se naći na stranici za korisničke stilove kako bi im se promenio izgled.
- ^ a b Ne uzima parametar; sadržaj treba da se postavi posle pozivanja šablona, odvojen vertikalnom crtom (|).