MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary Tags: Manual revert Reverted |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
mw.loader.using('mediawiki.util').then(function () { | mw.loader.using('mediawiki.util').then(function () { | ||
if ( | |||
mw.config.get('wgNamespaceNumber') === 0 && | |||
mw.config.get('wgTitle') === 'Gaurav_Singh_Chouhan' | |||
) { | |||
var personSchema = { | |||
"@context": "https://schema.org", | |||
"@type": "Person", | |||
"name": "Gaurav Singh Chouhan", | |||
"image": "https://bharatwikipedia.org/wiki/Special:FilePath/Gaurav_Singh_Chouhan.jpg", | |||
"url": "https://bharatwikipedia.org/wiki/Gaurav_Singh_Chouhan", | |||
"sameAs": [ | |||
"https://www.instagram.com/mrgauravchouhan", | |||
} | "https://www.linkedin.com/in/mrgauravchouhan", | ||
"https://x.com/mrgauravchouhan" | |||
], | |||
"birthDate": "1999-07-21", | |||
"jobTitle": "Writer, Law Student, Motivational Speaker", | |||
"nationality": "Indian", | |||
"description": "Gaurav Singh Chouhan is an Indian writer, motivational speaker, and law student." | |||
}; | |||
var script = document.createElement('script'); | |||
script.type = 'application/ld+json'; | |||
script.text = JSON.stringify(personSchema); | |||
document.head.appendChild(script); | |||
} | } | ||
}); | }); | ||
mw.loader.using('mediawiki.util').then(function () { | mw.loader.using('mediawiki.util').then(function () { | ||
if ( | if ( | ||
mw.config.get('wgNamespaceNumber') === 0 && | mw.config.get('wgNamespaceNumber') === 0 && | ||
mw.config.get('wgTitle') === ' | mw.config.get('wgTitle') === 'ConnexAbility_Private_Limited' | ||
) { | ) { | ||
var orgSchema = { | var orgSchema = { | ||
"@context": "https://schema.org", | "@context": "https://schema.org", | ||
"@type": "Organization", | "@type": "Organization", | ||
"name": " | "name": "ConnexAbility Private Limited", | ||
"alternateName": " | "alternateName": "ConnexAbility", | ||
" | "url": "https://bharatwikipedia.org/wiki/ConnexAbility_Private_Limited", | ||
" | "logo": "https://bharatwikipedia.org/wiki/Special:FilePath/Connex.png", | ||
"foundingDate": "2025-09-08", | |||
"description": "ConnexAbility Private Limited is an Indian branding and digital services company.", | |||
" | |||
"address": { | "address": { | ||
"@type": "PostalAddress", | "@type": "PostalAddress", | ||
"addressCountry": "IN" | "addressCountry": "IN" | ||
}, | }, | ||
"sameAs": [ | "sameAs": [ | ||
"https:// | "https://connexability.in" | ||
] | ] | ||
}; | }; | ||
| Line 211: | Line 60: | ||
document.head.appendChild(script); | document.head.appendChild(script); | ||
} | } | ||
}); | |||
mw.loader.using('mediawiki.util').then(function () { | |||
if ( | |||
mw.config.get('wgNamespaceNumber') === 0 && | |||
mw.config.get('wgTitle') === 'Movie_Title_Here' | |||
) { | |||
var movieSchema = { | |||
"@context": "https://schema.org", | |||
"@type": "Movie", | |||
"name": "Movie Name", | |||
"url": "https://bharatwikipedia.org/wiki/Movie_Title_Here", | |||
"description": "Movie description here", | |||
"datePublished": "2024", | |||
"image": "POSTER_URL" | |||
}; | |||
var script = document.createElement('script'); | |||
script.type = 'application/ld+json'; | |||
script.text = JSON.stringify(movieSchema); | |||
document.head.appendChild(script); | |||
} | |||
}); | }); | ||
Revision as of 19:40, 17 December 2025
mw.loader.using('mediawiki.util').then(function () {
if (
mw.config.get('wgNamespaceNumber') === 0 &&
mw.config.get('wgTitle') === 'Gaurav_Singh_Chouhan'
) {
var personSchema = {
"@context": "https://schema.org",
"@type": "Person",
"name": "Gaurav Singh Chouhan",
"image": "https://bharatwikipedia.org/wiki/Special:FilePath/Gaurav_Singh_Chouhan.jpg",
"url": "https://bharatwikipedia.org/wiki/Gaurav_Singh_Chouhan",
"sameAs": [
"https://www.instagram.com/mrgauravchouhan",
"https://www.linkedin.com/in/mrgauravchouhan",
"https://x.com/mrgauravchouhan"
],
"birthDate": "1999-07-21",
"jobTitle": "Writer, Law Student, Motivational Speaker",
"nationality": "Indian",
"description": "Gaurav Singh Chouhan is an Indian writer, motivational speaker, and law student."
};
var script = document.createElement('script');
script.type = 'application/ld+json';
script.text = JSON.stringify(personSchema);
document.head.appendChild(script);
}
});
mw.loader.using('mediawiki.util').then(function () {
if (
mw.config.get('wgNamespaceNumber') === 0 &&
mw.config.get('wgTitle') === 'ConnexAbility_Private_Limited'
) {
var orgSchema = {
"@context": "https://schema.org",
"@type": "Organization",
"name": "ConnexAbility Private Limited",
"alternateName": "ConnexAbility",
"url": "https://bharatwikipedia.org/wiki/ConnexAbility_Private_Limited",
"logo": "https://bharatwikipedia.org/wiki/Special:FilePath/Connex.png",
"foundingDate": "2025-09-08",
"description": "ConnexAbility Private Limited is an Indian branding and digital services company.",
"address": {
"@type": "PostalAddress",
"addressCountry": "IN"
},
"sameAs": [
"https://connexability.in"
]
};
var script = document.createElement('script');
script.type = 'application/ld+json';
script.text = JSON.stringify(orgSchema);
document.head.appendChild(script);
}
});
mw.loader.using('mediawiki.util').then(function () {
if (
mw.config.get('wgNamespaceNumber') === 0 &&
mw.config.get('wgTitle') === 'Movie_Title_Here'
) {
var movieSchema = {
"@context": "https://schema.org",
"@type": "Movie",
"name": "Movie Name",
"url": "https://bharatwikipedia.org/wiki/Movie_Title_Here",
"description": "Movie description here",
"datePublished": "2024",
"image": "POSTER_URL"
};
var script = document.createElement('script');
script.type = 'application/ld+json';
script.text = JSON.stringify(movieSchema);
document.head.appendChild(script);
}
});