Difference between revisions of "User:P.Astakhov"

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

Latest revision as of 15:57, 2 April 2018

test

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