Jump to content

MediaWiki:Common.js: Difference between revisions

From A Modern Way To Be Known
No edit summary
Blanked the page
Tags: Blanking Manual revert
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
// 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);

Latest revision as of 19:43, 17 December 2025