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

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

Latest revision as of 10:02, 16 February 2018