MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
console.log(" | // TEST: Check if Common.js can inject schema | ||
console.log("TEST: Common.js is running"); | |||
const testSchema = { | |||
"@context": "https://schema.org", | |||
"@type": "Organization", | |||
"name": "TEST SCHEMA – BharatWikipedia" | |||
}; | |||
const testScript = document.createElement('script'); | |||
testScript.type = 'application/ld+json'; | |||
testScript.text = JSON.stringify(testSchema); | |||
document.head.appendChild(testScript); | |||
Revision as of 19:13, 17 December 2025
// TEST: Check if Common.js can inject schema
console.log("TEST: Common.js is running");
const testSchema = {
"@context": "https://schema.org",
"@type": "Organization",
"name": "TEST SCHEMA – BharatWikipedia"
};
const testScript = document.createElement('script');
testScript.type = 'application/ld+json';
testScript.text = JSON.stringify(testSchema);
document.head.appendChild(testScript);