|
|
Line 1: |
Line 1: |
− | <R output="display">
| |
− | pdf(rpdf)
| |
− | plot(1:10, 1:10)
| |
− | </R>
| |
− |
| |
− | == ExternalData ==
| |
− |
| |
| {{#get_db_data: | | {{#get_db_data: |
| db=data | | db=data |
| |from=eQuran | | |from=eQuran |
− | |where=WikiPageName="Surat AlFatiha Ayah 4" | + | |where=WikiPageName='Surat AlAhzab Ayah 60' |
− | |data=wikiAyahInfoBox=wikiAyahInfoBox
| + | |data=QIndexofSubjects=QIndexofSubjects |
− | }}
| |
− | | |
− | {{#external_value:wikiAyahInfoBox}}
| |
− | | |
− | == R ==
| |
− | <R>1:11</R>
| |
− | | |
− | <R output="wiki">
| |
− | myFun <- function(x) {sprintf(x)}
| |
− | myFun({{#external_value:wikiAyahInfoBox}})
| |
− | </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>
| |
− | | |
− | | |
− | | |
− | #y <- {{#external_value:wikiAyahInfoBox}}
| |
− | | |
− | sprintf(y)
| |
− | | |
− | | |
− | | |
− | | |
− | == 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)
| |
− | | |
− | sprintf(y)
| |
− | 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
| |
− | }}
| |
− | | |
− | {{#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
| |
| }} | | }} |
| + | {{#arraydefine:d|{{#external_value:QIndexofSubjects}}|{{!}}}} |
| + | {{#arraysearcharray:x |d |/hypocrite/ }} |
| + | {{#arrayprint:x |<br/> }} |