Template:KV:ru: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(added support for Only, Not, Removed, and Also.)
(added support for internal names. needs some translating to be on par with the English version.)
Line 16: Line 16:
|-
|-
| <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>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|Нас много...}}
| <code>to</code> || Используйте чтобы определить набор значений с похожими именами. || <code><nowiki>{{KV:ru|Sound 01|to=Sound 24|string|Нас много...}}</nowiki></code> || {{KV:ru|Sound 01|to=Sound 24|string|Нас много...}}
Line 24: Line 26:


<hr>
<hr>
</noinclude>; {{#if: {{{deprecated|}}} | <del> }}{{{1}}} {{#if: {{{to|}}} | <span style="font-weight: normal;">до</span> {{{to}}} }} {{#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}} }}
</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>
: {{#if: {{{deprecated|}}} | Устарело.&nbsp; }}{{#if: {{{3|}}} | {{{3}}} | {{todo:ru|добавить описание}} }}<noinclude>
[[Category:FGD Templates:ru]]
[[Category:FGD Templates:ru]]
</noinclude>
</noinclude>

Revision as of 14:54, 4 May 2022

Template:Updatetranslation:ru Шаблон используется для создания описаний к значениям Keyvalue.

Использование

{{KV|<имя>|<тип переменой>|<описание>}}

Template:Note:ru

Параметры

Параметр Описание Пример Предпросмотр
deprecated Используется для пометки устаревших значений {{KV:ru|Я устарело!|string|Ну правда, больше не надо меня использовать!|deprecated=1}}
Я устарело! <string>
Устарело. Ну правда, больше не надо меня использовать!
nofgd Это значение не доступно в официальном FGD. {{KV:ru|Добавьте меня в FGD|boolean|Потому что меня там нет!|nofgd=1}}
Добавьте меня в FGD <boolean> Отсутствует в FGD!
Потому что меня там нет!
since Это значение доступно с выпуска этой игры. Используется шаблон {{<game> add}}. {{KV:ru|Я люблю Alien Swarm|integer|Я доступно и в Portal 2 тоже!|since=AS}}
Я люблю Alien Swarm <integer> (Во всех играх начиная с Alien Swarm)
Я доступно и в Portal 2 тоже!
intn {{KV:ru|Sound 01|intn=sound|string}}
Sound 01 (sound) <string>
Template:Todo:ru
to Используйте чтобы определить набор значений с похожими именами. {{KV:ru|Sound 01|to=Sound 24|string|Нас много...}}
Sound 01 до Sound 24 <string>
Нас много...

См. также


{{{1}}}
Template:Todo:ru