Template:KV:ru: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(added support for internal names. needs some translating to be on par with the English version.)
(Changed redirect target from Template:KV to Template:KeyValue)
Tag: Redirect target changed
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<noinclude>{{lang|Template:KV}}{{updatetranslation:ru}}
#redirect [[Template:KeyValue]]
Шаблон используется для создания описаний к значениям Keyvalue.
 
== Использование ==
<nowiki>{{KV|<имя>|<тип переменой>|<описание>}}</nowiki>
 
{{note:ru|Не забудьте использовать шаблон [[Template:=]] чтобы заменить знаки "{{=}}" в описании.}}
 
== Параметры ==
{| class=standard-table
! Параметр || Описание || Пример || Предпросмотр
|-
| <code>deprecated</code> || Используется для пометки устаревших значений || <code><nowiki>{{KV:ru|Я устарело!|string|Ну правда, больше не надо меня использовать!|deprecated=1}}</nowiki></code> || {{KV:ru|Я устарело!|string|Ну правда, больше не надо меня использовать!|deprecated=1}}
|-
| <code>nofgd</code> || Это значение не доступно в официальном FGD. || <code><nowiki>{{KV:ru|Добавьте меня в FGD|boolean|Потому что меня там нет!|nofgd=1}}</nowiki></code> || {{KV:ru|Добавьте меня в FGD|boolean|Потому что меня там нет!|nofgd=1}}
|-
| <code>since</code> || Это значение доступно с выпуска этой игры. Используется шаблон <nowiki>{{<game> add}}</nowiki>. || <code><nowiki>{{KV:ru|Я люблю Alien Swarm|integer|Я доступно и в Portal 2 тоже!|since=AS}}</nowiki></code> || {{KV:ru|Я люблю Alien Swarm|integer|Я доступно и в Portal 2 тоже!|since=AS}}
|-
| <code>intn</code> || || <code><nowiki>{{KV:ru|Sound 01|intn=sound|string}}</nowiki></code> || {{KV:ru|Sound 01|intn=sound|string}}
|-
| <code>to</code> || Используйте чтобы определить набор значений с похожими именами. || <code><nowiki>{{KV:ru|Sound 01|to=Sound 24|string|Нас много...}}</nowiki></code> || {{KV:ru|Sound 01|to=Sound 24|string|Нас много...}}
|}
 
== См. также ==
* [[Template:IO:ru]]
 
<hr>
</noinclude>; {{#if: {{{deprecated|}}} | <del> }}{{{1}}} <!--
-->{{#if: {{{intn|}}} | <span style="font-weight: normal;"><code>{{Hover info|dotted=no|The internal name for this keyvalue; this is what the engine knows this keyvalue as. These display in Hammer for keyvalues when SmartEdit is disabled, or for keyvalues not in the FGD.|({{{intn}}})}}</code></span> }}<!--
-->{{#if: {{{to|}}} | <span style="font-weight: normal;">до</span> {{{to}}} }}<!--
-->{{#if:{{{intn2|}}} | &nbsp;<span style="font-weight: normal;"><code>{{Hover info|dotted=no|The internal name for this keyvalue; this is what the engine knows this keyvalue as. These display in Hammer for keyvalues when SmartEdit is disabled, or for keyvalues not in the FGD.|({{{intn2}}})}}</code></span>}} <!--
-->{{#if: {{{2|}}} | {{KV Type:ru|{{{2}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{since|}}} | &nbsp;{{since:ru|{{ {{{since}}} }}}} }}{{#if: {{{only|}}} | &nbsp;{{only:ru|{{ {{{only}}} }}}} }}{{#if: {{{not|}}} | &nbsp;{{not:ru|{{ {{{not}}} }}}} }}{{#if: {{{removed|}}} | &nbsp;{{removed:ru|{{ {{{removed}}} }}}} }}{{#if: {{{also|}}} | &nbsp;{{also:ru|{{ {{{also}}} }}}} }}{{#if: {{{nofgd|}}} | &nbsp;{{Not in FGD:ru}} }}
: {{#if: {{{deprecated|}}} | Устарело.&nbsp; }}{{#if: {{{3|}}} | {{{3}}} | {{todo:ru|добавить описание}} }}<noinclude>
[[Category:FGD Templates:ru]]
</noinclude>

Latest revision as of 00:00, 21 April 2025

Redirect to: