Difference between revisions of "User:P.Astakhov"

From HodHood
Jump to: navigation, search
Line 1: Line 1:
__TOC__
+
== Original ==
<phptag>
 
global $count;
 
$count=[];
 
</phptag>
 
  
 
{{#ask:
 
{{#ask:
[[Category:Surat_AlFurqan]]
+
[[Category:Quran English Translation]]
[[Has Ayah Index of Subjects::+]]
+
[[Has Ayah Index of Subjects::eaven earth]]
|?Has Ayah Index of Subjects
+
|mainlabel=Sura Page
|?Has Ayah Main Topic
+
|?Category=Surat and Ayah
|headers=hide
+
|?Has Polarity=Polarity
|link=none
+
|?Has Sura Classification = Sura Classification
|limit=2
+
|?Has Surah Chronology Sequence = Sura Sequence
|format=template
+
|?Has Ayah Index of Subjects = Related Subjects
|template=unique values
+
|?Has Ayah Text=Ayah Text
 +
|default=nothing found
 +
|sort= Has Polarity
 +
|order=ascending
 +
|searchlabel=Click to browse the list
 +
|limit=10
 +
|intro=The following Ayat cited eaven earth.
 +
|format=broadtable
 +
|sep=,&ensp;
 
}}
 
}}
  
<phptag>
+
== Fixed ==
ksort( $count );
 
arsort( $count, SORT_NUMERIC );
 
  
echo "\n{|class=\"wikitable sortable\"\n!Index of Subjects\n!Frequency Count\n!Category\n";
+
{{#ask:
foreach( $count as $key => $value ) {
+
[[Subcategory of::Quran English Translation]]
  $category = $value['category'];
+
[[Has Sura Index of Subjects::Heaven earth]]
  if ( $category ) { // make clickable category links
+
|mainlabel=Sura Page
    $tmp = explode( ', ', $category );
+
|?Subcategory of=Surat and Ayah
    $category = [];
+
|?Has Sura Polarity=Polarity
    foreach( $tmp as $cat ) {
+
|?Has Sura Classification = Sura Classification
      $t = explode( ':', $cat, 2 );
+
|?Has Sura Chronology Sequence = Sura Sequence
      $category[] = "[[:{$t[0]}:{$t[1]}|{$t[1]}]]";
+
|?Has Sura Index of Subjects = Related Subjects
    }
+
|?Is Sura Text=Ayah Text
    $category = implode( ', ', $category );
+
|default=nothing found
  }
+
|sort=Has Sura Polarity
  echo "|-\n|[[$key]]\n|{$value['count']}\n|$category\n";
+
|order=ascending
}
+
|searchlabel=Click to browse the list
echo '|}';
+
|limit=10
 
+
|intro=The following Ayat cited Heaven earth.
//var_dump( $count );
+
|format=broadtable
//var_dump( $count['Plead destruct'] );
+
|sep=,&ensp;
//var_dump( count( $count ) );
+
}}
</phptag>
 

Revision as of 09:22, 30 March 2018

Original

nothing found

Fixed

The following Ayat cited Heaven earth.
Sura PageSurat and Ayah
This property is a special property in this wiki.
PolaritySura ClassificationSura SequenceRelated SubjectsAyah Text
Surat AlNabaQuran English Translation, Sura Makkan Classification-0.003Sura Makkan Classification76True
Surat SaadQuran English Translation, Sura Makkan Classification-0.01Sura Makkan Classification38True
Surat YunusQuran English Translation, Sura Makkan Classification-0.012Sura Makkan Classification49True
Surat AlMaidahQuran English Translation, Sura Madinah Classification-0.016Sura Madinah Classification112True
Surat AlTaubahQuran English Translation, Sura Madinah Classification-0.018Sura Madinah Classification113True
Surat GhafirQuran English Translation, Sura Makkan Classification-0.019Sura Makkan Classification57True
Surat AlFurqanQuran English Translation, Sura Makkan Classification-0.031Sura Makkan Classification38True
Surat AlJathiyaQuran English Translation, Sura Makkan Classification-0.034Sura Makkan Classification62True
Surat AlAnamQuran English Translation, Sura Makkan Classification-0.037Sura Makkan Classification67True
Surat QaafQuran English Translation, Sura Makkan Classification-0.044Sura Makkan Classification32True
Click to browse the list