Template: Form/Poetic Feature: Difference between revisions

From Psalms: Layer by Layer
Jump to: navigation, search
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 14: Line 14:
</pre>
</pre>


</noinclude><includeonly>{{#ifeq: {{{#userparam|Discussion}}}|Discussion|
</noinclude><includeonly>{{#ifeq: {{{#userparam|Discussion}}}|Discussion|<!--
<!--
 
         First pass, with table / discussion / relevance checkbox
         First pass, with table / discussion / relevance checkbox
        * Heading
        * Description
        * Additional info
        * Table (optional)
        * Discussion
        * Relevance checkbox (optional)


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


     'Relevance' checkbox
     'Relevance' checkbox
Line 43: Line 47:
   |noyes
   |noyes
   |falsetrue=
   |falsetrue=
<nowiki>{{{field|</nowiki>{{{Section|}}}.{{{Index|1}}}<nowiki>.Relevant|input type=checkbox|default=false}}}</nowiki> This feature seems to be relevant to the structure of this psalm.
<nowiki>{{{field|Relevant.</nowiki>{{{Index|1}}}<nowiki>|input type=checkbox|default=false}}}</nowiki> This feature seems to be relevant to the structure of this psalm.
}}
}}<br/>
<br/>
|<!--
|
 
{{#ifeq: {{{Include table|}}} |yes|
 
 
        Second pass, with table template
 
 
 
-->{{#switch: {{{Include table|}}}  
    |yes
    |true=
<!--
<!--
     Table for multi-instance items (which must, code-wise, be placed AFTER the above template, but which will appear WITHIN the template  
     Table for multi-instance items (which must, code-wise, be placed AFTER the above template, but which will appear WITHIN the template  
-->
 
<nowiki>{{{for template
--><nowiki>{{{for template
             |Feature Table.</nowiki>{{{Section|}}}.{{{Index|1}}}<nowiki>
             |Feature Table.</nowiki>{{{Index|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>Table.{{{Index|1}}}<nowiki>]
             |embed in field=</nowiki>{{{Section|}}}<nowiki>[Table.</nowiki>{{{Index|1}}}<nowiki>]
}}}
}}}
{{{field|Definition|input type=textarea|label=Definition (feature being studied)}}}
{{{field|Definition|input type=textarea|label=Definition (feature being studied)}}}
{{{field|Occurrences|input type=textarea|label=Occurrences}}}
{{{field|Occurrences|input type=textarea|label=Occurrences}}}

Latest revision as of 07:09, 23 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 
   |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 -->
}}
}}