Шаблон:Поиск тюльпанов: различия между версиями

Материал из Greenwiki
Jump to navigation Jump to search
Строка 1: Строка 1:
 +
<noinclude>
 +
Use it by [[Special:RunQuery/{{PAGENAME}}]].
 +
 +
== Parameters ==
 +
<div class="definition-inline">
 +
; file= : name of the file
 +
; [[Category:Title|title]]= : title of the media file
 +
; [[Property:Год|Год]]= : Год
 +
; [[property: Высота |Высота]]= : Высота (, separated list)
 +
; [[property: Окрас цветка|Окрас цветка]]= : (, separated list)
 +
; [[property: Однородность окраса|Однородность окраса]]= : Однородность окраса
 +
; [[property: Contributor |contributor]]= : contributor of the file
 +
; scientific name= : [[property: Scientific Name with Author |scientific name with authorship]] or [[Property:Scientific Name|without authorship]] or [[property: Scientific Name Synonym |scientific name synonym]]
 +
; [[property: Common Name |common names]]= : common or vernacular name (, separated list)
 +
</div>
 +
 +
== Dependencies ==
 +
 +
* [[{{FULLPAGENAME}}/render ask result to table row]]
 +
* [[{{ns:form}}: {{PAGENAME}}]]
 +
 +
[[Category: SMW ask template]]
 +
</noinclude><includeonly><!--
 +
-->{{#vardefine: numberOfFoundMedia| {{#ask: [[File:+]] <!--
 +
-->{{#if: {{{file|}}} | [[Page Name::~*{{{file}}}*]] }} <!--
 +
-->{{#if: {{{title|}}} | [[Title::~*{{{title}}}*]] }} <!--
 +
-->{{#if: {{{type|}}} | [[Type::{{#arraymap: {{{type}}}|,|§|§|{{!}}{{!}} }}]]}} <!--
 +
-->{{#if: {{{creator|}}} | [[Creator::~*{{{creator}}}*]] }} <!--
 +
-->{{#if: {{{contributor|}}} | [[Contributor::~*{{{contributor}}}*]]}} <!--
 +
-->{{#if: {{{keywords|}}} | [[General Keyword::{{#arraymap: {{{keywords}}}|,|§|~*§*|{{!}}{{!}}}}]]}} <!--
 +
-->{{#if: {{{subject category|}}} | [[Subject Category::{{#arraymap: {{{subject category}}}|,|§|~*§*|{{!}}{{!}}}}]]}} <!--
 +
-->{{#if: {{{common names|}}} | [[Common Name::{{#arraymap: {{{common names}}}|,|§|~*§*|{{!}}{{!}}}}]]}} <!--
 +
-->{{#if: {{{scientific name|}}} | <q>[[Scientific Name with Author::~*{{{scientific name}}}*]] OR [[Scientific Name::~*{{{scientific name}}}*]] OR [[Scientific Name Synonym::~*{{{scientific name}}}*]]</q>}} <!--
 +
-->
 +
| format = count
 +
}}}}<!-- end var numberOfFoundMedia
 +
-->{{#switch: {{#var: numberOfFoundMedia}}<!--
 +
-->| 0 = No results found<!--
 +
-->| 1 = 1 result found<!--
 +
-->| #default = {{#var: numberOfFoundMedia}} results found<!--
 +
-->}}<!-- end switch
 +
--> ([[#input_search_criteria|modify search criteria&nbsp;]][[File:Crystal Clear action find.png|x22px|link=#input_search_criteria]])
 +
{{#if: {{{file|}}}<!--then-->|
 +
* '''file''' contains “{{{file|}}}”<!--
 +
-->}}<!-- end if
 +
-->{{#if: {{{title|}}}<!--then-->|
 +
* '''title''' contains “{{{title|}}}”<!--
 +
-->}}<!-- end if
 +
-->{{#if: {{{keywords|}}}<!--then-->|
 +
* '''keywords''' contain “{{#arraymap: {{{keywords|}}}|,|§|§|&#32;or&#32;}}”<!--
 +
-->}}<!-- end if
 +
-->{{#if: {{{type|}}}<!--then-->|
 +
* '''type''' of media file is “{{#arraymap: {{{type|}}}|,|§|§|&#32;or&#32;}}”<!--
 +
-->}}<!-- end if
 +
-->{{#if: {{{subject category|}}}<!--then-->|
 +
* '''subject category''' contains “{{#arraymap: {{{subject category|}}}|,|§|[[:category: §]]|&#32;or&#32;}}”<!--
 +
-->}}<!-- end if
 +
-->{{#if: {{{creator|}}}<!--then-->|
 +
* '''creator''' contains “{{{creator|}}}”<!--
 +
-->}}<!-- end if
 +
-->{{#if: {{{contributor|}}}<!--then-->|
 +
* '''contributor''' contains “{{{contributor|}}}”<!--
 +
-->}}<!-- end if
 +
-->{{#if: {{{common names|}}}<!--then-->|
 +
* '''common names''' contain “{{#arraymap: {{{common names|}}}|,|§|§|&#32;or&#32;}}”<!--
 +
-->}}<!-- end if
 +
-->{{#if: {{{scientific name|}}}<!--then-->|
 +
* “{{{scientific name|}}}” in one of '''[[property: Scientific Name with Author |scientific name with authorship]]''',  '''[[Property:Scientific Name|scientific name]]''' or '''[[Property:Scientific Name Synonym|scientific name synonym]]'''<!--
 +
-->}}<!-- end if
 +
-->
 +
 +
<hr style="margin-top:2ex;margin-bottom:2ex;"/>
 +
{{#tag: inputbox|
 +
type = search
 +
namespaces=Main**,File**,Help
 +
break=no
 +
default={{{file|}}}
 +
}}
 +
<hr style="margin-top:2ex;margin-bottom:2ex;"/>
 +
 +
{{Ombox|text=A query within longer string data values (having more than 40 characters) unfortunately does not find anything. Because of a software restriction, words further at the end are not found (see: [http://sourceforge.net/p/semediawiki/mailman/message/31876801/ SMW e-mail discussion]).}}
 +
 +
{{#ask: [[File:+]] <!--
 +
-->{{#if: {{{file|}}} | [[Page Name::~*{{{file}}}*]] }} <!--
 +
-->{{#if: {{{title|}}} | [[Title::~*{{{title}}}*]] }} <!--
 +
-->{{#if: {{{type|}}} | [[Type::{{#arraymap: {{{type}}}|,|§|§|{{!}}{{!}} }}]]}} <!--
 +
-->{{#if: {{{creator|}}} | [[Creator::~*{{{creator}}}*]] }} <!--
 +
-->{{#if: {{{contributor|}}} | [[Contributor::~*{{{contributor}}}*]]}} <!--
 +
-->{{#if: {{{keywords|}}} | [[General Keyword::{{#arraymap: {{{keywords}}}|,|§|~*§*|{{!}}{{!}}}}]]}} <!--
 +
-->{{#if: {{{subject category|}}} | [[Subject Category::{{#arraymap: {{{subject category}}}|,|§|~*§*|{{!}}{{!}}}}]]}} <!--
 +
-->{{#if: {{{common names|}}} | [[Common Name::{{#arraymap: {{{common names}}}|,|§|~*§*|{{!}}{{!}}}}]]}} <!--
 +
-->{{#if: {{{scientific name|}}} | <q>[[Scientific Name with Author::~*{{{scientific name}}}*]] OR [[Scientific Name::~*{{{scientific name}}}*]] OR [[Scientific Name Synonym::~*{{{scientific name}}}*]]</q>}} <!--
 +
-->
 +
| ?=file<!-- 1 -->
 +
| ?Title=title<!-- 2 -->
 +
| ?Type=typ of media<!-- 3 -->
 +
| ?Creator=creator<!-- 4 -->
 +
| ?Contributor=contributor<!-- 5 -->
 +
| ?Scientific Name with Author=scientific name with authorship<!-- 6 -->
 +
| ?Scientific Name=scientific name<!-- 7 -->
 +
| ?Scientific Name Synonym=scientific name synonym<!-- 8 -->
 +
| ?Caption<!-- 9 -->
 +
| ?General Keyword<!-- 10 -->
 +
| ?Description<!-- 11 -->
 +
| ?Common Name<!-- 12 -->
 +
| ?Subject Category<!-- 13 -->
 +
| ?Original Creation Date<!-- 14 -->
 +
| mainlabel=-
 +
| link=none
 +
| sep=;
 +
| searchlabel='''☛ More results …'''
 +
| intro=<table class="sortable booktabledotted vertical-align-top"><tr><!--
 +
  --><th style="vertical-align:bottom;">File</th><!-- 1
 +
  --><th style="vertical-align:bottom;">Title, Caption</th><!-- 2
 +
  --><th style="vertical-align:bottom;">Meta Data</th><!-- 3
 +
--></tr>
 +
| outro=</table>
 +
| default=Nothing found.
 +
| format = template
 +
| template =Search media by metadata/render ask result to table row
 +
| limit = 100}}<!--
 +
 +
--></includeonly>
 +
==========================================
 +
 +
 
<noinclude>
 
<noinclude>
 
== Parameters ==
 
== Parameters ==

Версия 22:51, 9 ноября 2021

Use it by Special:RunQuery/Поиск тюльпанов.

Parameters[править код]

file=
name of the file
=
title of the media file
Год=
Год
Высота=
Высота (, separated list)
Окрас цветка=
(, separated list)
Однородность окраса=
Однородность окраса
contributor=
contributor of the file
scientific name=
scientific name with authorship or without authorship or scientific name synonym
common names=
common or vernacular name (, separated list)

Dependencies[править код]

==============================[править код]

Parameters[править код]

🧅Группа (класс) : |

Год регистрации сорта=
Год регистрации сорта
Группа тюльпанов=
Группа тюльпанов
Высота=
Высота
Окрас цветка=
Окрас цветка
Однородность окраса=
Однородность окраса

Dependencies[править код]

A template for Форма:Поиск.