Difference between revisions of "Template:Quran Ayah Sentiment Analysis"

From HodHood
Jump to: navigation, search
Line 7: Line 7:
 
<th style="width: 1em;">Negative Words</th>
 
<th style="width: 1em;">Negative Words</th>
 
<th style="width: 1em;">Sentence</th>
 
<th style="width: 1em;">Sentence</th>
</tr>{{#display_external_table: template = Quran Ayah Sentiment Analysis/Row
+
</tr>{{#for_external_table:<tr>
|data = PositiveWords = PositiveWords, NegativeWords = NegativeWords, Sentence = Sentence
+
<td style="text-align: left;">{{#ifexpr:{{{PositiveWords}}}|ok|-}}</td>
}}</table>{{#clear_external_data:}}</includeonly>
+
<td style="text-align: left;">{{#if:{{{NegativeWords|}}}|{{#arraymap:{{{NegativeWords}}}|,|@|[[@]]}}|-}}</td>
 +
<td style="text-align: left;">{{{Sentence}}}</td>
 +
</tr>}}</table>{{#clear_external_data:}}</includeonly>

Revision as of 23:13, 6 March 2017