Template: Form/Poetic Feature: Difference between revisions
From Psalms: Layer by Layer
Psalms wiki (talk | contribs) No edit summary |
Psalms wiki (talk | contribs) No edit summary |
||
(38 intermediate revisions by the same user not shown) | |||
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 | ||
| | |Index=1 | ||
|Include table=yes | |Include table=yes | ||
|Description=How are vowels distributed throughout the poem? | |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? }} | |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? }} | ||
</pre> | </pre> | ||
</noinclude><includeonly>{{#ifeq: {{{#userparam|Discussion}}}|Discussion|<!-- | |||
First pass, with table / discussion / relevance checkbox | |||
* Heading | |||
* Description | |||
* Additional info | |||
* Table (optional) | |||
* Discussion | |||
* Relevance checkbox (optional) | |||
--><nowiki/> | |||
== {{{Index|1}}}. {{{Heading|}}} == | |||
<nowiki/> | |||
{{{Description|}}} | |||
{{#if: {{{Additional info|}}} | |||
|''{{{Additional info|}}}'' | |||
}}{{#switch: {{{Include table|}}} | |||
|true | |||
|yes=<nowiki/> | |||
<!-- | |||
Placeholder for table + label for Discussion | |||
--> | |||
<nowiki>{{{field|Table.</nowiki>{{{Index|1}}}<nowiki>|holds template}}}</nowiki> | |||
Further discussion: | |||
}}<nowiki>{{{field|Discussion.</nowiki>{{{Index|1}}}<nowiki>|input type=textarea}}}</nowiki><!-- | |||
'Relevance' checkbox | |||
-->{{#switch: {{{Include table|}}}{{{Include checkbox|}}} | |||
|yes | |||
|true | |||
|noyes | |||
|falsetrue= | |||
<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/> | |||
|<!-- | |||
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 | |||
--><nowiki>{{{for template | |||
|Feature Table.</nowiki>{{{Index|1}}}<nowiki> | |||
|multiple | |||
|display=spreadsheet | |||
|height=300px | |||
|minimum instances=1 | |||
|embed in field=</nowiki>{{{Section|}}}<nowiki>[Table.</nowiki>{{{Index|1}}}<nowiki>] | |||
}}} | |||
{{{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}}} | |||
</nowiki> | |||
<nowiki>{{{end template}}}</nowiki> <!-- end table --> | |||
}} | |||
}} | |||
</includeonly> | |||
<noinclude> | |||
{{Form/Poetic Feature | {{Form/Poetic Feature | ||
|Section=Phonology | |Section=Phonology | ||
| | |Index=1 | ||
|Include table=yes | |Include table=yes | ||
|Description=How are vowels distributed throughout the poem? | |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? }} | |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? }} | ||
</ | = Former Code = | ||
{{{ItemIndex|1}}}. {{{Description|}}} | <pre> | ||
{{#ifeq: {{{Run|Discussion}}}|Discussion| | |||
{{#if: {{{Heading|}}}|<nowiki/> | |||
<nowiki>== </nowiki>{{{ItemIndex|1}}}. {{{Heading|}}} <nowiki>==</nowiki> <br/> | |||
}} | |||
{{{Description|}}} | |||
{{#if: {{{Additional info|}}} | {{#if: {{{Additional info|}}} | ||
|''{{{Additional info|}}}'' | |''{{{Additional info|}}}'' | ||
Line 28: | Line 104: | ||
{{#ifeq: {{{Include table|}}} |yes| | {{#ifeq: {{{Include table|}}} |yes| | ||
<!-- | <!-- | ||
Discussion | Placeholder for table + label for Discussion | ||
--> | --> | ||
<nowiki>{{{field|</nowiki>{{{Section|}}}.{{{ItemIndex|1}}}<nowiki>.Table|holds template}}}</nowiki> | <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><!-- | ||
<!-- | |||
'Relevance' checkbox | 'Relevance' checkbox | ||
--> | |||
{{#switch: {{{Include table|}}}{{{Include checkbox|}}} | -->{{#switch: {{{Include table|}}}{{{Include checkbox|}}} | ||
|yes | |yes | ||
|noyes= | |noyes= | ||
<nowiki>{{{field|</nowiki>{{{Section|}}}.{{{ItemIndex|1}}}<nowiki>.Relevant|input type=checkbox|default=false}}}</nowiki> This feature seems to be relevant to the structure of this psalm. | <nowiki>{{{field|</nowiki>{{{Section|}}}.{{{ItemIndex|1}}}<nowiki>.Relevant|input type=checkbox|default=false}}}</nowiki> This feature seems to be relevant to the structure of this psalm. | ||
}} | }} | ||
<br/> | |||
| | |||
{{#ifeq: {{{Include table|}}} |yes| | {{#ifeq: {{{Include table|}}} |yes| | ||
<!-- | <!-- | ||
Line 56: | Line 132: | ||
}}} | }}} | ||
{{{field|Definition|input type=textarea|label=Definition | {{{field|Definition|input type=textarea|label=Definition (feature being studied)}}} | ||
{{{field|Occurrences|input type=textarea|label=Occurrences}}} | {{{field|Occurrences|input type=textarea|label=Occurrences}}} | ||
{{{field|Clustering|input type=textarea|label=Clustering | {{{field|Clustering|input type=textarea|label=Clustering (or sections of absence) of this feature}}} | ||
{{{field|Intersection|input type=textarea|label=Intersection | {{{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|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}}} | {{{field|Structure|input type=textarea|label=Explain (if applicable) how this feature contributes to the structuring of the text}}} | ||
Line 65: | Line 141: | ||
<nowiki>{{{end template}}}</nowiki> <!-- end table --> | <nowiki>{{{end template}}}</nowiki> <!-- end table --> | ||
}} | }} | ||
</ | }} | ||
</pre> | |||
</noinclude> |
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 --> }} }}