Difference between revisions of "Template:Quran Ayah InfoBox Transclude"
From HodHood
P.Astakhov (talk | contribs) |
P.Astakhov (talk | contribs) |
||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly><phptag> |
//global $transclude; | //global $transclude; | ||
Line 8: | Line 8: | ||
if ( isset( $argv[1] ) ) { | if ( isset( $argv[1] ) ) { | ||
− | + | $transclude = isset( $argv[1] ) ? '{{Quran Ayah InfoBox |' . $argv[1] . '}}' : false; | |
− | echo transclude( false, [], '{{Quran Ayah InfoBox |' . $argv[1] . '}}' ); | + | //echo transclude( false, [], '{{Quran Ayah InfoBox |' . $argv[1] . '}}' ); |
+ | } | ||
+ | </phptag>{{#clear_external_data:}}<phptag> | ||
+ | if ( $transclude ) { | ||
+ | echo transclude( false, [], $transclude ); | ||
} | } | ||
</phptag></includeonly> | </phptag></includeonly> |