Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:placeholders [29.08.2015 15:43] – [Predefined Placeholders] New predefined placeholders adminen:create:placeholders [23.03.2021 22:27] – [Predefined Placeholders] sophia.schauer
Line 69: Line 69:
  
 ^Placeholder^Description^Variable in Data^PHP Function^ ^Placeholder^Description^Variable in Data^PHP Function^
 +|''%caseLanguage%''| Ongoing Questionaire Language [Language-Code] |LANGUAGE|''[[:en:create:functions:getlanguage]]''|
 |''%caseNumber%''|Ongoing Questionnaire Number|CASE|''[[:en:create:functions:casenumber|caseNumber()]]''| |''%caseNumber%''|Ongoing Questionnaire Number|CASE|''[[:en:create:functions:casenumber|caseNumber()]]''|
 |''%caseSerial%''|Questionnaire Authorization Code |SERIAL|''[[:en:create:functions:caseserial|caseSerial()]]''| |''%caseSerial%''|Questionnaire Authorization Code |SERIAL|''[[:en:create:functions:caseserial|caseSerial()]]''|
Line 74: Line 75:
 |''%reference%''|Reference Given to the Questionnaire|REF|''[[:en:create:functions:reference|reference()]]''| |''%reference%''|Reference Given to the Questionnaire|REF|''[[:en:create:functions:reference|reference()]]''|
  
-The following placeholders are available within an item or option (e.g., in the item text).+The following placeholders are available within an item or option (e.g., in the item text). The numbering helps, e.g., to give randomly rotated options continuous numbers.
  
-^Placeholder^Description^ +^Placeholder^Description^Example
-|''%i.num%''|Number of the item within the question (numeric)| +|''%i.n.%''|Position of the item within the question plus point and blank|1. | 
-|''%i.anum%''|Number of the item within the question (lower case character)| +|''%i.a)%''|Position of the item (lower case letter) plus bracket|a) | 
-|''%i.cnt%''|Number of items within the question|+|''%i.num%''|Position of the item (numeric)|1| 
 +|''%i.num.a%''|Position of the item (lower case letter)|a| 
 +|''%i.num.A%''|Position of the item (upper case letter)|A
 +|''%i.cnt%''|Number of items within the question|5|
  
 The following placeholders are designated for use exclusively in the HTML template of a layout.  The following placeholders are designated for use exclusively in the HTML template of a layout. 
en/create/placeholders.txt · Last modified: 21.04.2024 20:21 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki