Difference between revisions of "Template:FieldByProperty"

From OPENRESEARCH th copy Wiki
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
+
{{FieldByProperty|Property:Acronym}}
 +
{{FieldByProperty|Property:Logo}}
 
</noinclude>
 
</noinclude>
<includeonly>
+
<includeonly><nowiki>{{{field</nowiki>
<nowiki>{{{field</nowiki>
+
<nowiki>|</nowiki>{{#show: {{{1|}}}|?Property name}}
<nowiki>|</nowiki>{{#show: {{{1|}}}|?Property label}}
+
<nowiki>|</nowiki>input type={{#show: {{{1|}}}|?Property inputType}}<nowiki>
<nowiki>|</nowiki>input type={{#show: {{{1|}}}|?Property inputType}}
+
                  </nowiki>{{#if:{{#show: {{{1|}}}|?Property placeholder}}|<nowiki>|</nowiki>placeholder={{#show: {{{1|}}}|?Property placeholder|link=none}} }}<nowiki>
{{#if:{{#show: {{{1|}}}|?Property placeholder}}|<nowiki>|</nowiki>placeholder={{#show: {{{1|}}}|?Property placeholder|link=none}} }}
+
                  </nowiki>{{#ifeq:{{#show: {{{1|}}}|?Property inputType}}|regexp|{{RegexpToFieldRegexp|{{#show: {{{1|}}}|?Property regex|link=none}} }} }}<nowiki>
{{#ifeq:{{#show: {{{1|}}}|?Property inputType}}|regexp|{{RegexpToFieldRegexp|{{#show: {{{1|}}}|?Property regex|link=none}} }} }}
+
                  </nowiki>{{#if:{{#show: {{{1|}}}|?Property allowedValues }} |<nowiki>|</nowiki>values={{#show: {{{1|}}}|?Property allowedValues|link=none}} }}<nowiki>
{{#if:{{#show: {{{1|}}}|?Property allowedValues }} |<nowiki>|</nowiki>values={{#show: {{{1|}}}|?Property allowedValues|link=none}} }}
+
                  </nowiki>{{#if:{{#show: {{{1|}}}|?Property values from }} |<nowiki>|</nowiki>values from {{#show: {{{1|}}}|?Property values from|link=none}} }}<nowiki>
{{#if:{{#show: {{{1|}}}|?Property values from }} |<nowiki>|</nowiki>values from {{#show: {{{1|}}}|?Property values from|link=none}} }}
+
                  </nowiki>{{#ifeq:{{#show: {{{1|}}}|?Property mandatory}}|true|<nowiki>|</nowiki>mandatory}}<nowiki>
{{#ifeq:{{#show: {{{1|}}}|?Property mandatory}}|true|<nowiki>|</nowiki>mandatory}}
+
                  </nowiki>{{#ifeq:{{#show: {{{1|}}}|?Property uploadable}}|true|<nowiki>|</nowiki>uploadable <nowiki>|</nowiki>image preview <nowiki>|</nowiki>default filename=Image for <page name>.jpeg }}<nowiki>
{{#ifeq:{{#show: {{{1|}}}|?Property primary key }}|true|<nowiki>|</nowiki>unique}}
+
                  </nowiki>{{#ifeq:{{#show: {{{1|}}}|?Property primaryKey }}|true|<nowiki>|</nowiki>unique}}<nowiki>
<nowiki>}}}</nowiki>
+
                  </nowiki>
</includeonly>
+
<nowiki>}}}</nowiki></includeonly>

Latest revision as of 21:16, 21 March 2021


{{{field |Acronym |input type=text |placeholder=E.g. 3DUI |mandatory |unique }}}

{{{field |Logo |input type=text |values from namespace=File |uploadable |image preview |default filename=Image for <page name>.jpeg }}}