Template: Form/Poetic Feature: Difference between revisions

From Psalms: Layer by Layer
Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>


This is a helper template for the Psalm form.
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.
e.g.
<pre>
<pre>
{{Form/Poetic Feature  
{{Form/Poetic Feature  
  |Run=Discussion (vs. Table)
   |Section=Phonology  
   |Section=Phonology  
   |ItemIndex=1  
   |ItemIndex=1  
Line 19: Line 20:
   |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? }}
   |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? }}


Old embedded code:
</noinclude><includeonly>{{#ifeq: {{{Run|Discussion}}}|Discussion|
<pre>
<nowiki>{{{field|</nowiki>{{{Section|}}}.{{{ItemIndex|1}}}<nowiki>.Table|holds template}}}</nowiki>
 
...
            |embed in field=</nowiki>{{{Section|}}}<nowiki>[</nowiki>{{{Section|}}}.{{{ItemIndex|1}}}<nowiki>.Table]
 
</pre>
 
</noinclude><includeonly>
{{{ItemIndex|1}}}. {{{Description|}}}
{{{ItemIndex|1}}}. {{{Description|}}}
{{#if: {{{Additional info|}}}  
{{#if: {{{Additional info|}}}  
Line 39: Line 31:
     Discussion (include label only if there is also a table)
     Discussion (include label only if there is also a table)
-->
-->
<nowiki>{{{field|</nowiki>{{{Section|}}}.{{{ItemIndex|1}}}<nowiki>.Table|holds template}}}</nowiki>
Further discussion:
Further discussion:
}}<nowiki>{{{field|</nowiki>{{{Section|}}}.{{{ItemIndex|1}}}<nowiki>.Discussion|input type=textarea}}}</nowiki>
}}<nowiki>{{{field|</nowiki>{{{Section|}}}.{{{ItemIndex|1}}}<nowiki>.Discussion|input type=textarea}}}</nowiki>
Line 50: Line 43:
}}
}}
<br/><br/>
<br/><br/>
|
{{#ifeq: {{{Include table|}}} |yes|
{{#ifeq: {{{Include table|}}} |yes|
<!--
<!--
Line 55: Line 49:
-->
-->
<nowiki>{{{for template
<nowiki>{{{for template
             |</nowiki>{{{Section|}}}.{{{ItemIndex|1}}}<nowiki>.Feature Table
             |Feature Table.</nowiki>{{{Section|}}}.{{{ItemIndex|1}}}<nowiki>
             |multiple
             |multiple
             |display=spreadsheet
             |display=spreadsheet
             |height=300px
             |height=300px
             |minimum instances=1
             |minimum instances=1
            |embed in field=</nowiki>{{{Section|}}}<nowiki>[</nowiki>{{{Section|}}}.{{{ItemIndex|1}}}<nowiki>.Table]
}}}
}}}


Line 70: Line 65:
</nowiki>
</nowiki>
<nowiki>{{{end template}}}</nowiki> <!-- end table -->
<nowiki>{{{end template}}}</nowiki> <!-- end table -->
}}
}}
}}
</includeonly>
</includeonly>

Revision as of 09:34, 18 April 2020


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 
   |ItemIndex=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|Phonology.1.Table|holds template}}} Further discussion:{{{field|Phonology.1.Discussion|input type=textarea}}} {{{field|Phonology.1.Relevant|input type=checkbox|default=false}}} This feature seems to be relevant to the structure of this psalm.