|
|
Line 3: |
Line 3: |
| |from=eQuran | | |from=eQuran |
| |where=WikiPageName="Surat AlImran Ayah 167" | | |where=WikiPageName="Surat AlImran Ayah 167" |
− | |data=QIndexofSubjects=QIndexofSubjects
| |
− | }}
| |
− |
| |
− | {{#external_value:QIndexofSubjects}}
| |
− |
| |
− | {{#store_external_table:Has Index of Subjects in
| |
− | |Has name={{{name}}}
| |
− | |Has color={{{color}}}
| |
− | |Has shape={{{shape}}}
| |
− | }}
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− | __TOC__
| |
− |
| |
− | == has index of subjects ==
| |
− |
| |
− | Category:Surat_AlFurqan
| |
− |
| |
− | {{#ask:
| |
− | [[Category:Surat AlFurqan]]
| |
− | [[Has Ayah Index of Subjects::+]]
| |
− | |?Has Ayah Index of Subjects=
| |
− | |mainlabel=-
| |
− | |headers=hide
| |
− | |limit=1000
| |
− | }}
| |
− |
| |
− | == map ==
| |
− |
| |
− | {{#ask:
| |
− | [[Has Coordinates::+]]
| |
− | |?Has Coordinates
| |
− | |format=map
| |
− | }}
| |
− |
| |
− | == link to static SMW Query ==
| |
− |
| |
− | === using query ===
| |
− | {{#ask:
| |
− | [[Has Sentiment::+]]
| |
− | |?Category = Surat and Ayah
| |
− | |?Has Sentiment = Sentiment
| |
− | |default=nothing found
| |
− | |searchlabel=Click to browse the list
| |
− | |limit=0
| |
− | |intro=The following Ayat in Surat Abasa Ayah 4 has Sentiment fields
| |
− | |format=broadtable
| |
− | }}
| |
− |
| |
− | === the same with PhpTags ===
| |
− |
| |
− | <phptag>
| |
− | $string = '{{#ask: [[Has Sentiment::+]]
| |
− | |?Category = Surat and Ayah
| |
− | |?Has Sentiment = Sentiment
| |
− | |default=nothing found
| |
− | |searchlabel=Click to browse the list
| |
− | |limit=0
| |
− | |intro=The following Ayat in Surat Abasa Ayah 4 has Sentiment fields
| |
− | |format=broadtable}}';
| |
− | </phptag>
| |
− |
| |
− | {{#phptag: echo transclude( false, [], $string ); }}
| |
− |
| |
− | == R ==
| |
− | <R>1:11</R>
| |
− |
| |
− | <R output="wiki">
| |
− | x<-matrix(1:12,ncol=3)
| |
− | rownames(x) <- sprintf("row %i", 1:4)
| |
− | colnames(x) <- sprintf("col %i", 1:3)
| |
− | out.Wiki(x, title="x")
| |
− | </R>
| |
− |
| |
− | == ExternalData ==
| |
− |
| |
− | {{#get_db_data:
| |
− | db=data
| |
− | |from=eQuran
| |
− | |where=WikiPageName="Surat AlFatiha Ayah 4"
| |
− | |data=wikiAyahInfoBox=wikiAyahInfoBox
| |
− | }}
| |
− |
| |
− | {{#external_value:wikiAyahInfoBox}}
| |
− |
| |
− | {{#get_db_data:
| |
− | db=data
| |
− | |from=eQuran
| |
− | |where=WikiPageName="Surat AlFatiha Ayah 1"
| |
| |data=wikiAyahInfoBox=wikiAyahInfoBox | | |data=wikiAyahInfoBox=wikiAyahInfoBox |
− | }}
| |
− |
| |
− | {{#external_value:wikiAyahInfoBox}}
| |
− |
| |
− | {{Transclude|{{#external_value:wikiAyahInfoBox}} }}
| |
− | {{#clear_external_data:}}
| |
− | <phptag>
| |
− | global $transclude;
| |
− | if ( $transclude ) {
| |
− | echo $transclude;
| |
− | }
| |
− | </phptag>
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− | <nowiki>{{Quran Ayah InfoBox | {{#external_value:wikiAyahInfoBox}} }}</nowiki>
| |
− | [[:ar:مستخدم:Admin|This is a link to my Arabic user page]]
| |
− |
| |
− | {{#get_db_data:
| |
− | db=data
| |
− | |from=ayah_sentiment_analysis
| |
− | |data=Ayah=ayah,positiveWords=positive_words,negativeWords=negative_words,Sentence=sentence
| |
− | }}
| |
− |
| |
− | <table class="wikitable"><tr>
| |
− | <th>Ayah</th>
| |
− | <th>Positive words</th>
| |
− | <th>Negative words</th>
| |
− | <th>Sentence</th>
| |
− | </tr>{{#for_external_table:<tr>
| |
− | <td>{{{Ayah}}}</td>
| |
− | <td>{{{positiveWords}}}</td>
| |
− | <td>{{{negativeWords}}}</td>
| |
− | <td>{{{Sentence}}}</td>
| |
− | </tr>}}</table>
| |
− | {{#clear_external_data:}}
| |
− |
| |
− |
| |
− |
| |
− | {{#ask:
| |
− | [[Concept:Test]]
| |
− | [[Has Sentiment::Positive]]
| |
− | [[Has Family::Wife]]
| |
− | |?Category=Book and Chapter
| |
− | |?Has Sentiment = Sentiment
| |
− | |?Has Family = Family
| |
− | |format=table
| |
− | |headers=plain
| |
− | |mainlabel=Event
| |
| }} | | }} |
| | | |
| | | |
− | html
| |
| | | |
− | [[HtmlTest]]
| + | {{#arraydefine:d|{{#external_value:wikiAyahInfoBox}}|,}} |
| + | {{#arraysearcharray:x |d |/hypocrit/ }} |
| + | {{#arrayprint:x |<br/> }} |