*:first-child,.mw-parser-output .ts-doc-footer>*:first-child{margin-top:.5em}.mw-parser-output .ts-doc-content>*:last-child,.mw-parser-output .ts-doc-footer>*:last-child{margin-bottom:.5em}.mw-parser-output .ts-doc-footer{background-color:#eaf3ff;border:1px solid #a3caff;padding:.214286em 1em;margin-top:.214286em;margin-bottom:.214286em;font-style:italic}@media(max-width:719px){.mw-parser-output .ts-doc-header .ts-tlinks-tlinks{float:none}}]]>Документация[просмотр | править | история | обновить]
![]() |
Внимание! Это один из самых используемых шаблонов.Каждое его изменение создаёт дополнительную нагрузку на серверы проекта. Пожалуйста, убедитесь в адекватности и правильности ваших изменений, проверьте их на тестовых страницах. |
![]() |
Этот шаблон реализован на основе Lua с использованием модуля Не переведено. |
Содержание
- 1 Заготовки для копирования
- 2 Предназначение
- 3 Шаблоны серии
- 4 Викиданные
- 5 Использование
- 6 Параметры шаблона
- 7 Список всех поддерживаемых языков
- 8 Действия после появления страницы
- 9 Ошибки
- 10 См. также
- 11 TemplateData
См. также аналогичную документацию для шаблонов нп1 • нп2 • нп3 • нп4 • iw (нп5)
Шаблоны серии «не переведено» («нп», «iw») предназначены для простановки ссылок на статьи в других языковых разделах. Например,
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Смит, Питер Джон|Питер Джон Смит|en|Peter John Smith}} превращается в Питер Джон Смит[en]
Красная ссылка ведёт на ещё не созданную статью Смит, Питер Джон в русской Википедии, синяя — на статью Peter John Smith в английской Википедии.
Заготовки для копирования
- .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw||||}}
- .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|статья в русской Википедии|текст ссылки|код языкового раздела|статья в другой Википедии}}
- .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|статья в русской Википедии|||статья в английской Википедии}}
- .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|статья в русской и английской Википедии}}
Предназначение
См. также: Википедия:Интервики § Ссылки в тексте
Прямые ссылки на статьи в других языковых разделах Википедии имеют существенный недостаток: после создания статьи в русской Википедии ссылка на иноязычный раздел станет неактуальной и её нужно будет заменить ссылкой на русскую статью, но никто не будет знать о её существовании. Шаблоны серии «не переведено» сообщают о появлении русскоязычной статьи (ссылка на которую указывается в шаблоне).
Шаблоны «не переведено» используются, если имеется статья в другом языковом разделе и считается необходимым создание аналогичной русской статьи. Пока переводом никто не озаботился, шаблон устанавливает рядом с красной ссылкой на будущую русскую статью ссылку на иноязычную статью, предлагаемую для перевода. Когда перевод будет создан, красная ссылка автоматически станет синей ссылкой на статью в русском разделе Википедии и появится сообщение о необходимости убрать шаблон.
Пока русский аналог иноязычной статьи ещё не существует, благодаря шаблону .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw}} ссылка на русскую статью высвечивается красным и позволяет, перейдя по этой ссылке, начать работу над переводом недостающей русской статьи.
Шаблоны серии
В серию входит 4 шаблона, которые имеют схожую функцию и отличаются внешним видом.
Шаблон | Другие названия | Внешний вид | Включений (2023) |
---|---|---|---|
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 2}} | .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{нп2}} | Питер Джон Смит (англ. John Smith; доп. текст) | 5 100 |
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 3}} | .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{нп3}} | Питер Джон Смит (англ.) (рус. | 78 400 |
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 4}} | .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{нп4}} | Питер Джон Смитruen | 12 200 |
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 5}} | .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw}}, .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{нп5}} | Питер Джон Смит[en] | 208 900 |
Рекомендации по выбору шаблона
В настоящий момент консенсуса о полной унификации шаблонов нп-группы нет из-за разных мнений о том, как именно должен выглядеть шаблон. Сейчас авторы используют тот или иной шаблон по вкусу. Вместе с тем наиболее распространённым вариантом является .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 5}}, причем его использование желательно через редирект .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw}}, что интуитивно понятнее новичкам, чем цифры, а также упростит техническую сторону объединения, когда консенсус будет достигнут.
При этом следует учитывать следующее:
- В навигационных шаблонах и карточках используются .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw}} (.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{нп5}}).
- Шаблон .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 2}} позволяет указывать название страницы в оригинале видимым образом, как с использованием шаблонов серии .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{lang-en}}. В иных случаях, если явное указание названия неоправдано, его использование не рекомендуется. Также слеует учитывать, что особенности данного шаблона могут вызвать учитателя ошибочное восприятие языка интервики в качестве языка происхождения самого термина, если эти языки не совпадают. В таких случаях выбор шаблона .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{нп2}} не оправдан.
- Шаблоны .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 3}} и .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 4}} используются достаточно часто, но реже, чем .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw}}. Основная причина, по которой участники его предпочитают, — синий (а не красный) цвет ссылки. Эти шаблоны обычно не используют в карточках и навигационных шаблонах, а также в очень больших статьях, близких к ВП:ПРЕДЕЛ.
- Ряд участников предпочитают .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 3}} шаблонам .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 4}} и .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 5}} по причине русскоязычного указания языков интервики-ссылок, а не в виде ISO-кода.
- Шаблон .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 5}} критикуется при этом за то, что ссылка на иноязычную версию слабоотличима от сносок.
- Шаблон .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{не переведено 5}} особым образом обрабатывает случаи, когда нужная страница в русской Википедии существует, но является перенаправлением. Для аналогичного поведения в других шаблонах серии требуются явно задать параметр r.
- В пределах одной статьи не рекомендуется использовать несколько разных шаблонов. Их желательно заменять на одинаковый для соблюдения однородности текста.
Викиданные
Вместо языка можно указать значение d, а вместо статьи в соответствующем разделе — идентификатор элемента Викиданных (вида Q123456). Обратите внимание, что в таком случае переведённая статья ищется не в русской Википедии по русскоязычному названию, а на Викиданных в указанном элементе. Перенаправления в Викиданных считаются при этом тождественными статьям. Иногда это может приводить к курьёзам при существовании статьи в русской Википедии и её отсутствии в элементе Викиданных.
Следующий вики-текст:
{{iw|Москва||d|Q12063857}}
Даёт в результате:
Использование
См. также аналогичную документацию для шаблонов нп1 • нп2 • нп3 • нп4 • iw
Пример | Результат | Примечание |
---|---|---|
Язык по умолчанию — английский | ||
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Windows 13}} = .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Windows 13|Windows 13|en|Windows 13}} |
Windows 13[en] | |
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Нью-Манчестер|||New Manchester}} = .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Нью-Манчестер|Нью-Манчестер|en|New Manchester}} |
Нью-Манчестер[en] | если статья в русском разделе будет называться не так, как в английском |
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Смит, Питер Джон|Питер Джон Смит||Peter John Smith}} = .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Смит, Питер Джон|Питер Джон Смит|en|Peter John Smith}} |
Питер Джон Смит[en] | если статья в русском разделе будет называться не так, как отображаемый текст ссылки |
Другой язык вместо английского | ||
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Windows 13||de}} = .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Windows 13|Windows 13|de|Windows 13}} |
Windows 13[de] | de — ISO-код немецкого языка, см. другие коды в .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{Коды языков}} |
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Грюнвальдштадт||de|Grünwaldstadt}} = .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Грюнвальдштадт|Грюнвальдштадт|de|Grünwaldstadt}} |
Грюнвальдштадт[de] | |
Ссылка на Викиданные | ||
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Нью-Манчестер||d|Q12063857}} | Нью-Манчестер[d] | недоступно для .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{нп2}} |
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Смит, Питер Джон|Питер Джон Смит|d|Q6223560}} | Питер Джон Смит[d] | недоступно для .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{нп2}} |
Дополнительный текст | ||
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Смит, Питер Джон|Питер Джон Смит|en|Peter John Smith|text=род. 1837}} | — | только для .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{нп2}} |
Реакция на появление статьи | ||
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Смит, Питер Джон|Питер Джон Смит|en|Peter John Smith}} | Питер Джон Смит[en] | страницы нет |
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|РФ||en|Russia}} | РФ?! | есть перенаправление |
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Россия||en|Russia}} | Россия?! | есть настоящая статья |
Ручное подавление | ||
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|РФ||en|Russia|r=1}} | — | не предлагать заменить шаблон, если он указывает на перенаправление (по умолчанию для .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw}}/нп5) |
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|Климов, Григорий Петрович|Климов|bg|Григорий Климов|l=1|nocat=1}} | Климов?! | не предлагать заменить шаблон, если он указывает даже на настоящую статью |
Параметры шаблона
Основные параметры шаблона:
.ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{iw|название статьи в русском разделе|текст ссылки|ISO-код языка|название статьи в другом разделе}}
Параметр | Описание | Тип | По умолчанию |
---|---|---|---|
1 | имя будущей статьи в русской Википедии | текст | обязательный параметр |
2 | текст ссылки на статью в русской Википедии | значение первого параметра | |
3 | ISO-код языка, с которого предлагается перевести существующую статью, или d для ссылки на элемент Викиданных | en | |
4 | название статьи в другом разделе | значение первого параметра | |
r | флаг, указывающий не реагировать на то, что статья является перенаправлением, а только поместить в категорию .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>Википедия:Запросы на замену перенаправлений переводами | Булева переменная | true |
l, leave, оставить | флаг, указывающий, что после того, как появится статья на русском языке, следует оставить иноязычное написание после ссылки на статью | false | |
nocat | отключает проставление шаблоном категорий .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>Википедия:Статьи с неактуальным шаблоном Не переведено и других |
Список всех поддерживаемых языков
Действия после появления страницы
Если существует статья
Если страница, указанная в параметре 1, уже существует, то ссылка на страницу в иноязычном разделе показываться уже не будет. Пример:
{{не переведено 5|Россия||en|Russia}}
Этот код даст при отображении шаблона ссылку на страницу Россия?!}, без отображения языковой приставки.
Пожалуйста, если увидите такой вид шаблона в статье, уберите его из статьи, иначе он появляется в категории «Википедия: Статьи с неактуальным шаблоном Не переведено». Убрать шаблон легко и просто: достаточно заменить в конструкции {{Не переведено 5|Россия||en|Russia}} «Не переведено 5» на «подст:Не переведено 5».
Если существует перенаправление
Если страница, указанная в параметре 1, уже существует, и это перенаправление, то ссылка на страницу в иноязычном разделе будет показываться со звездочкой *, при наведении на неё курсора мыши появляется комментарий с требованием убрать шаблон. Пример:
{{не переведено 5|РФ||en|Russia}}
Этот код даст при отображении шаблона ссылку на страницу в русском разделе и ссылку на страницу в иноязычном разделе: РФ?!, при этом статья попадает в категорию «Запросы на замену перенаправлений переводами». Категории шаблона при необходимости можно выключить через добавление в шаблон параметра nocat: |nocat=1.
Если перенаправление ведёт на нужную страницу, то следует убрать шаблон, заменив его на обычную вики-ссылку или заменив в конструкции {{Не переведено 5|Россия||en|Russia}} «Не переведено 5» на «подст:Не переведено 5».
Если перенаправление ведёт не на нужную страницу, а, например, на статью с более общей темой, то можно оставить шаблон, добавив параметр |nocat=1 (выключить добавление в категорию).
Если перенаправление ошибочно, то его просто следует удалить.
Ошибки
Статьи с неизвестными параметрами в шаблонах «не переведено» попадают в категория Википедия:Статьи с неизвестными параметрами шаблонов серии Не переведено (402).
Статьи с неправильно заполненными шаблонами «не переведено» попадают в категорию Википедия:Статьи с некорректно заполненным шаблоном Не переведено (3). Возможные ошибки:
- не заполнен первый параметр (название статьи в русской Википедии)
- в третьем параметре указан неизвестный код языка
- в параметрах для названий страниц имеются недопустимые символы (в том числе и .ts-templateCallCode-weak:first-child>.ts-templateCallCode-pipe:first-child{margin-left:0}.mw-parser-output .ts-templateCallCode-param+.ts-templateCallCode-closing{margin-left:2px}.mw-parser-output span.ts-templateCallCode>.ts-templateCallCode-templateName a{padding:0 0.5em!important;position:relative;margin:-0.5em}]]>{{!}}).
Если на странице используется более 500 шаблонов серии «не переведено», то шаблоны с 501 и далее не проверяют существование статьи, а страница добавляется в категорию Википедия:Статьи со слишком большим количеством вызовов ресурсоёмких функций (12) или Википедия:Страницы со слишком большим количеством вызовов ресурсоёмких функций (128).
См. также
- Проект:Инкубатор/Справочники и пособия/Шаблоны «Не переведено»
- Википедия:Опросы/Унификация шаблонов «Не переведено»
- Проект:Check Wikipedia/Замена прямых интервики-ссылок
- Схожие по реализации:
Шаблоны, связанные с иностранными языками | |
---|---|
См. также Коды языков. |
TemplateData
Ссылка на другой языковой раздел, когда нет подходящей статьи в русской Википедии
Параметр | Описание | Тип | Статус | |
---|---|---|---|---|
Русское название статьи | 1 |
предлагаемое название статьи в русском разделе
|
Однострочный | обязательный |
Текст ссылки | 2 |
видимый текст ссылки на статью в русском разделе
|
Однострочный | предложенный |
Язык статьи в другом разделе | 3 |
ISO-код языка иноязычного раздела
|
Однострочный | предложенный |
Статья в другом разделе | 4 |
название существующей иноязычной статьи
|
Однострочный | предложенный |
Оставлять шаблон | l leave |
Не предлагать заменить шаблон, если он указывает даже на настоящую статью
|
Логическое значение | необязательный |
Без категорий | nocat |
Запрещает добавление (статьи) в категорию «Википедия:Статьи с неактуальным шаблоном “Не переведено”»
|
Логическое значение | необязательный |
*:first-child,.mw-parser-output .ts-doc-footer>*:first-child{margin-top:.5em}.mw-parser-output .ts-doc-content>*:last-child,.mw-parser-output .ts-doc-footer>*:last-child{margin-bottom:.5em}.mw-parser-output .ts-doc-footer{background-color:#eaf3ff;border:1px solid #a3caff;padding:.214286em 1em;margin-top:.214286em;margin-bottom:.214286em;font-style:italic}@media(max-width:719px){.mw-parser-output .ts-doc-header .ts-tlinks-tlinks{float:none}}]]>
Во избежание поломок страниц, использующих этот шаблон, экспериментируйте в песочнице (редактировать | разница) или своём личном пространстве.
Пожалуйста, добавляйте категории на подстраницу /doc. Подстраницы этого шаблона.