Difference between revisions of "Form:Metadata/include core"

From OpenMedia
Jump to: navigation, search
m
m (+Resource ID)
Line 137: Line 137:
 
-->{{Hidden
 
-->{{Hidden
 
  | contentclass = indicateHiddenInputs
 
  | contentclass = indicateHiddenInputs
  | header = ''Publication Details, Published Source, Reviewer Comments …''
+
  | header = ''Publication Details, Published Source, Reviewer Comments, Resource ID …''
 
  | toggle text = + / − | toggle position = left
 
  | toggle text = + / − | toggle position = left
 
  | contentstyle = border-left: 1px solid #cccccc; padding-left:10px;
 
  | contentstyle = border-left: 1px solid #cccccc; padding-left:10px;
Line 154: Line 154:
  
 
<div class="floating-form-parts">  Rating: &#123;&#123;&#123;field &#124; Rating &#124; input type=dropdown &#124; values=0, 1, 2, 3, 4, 5 &#124; default=0 &#124; size =5&#125;&#125;&#125;<br/><span class="comment-gray"> 0&nbsp;= (unrated); 1&nbsp;= bad, strongly disliked; 2&nbsp;= neutral; 3&nbsp;= good, suitable, or liked; 4&nbsp;= very good, suitable, or liked; 5&nbsp;= Superb</span></div>
 
<div class="floating-form-parts">  Rating: &#123;&#123;&#123;field &#124; Rating &#124; input type=dropdown &#124; values=0, 1, 2, 3, 4, 5 &#124; default=0 &#124; size =5&#125;&#125;&#125;<br/><span class="comment-gray"> 0&nbsp;= (unrated); 1&nbsp;= bad, strongly disliked; 2&nbsp;= neutral; 3&nbsp;= good, suitable, or liked; 4&nbsp;= very good, suitable, or liked; 5&nbsp;= Superb</span></div>
 +
 +
<div class="floating-form-parts">  Resource ID:        <br/> &#123;&#123;&#123;field &#124; Resource ID &#125;&#125;&#125;</div>
  
 
<div style="clear:both;"></div>
 
<div style="clear:both;"></div>

Revision as of 17:06, 28 August 2015

Core template for {{Metadata}} to be included in conjunction also with other possible forms. Because of including this page into other form pages, all form-field parameter need to be rewritten as HTML entities with the following correspondence of characters:

Character HTML
Entity
{ &#123;
} &#125;
| &#124;

So the form field-definition …

{{{field | templateparameter | input type=textarea | rows=2 | autogrow}}}

… becomes …

&#123;&#123;&#123;field &#124; templateparameter &#124; input type=textarea &#124; rows=2 &#124; autogrow&#125;&#125;&#125;

Usage

This Page is meant to be included:

{{:Metadata/include core}}

Dependencies