Шаблон:Won/док
{{#ifeq:док |док
|
{{#ifeq:show |show
|
| Ово је документациона подстраница за Шаблон:Won. Садржи информације о коришћењу, категоријама и другом садржају који није део оригиналне странице. |
}}{{#if: |
| {{#ifexist:Шаблон:Won
| [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}
{{#ifeq:Шаблон:Won/док|Template:BLACK|
}}
Шаблони у овој серији су дизајнирани да се користе у табелама да би се направила ћелија са садржаним текстом те са прикладно обојеном позадином. Најчешће се користе у табелама поређења.
На пример, {{{{#if:Да|Да| tlc|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} прави ћелију са зеленом позадином. Текст у ћелији се узима из првог параметра; {{Да|наравно}} би исписало „наравно”, док је подразумевана вредност „Да”. Већина шаблона допушта ауторима да заобиђу подразумевани текст на овај начин, док неки захтевају да текст буде после позивања шаблона или да је усправна црта неопходна између: {{шаблон за ћелије табела}} текст или {{шаблон за ћелије табела}} | текст. Ова информација, боје и подразумевани текстови се могу наћи у табели испод.
Ако желите да користите друге атрибуте за ћелије табела, на пример colspan или rowspan, они се морају ставити пре позивања шаблона, а вертикалне црте | између њих не сме да буде:
| Да | Не | Н/Д |
|---|---|---|
| Да/Не | ||
...
!{{Да}} ||{{Не}} ||rowspan=2 {{Н/Д}}
|-
|colspan=2 {{Да-Не}}
...
Шаблони
| Класа[1] | Подразумевана синтакса | Претпреглед (подразумевани) | Измењена синтакса | Претпреглед (измењени) | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
table-rh |
{{rh}} | Заглавље реда[2] | Заглавље реда | {{{{#if:rh | rh | tlp|... }}{{#ifeq:align=right|align=right| |align=right }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | Заглавље реда | Заглавље реда | ||||||||||||||||
| {{rh2}} | Заглавље реда[2] | Заглавље реда | {{{{#if:rh2 | rh2 | tlp|... }}{{#ifeq:align=right|align=right| |align=right }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | Заглавље реда | Заглавље реда | |||||||||||||||||
table-yes |
{{yes}} | Да | {{{{#if:yes | yes | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
| {{ya}} | rowspan="{{{rowspan}}}"}} | |
{{{{#if:ya | ya | tlp|... }}{{#ifeq:Измењен текст|Измењен текст| |Измењен текст }}{{#ifeq:link=WP:ALT|link=WP:ALT| |link=WP:ALT }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | rowspan="{{{rowspan}}}"}} | | ||||||||||||||||||
table-no |
{{no}} | Не | {{{{#if:no | no | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
| {{na}} | rowspan="{{{rowspan}}}"}} | |
{{{{#if:na | na | tlp|... }}{{#ifeq:Измењен текст|Измењен текст| |Измењен текст }}{{#ifeq:link=WP:ALT|link=WP:ALT| |link=WP:ALT }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | rowspan="{{{rowspan}}}"}} | | ||||||||||||||||||
| {{coming soon}} | Долази ускоро | |||||||||||||||||||||||||||
| {{bad}} | Лоше | {{{{#if:bad | bad | tlp|... }}{{#ifeq:НОК|НОК| |НОК }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | НОК | |||||||||||||||||
| {{eliminated}} | Елиминисан(а) | |||||||||||||||||||||||||||
table-siteactive |
{{site active}} | Активан | ||||||||||||||||||||||||||
table-siteinactive |
{{site inactive}} | Неактиван | ||||||||||||||||||||||||||
table-yes2 |
{{good}} | Добро | {{{{#if:good | good | tlp|... }}{{#ifeq:ОК|ОК| |ОК }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | ОК | ||||||||||||||||
| {{yes2}} | {{{{#if:yes2 | yes2 | tlp|... }}{{#ifeq:Текст|Текст| |Текст }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Текст | ||||||||||||||||||
| {{won}} | style="background: {{
|
победа|освојено|pobeda|osvojeno = #99FF99 | 1st|gold|злато|zlato = gold | 2nd|silver|сребро|srebro = silver | 3rd|bronze|бронза|bronza = #D9A821 | #default = #F8EABA
}}; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|Освојено || {{{{#if:won |
won | tlp|... }}{{#ifeq:text=white|text=white| |text=white }}{{#ifeq:color=darkblue|color=darkblue| |color=darkblue }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | style="background: {{
|
победа|освојено|pobeda|osvojeno = darkblue | 1st|gold|злато|zlato = darkblue | 2nd|silver|сребро|srebro = darkblue | 3rd|bronze|бронза|bronza = darkblue | #default = darkblue
}}; color: white; vertical-align: middle; text-align: center; " class="yes table-yes2"|Освојено | |||||||||
| {{{{#if:won | won | tlp|... }}{{#ifeq:place=1|place=1| |place=1 }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | style="background: {{
|
победа|освојено|pobeda|osvojeno = #99FF99 | 1st|gold|злато|zlato = gold | 2nd|silver|сребро|srebro = silver | 3rd|bronze|бронза|bronza = #D9A821 | #default = #F8EABA
}}; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|1 || {{{{#if:won |
won | tlp|... }}{{#ifeq:place=Злато|place=Злато| |place=Злато }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | style="background: {{
|
победа|освојено|pobeda|osvojeno = #99FF99 | 1st|gold|злато|zlato = gold | 2nd|silver|сребро|srebro = silver | 3rd|bronze|бронза|bronza = #D9A821 | #default = #F8EABA
}}; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|Злато |
| {{{{#if:won | won | tlp|... }}{{#ifeq:place=2|place=2| |place=2 }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | style="background: {{
|
победа|освојено|pobeda|osvojeno = #99FF99 | 1st|gold|злато|zlato = gold | 2nd|silver|сребро|srebro = silver | 3rd|bronze|бронза|bronza = #D9A821 | #default = #F8EABA
}}; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|2 || {{{{#if:won |
won | tlp|... }}{{#ifeq:place=Сребро|place=Сребро| |place=Сребро }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | style="background: {{
|
победа|освојено|pobeda|osvojeno = #99FF99 | 1st|gold|злато|zlato = gold | 2nd|silver|сребро|srebro = silver | 3rd|bronze|бронза|bronza = #D9A821 | #default = #F8EABA
}}; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|Сребро |
| {{{{#if:won | won | tlp|... }}{{#ifeq:place=3|place=3| |place=3 }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | style="background: {{
|
победа|освојено|pobeda|osvojeno = #99FF99 | 1st|gold|злато|zlato = gold | 2nd|silver|сребро|srebro = silver | 3rd|bronze|бронза|bronza = #D9A821 | #default = #F8EABA
}}; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|3 || {{{{#if:won |
won | tlp|... }}{{#ifeq:place=Бронза|place=Бронза| |place=Бронза }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | style="background: {{
|
победа|освојено|pobeda|osvojeno = #99FF99 | 1st|gold|злато|zlato = gold | 2nd|silver|сребро|srebro = silver | 3rd|bronze|бронза|bronza = #D9A821 | #default = #F8EABA
}}; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|Бронза |
table-no2 |
{{no2}} | {{{{#if:no2 | no2 | tlp|... }}{{#ifeq:Текст|Текст| |Текст }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Текст | |||||||||||||||||
| {{nom}} | Номинација | {{{{#if:nom | nom | tlp|... }}{{#ifeq:5|5| |5 }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | 5 | |||||||||||||||||
| {{sho}} | Ужи избор | |||||||||||||||||||||||||||
| {{TBA}} | {{#switch:|i|IPA=TBA|TBA}} | {{{{#if:TBA | TBA | tlp|... }}{{#ifeq:Биће објављено|Биће објављено| |Биће објављено }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Биће објављено | |||||||||||||||||
table-partial |
{{partial}} | Делимично | {{{{#if:partial | partial | tlp|... }}{{#ifeq:Скоро завршено|Скоро завршено| |Скоро завршено }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Скоро завршено | ||||||||||||||||
| {{yes-No}} | Да/Не | |||||||||||||||||||||||||||
| {{okay}} | Неутр. | {{{{#if:okay | okay | tlp|... }}{{#ifeq:Н|Н| |Н }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Н | |||||||||||||||||
| {{some}} | Неки | |||||||||||||||||||||||||||
table-any |
{{any}} | Сваки | ||||||||||||||||||||||||||
table-na |
{{n/a}} | Н/Д | ||||||||||||||||||||||||||
| {{BLACK}} | Н/Д | |||||||||||||||||||||||||||
table-unknown |
{{dunno}} | ? | {{{{#if:dunno | dunno | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
| {{unknown}} | Непознато | {{{{#if:unknown | unknown | tlp|... }}{{#ifeq:?|?| |? }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | ? | |||||||||||||||||
table-depends |
{{depends}} | Зависи | {{{{#if:depends | depends | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
table-included |
{{included}} | Дели | ||||||||||||||||||||||||||
table-dropped |
{{dropped}} | Одбачен(о) | ||||||||||||||||||||||||||
| {{terminated}} | Прекинут(о) | |||||||||||||||||||||||||||
table-beta |
{{beta}} | Бетавер | ||||||||||||||||||||||||||
| {{table-experimental}} | Експериментално | {{{{#if:table-experimental | table-experimental | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | |||||||||||||||||
table-maybe |
{{maybe}} | Можда | {{{{#if:maybe | maybe | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
table-free |
{{free}} | Слободно | {{{{#if:free | free | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
table-proprietary |
{{proprietary}} | Власнички | {{{{#if:proprietary | proprietary | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
table-nonfree |
{{nonfree}} | Неслободно | {{{{#if:nonfree | nonfree | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
table-needs |
{{needs}} | Безусловно | {{{{#if:needs | needs | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
table-nightly |
{{nightly}} | Ноћна градња | {{{{#if:nightly | nightly | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
table-release-candidate |
{{release-candidate}} | Кандидат за излазак | {{{{#if:release-candidate | release-candidate | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
| no class | {{draw}} | {{{{#if:draw | draw | tlp|... }}{{#ifeq:Текст|Текст| |Текст }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Текст | |||||||||||||||||
| no class | {{incorrect}} | Неисправно | {{{{#if:incorrect | incorrect | tlp|... }}{{#ifeq:Измењен [[:en:Plain text|текст]]|Измењен [[:en:Plain text|текст]]| |Измењен [[:en:Plain text|текст]] }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | Измењен текст | ||||||||||||||||
| no class | {{no result}} | Без резултата | {{{{#if:no result | no result | tlp|... }}{{#ifeq:БР|БР| |БР }}{{#ifeq:x | |{{{3}}} }}{{#ifeq:x | |{{{4}}} }}{{#ifeq:x | |{{{5}}} }}{{#ifeq:x | |{{{6}}} }}{{#ifeq:x | |{{{7}}} }}{{#ifeq:x | |{{{8}}} }}{{#ifeq:x | |{{{9}}} }}}} | БР | ||||||||||||||||
| no class | {{pending}} | На чекању | ||||||||||||||||||||||||||
| no class | {{unofficial}} | Незванично | ||||||||||||||||||||||||||
| no class | {{usually}} | Често | ||||||||||||||||||||||||||
| no class | {{rarely}} | Ретко | ||||||||||||||||||||||||||
| no class | {{sometimes}} | Некад | ||||||||||||||||||||||||||
| no class | {{CMain}} | {{#ifeq:|el|Glavna|Главна}} | ||||||||||||||||||||||||||
| no class | {{CRecurring}} | {{#ifeq:|el|Povratna|Повратна}} | ||||||||||||||||||||||||||
| no class | {{CGuest}} | {{#ifeq:|el|Gost|Гост}} | ||||||||||||||||||||||||||
| no class | {{active fire}} | Активно (12%) | ||||||||||||||||||||||||||
| no class | {{contained}} | Обуздано |
Code
Common code to most if not all the templates in this series:
{{#if:|data-sort-value="{{{sort|{{{sort}}}}}}"}} 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: {{
- switch: победа
|won|победа|освојено|pobeda|osvojeno = #99FF99
|1|1st|gold|злато|zlato = gold
|2|2nd|silver|сребро|srebro = silver
|3|3rd|bronze|бронза|bronza = #D9A821
|#default = #F8EABA
}}; 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
TemplateData за Won
{{#ifeq:док|sandbox||
}} <templatedata>{ "description": "A table cell template to show the color-coded place in a competition.", "params": {
"place": {
"label": "Place",
"description": "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",
"type": "string",
"default": "Won",
"required": false
}
}}</templatedata>
See also
- {{change}}: Calculates, displays and color-codes changes between two values
- {{GPL-lic}}: Specialized redirect for {{{{#if:Free|Free| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
- {{LGPL-lic}}: Specialized redirect for {{{{#if:Free|Free| tlf|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
Notes
| column-width: 30em;
| {{#switch:|1=|2=column-width: 30em;|#default=column-width: 25em;}} }}
| {{#if:
| column-width: 30em; }} }} list-style-type: {{#switch:
| upper-alpha
| upper-roman
| lower-alpha
| lower-greek
| lower-roman = {{{група}}}
| #default = decimal}};">
- ↑ HTML класе за ћелије табела могу се наћи на страници за корисничке стилове како би им се променио изглед.
- ↑ 2,0 2,1 Не узима параметар; садржај треба да се постави после позивања шаблона, одвојен вертикалном цртом (|).