Шаблон:Инвертировать-свойство: различия между версиями

Содержимое удалено Содержимое добавлено
Новая страница: «<noinclude> This template takes a property name and its inverse property name. It queries for the inverse property name and produces wiki text with the inverted…»
 
Vvollo (обсуждение | вклад)
Нет описания правки
 
(не показаны 2 промежуточные версии 2 участников)
Строка 1:
<noinclude>Этот шаблон принимает имя свойства и имя обратного свойства. Он запрашивает имя обратного свойства и создает вики-текст с инвертированными аннотациями.
<noinclude>
This template takes a property name and its inverse property name. It queries for the inverse property name and produces wiki text with the inverted annotations.
 
Использование: <nowiki>{{Инвертировать-свойство|Имя производного свойства|Имя обратного свойства}}</nowiki>
Usage: <nowiki>{{Invert-property|Derived property name|Its inverse property name}}</nowiki>
 
Это скрывает аннотацию, указав пробел в качестве альтернативного текста. Поскольку "<tt>| </tt>" в шаблоне сбивает с толку синтаксический анализ, в качестве разделителя используется подшаблон: [[Шаблон:Инвертировать-свойство/Сепаратор]].
This hides the annotation by specifying blank as the alternate text. Since "<tt>| </tt>" in a template confuses parsing, it uses a subtemplate [[Template:Invert-property/Separator]] for the separator.
 
См. [https://www.semantic-mediawiki.org/wiki/Demo:California California] как пример использования этого шаблона.
See [[California]] for use of this template.
 
(CreditБлагодарность goesза toэтот приём уходит пользователю Semantic MediaWiki user DanTMan for this technique).)
[[Категория:Шаблоны]]
[[Category:Sample pages]]
</noinclude><includeonly>[[{{{2}}}::{{#ask:[[{{{1}}}::{{PAGENAMEEPAGENAME}}]]|link=none|sep={{InvertИнвертировать-propertyсвойство/SeparatorСепаратор|{{{2}}}}}}}|
]]</includeonly>