{"id":2748,"date":"2021-01-26T16:01:00","date_gmt":"2021-01-26T16:01:00","guid":{"rendered":"http:\/\/jenaexperiment.uni-jena.de\/?page_id=2748"},"modified":"2021-02-18T16:44:46","modified_gmt":"2021-02-18T16:44:46","slug":"variable-template","status":"publish","type":"page","link":"https:\/\/jenaexperiment.uni-jena.de\/index.php\/variable-template\/","title":{"rendered":"Variable Template"},"content":{"rendered":"\n<p>! not all the users have this function permission. In order to make the units consistent, currently only the data management team are able to use this function.<\/p>\n\n\n\n<p class=\"has-text-color has-luminous-vivid-orange-color\">If you need any new variables and not able to use this function, please email the <a href=\"mailto: yuanyuan.huang@idiv.de\">data curator<\/a>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"\/wp-content\/uploads\/image-58.png\" alt=\"\" class=\"wp-image-2750\" width=\"394\" height=\"184\" srcset=\"\/blog\/wp-content\/uploads\/image-58.png 485w, \/blog\/wp-content\/uploads\/image-58-300x140.png 300w\" sizes=\"(max-width: 394px) 100vw, 394px\" \/><figcaption>On the up right of the database, click the setting <\/figcaption><\/figure>\n\n\n\n<h2><strong>Create Variable Template<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"\/wp-content\/uploads\/image-60.png\" alt=\"\" class=\"wp-image-2752\" width=\"386\" height=\"305\" srcset=\"\/blog\/wp-content\/uploads\/image-60.png 772w, \/blog\/wp-content\/uploads\/image-60-300x237.png 300w, \/blog\/wp-content\/uploads\/image-60-768x607.png 768w\" sizes=\"(max-width: 386px) 100vw, 386px\" \/><\/figure>\n\n\n\n<h2>Units &amp; Data Type<\/h2>\n\n\n\n<p>For details, check the <a href=\"http:\/\/jenaexperiment.uni-jena.de\/index.php\/manage-units\/\">Units<\/a> and <a href=\"http:\/\/jenaexperiment.uni-jena.de\/index.php\/data-type\/\">Data Type<\/a> page.<\/p>\n\n\n\n<h2>Constraints<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"\/wp-content\/uploads\/image-63.png\" alt=\"\" class=\"wp-image-2755\" width=\"448\" height=\"366\" srcset=\"\/blog\/wp-content\/uploads\/image-63.png 745w, \/blog\/wp-content\/uploads\/image-63-300x246.png 300w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"\/wp-content\/uploads\/image-65-1024x257.png\" alt=\"\" class=\"wp-image-2757\" width=\"665\" height=\"166\" srcset=\"\/blog\/wp-content\/uploads\/image-65-1024x257.png 1024w, \/blog\/wp-content\/uploads\/image-65-300x75.png 300w, \/blog\/wp-content\/uploads\/image-65-768x193.png 768w, \/blog\/wp-content\/uploads\/image-65.png 1227w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><\/figure>\n\n\n\n<p> <strong>Range: <\/strong> If the input data is of numeric type, this constraint checks whether the input value falls in the specified range. If the input data is of type string, the range check behaves like a length check, which means the length of the input string should fall in the range. The range has a lower bound and an upper bound, plus two indicators to show whether the boundary values are included in the range. Negate function checks if the value is out of the range!  <\/p>\n\n\n\n<p> <strong>Pattern: <\/strong>takes the value as input and matches it against a pattern to see whether the pattern is found in the input. If so, it returns true; otherwise false. Pattern constraints apply to text values only, for more information on the format click here. <\/p>\n\n\n\n<p> <strong>Domain: <\/strong>takes the value as input and matches it against each and every domain item in the list.  If the value matches one, it stops matching and returns true, which means the value satisfies the constraint. If no match is found it returns false. <br>No duplicate domain item is allowed, although it does not affect the matching procedure described. <br>Domain items can be characters, strings, Booleans or numbers.  <br>Currently, it only allows 250 characters<\/p>\n","protected":false},"excerpt":{"rendered":"<p>! not all the users have this function permission. In order to make the units consistent, currently only the data management team are able to use this function. If you&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/jenaexperiment.uni-jena.de\/index.php\/wp-json\/wp\/v2\/pages\/2748"}],"collection":[{"href":"https:\/\/jenaexperiment.uni-jena.de\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/jenaexperiment.uni-jena.de\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/jenaexperiment.uni-jena.de\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jenaexperiment.uni-jena.de\/index.php\/wp-json\/wp\/v2\/comments?post=2748"}],"version-history":[{"count":7,"href":"https:\/\/jenaexperiment.uni-jena.de\/index.php\/wp-json\/wp\/v2\/pages\/2748\/revisions"}],"predecessor-version":[{"id":3035,"href":"https:\/\/jenaexperiment.uni-jena.de\/index.php\/wp-json\/wp\/v2\/pages\/2748\/revisions\/3035"}],"wp:attachment":[{"href":"https:\/\/jenaexperiment.uni-jena.de\/index.php\/wp-json\/wp\/v2\/media?parent=2748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}