Difference between revisions of "Template:Quran Ayah InfoBox Transclude"

From HodHood
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><phptag>
{{#phptag:
+
global $transclude;
 
if ( isset( $argv[1] ) ) {
 
if ( isset( $argv[1] ) ) {
   $t = '{' . '{' . Quran Ayah InfoBox |' . $argv[1] . '}' . '}';
+
   $transclude = $argv[1];
   var_dump( $t );
+
} else {
  echo transclude( 'Quran Ayah InfoBox', [], $t );  
+
   $transclude = false;
 
}
 
}
}}
+
</phptag></includeonly>
</includeonly>
 

Latest revision as of 10:02, 16 February 2018