Template:Form/Poetic Feature

From Psalms: Layer by Layer
Jump to: navigation, search


This is a helper template for the Psalm form. It runs twice: once for the discussion fields that belong WITHIN the main template, and once for the EMBEDDED templates, which need to actually appear, code-wise, WITHOUT the main template.

e.g.

{{Form/Poetic Feature 
   |Run=Discussion (vs. Table)
   |Section=Phonology 
   |Index=1 
   |Include table=yes
   |Description=How are vowels distributed throughout the poem? 
   |Additional info=Include additional notes about the feature in the space below the table. How does our analysis change when viewing aleph vs. ayin with the same vowel underneath? }}


1.

How are vowels distributed throughout the poem? Include additional notes about the feature in the space below the table. How does our analysis change when viewing aleph vs. ayin with the same vowel underneath? {{{field|Table.1|holds template}}} Further discussion:{{{field|Discussion.1|input type=textarea}}}{{{field|Relevant.1|input type=checkbox|default=false}}} This feature seems to be relevant to the structure of this psalm.


Former Code

{{#ifeq: {{{Run|Discussion}}}|Discussion|
{{#if: {{{Heading|}}}|<nowiki/>
== {{{ItemIndex|1}}}. {{{Heading|}}} == <br/>
}}
{{{Description|}}}
{{#if: {{{Additional info|}}} 
 |''{{{Additional info|}}}''
}}<!--
      Distinct template for this poetic feature
-->
{{#ifeq: {{{Include table|}}} |yes|
<!--
     Placeholder for table + label for Discussion
-->
{{{field|{{{Section|}}}.{{{ItemIndex|1}}}.Table|holds template}}}
Further discussion:
}}{{{field|{{{Section|}}}.{{{ItemIndex|1}}}.Discussion|input type=textarea}}}<!--

     'Relevance' checkbox

-->{{#switch: {{{Include table|}}}{{{Include checkbox|}}} 
  |yes
  |noyes=
{{{field|{{{Section|}}}.{{{ItemIndex|1}}}.Relevant|input type=checkbox|default=false}}} This feature seems to be relevant to the structure of this psalm.
}}
<br/>
|
{{#ifeq: {{{Include table|}}} |yes|
<!--
     Table for multi-instance items (which must, code-wise, be placed AFTER the above template, but which will appear WITHIN the template 
-->
{{{for template
             |Feature Table.{{{Section|}}}.{{{ItemIndex|1}}}
             |multiple
             |display=spreadsheet
             |height=300px
             |minimum instances=1
             |embed in field={{{Section|}}}[{{{Section|}}}.{{{ItemIndex|1}}}.Table]
}}}

{{{field|Definition|input type=textarea|label=Definition (feature being studied)}}}
{{{field|Occurrences|input type=textarea|label=Occurrences}}}
{{{field|Clustering|input type=textarea|label=Clustering (or sections of absence) of this feature}}}
{{{field|Intersection|input type=textarea|label=Intersection  of occurrences with overall text structure}}}
{{{field|Connections|input type=textarea|label=Connections formed by feature (among words, lines, sections, or other)}}}
{{{field|Structure|input type=textarea|label=Explain (if applicable) how this feature contributes to the structuring of the text}}}

{{{end template}}} <!-- end table -->
}}
}}