Topic on Extension talk:JsonConfig

json-ld in mediawiki pages

2
Cojoilustrado (talkcontribs)

Hi. I'm trying to add json-ld schema to my wiki's templates for microdata, but mediawiki renders the code as text and shows up in the page. Any way this extension can handle that?


For example, this

<script type="application/ld+json">

{

  "@context": "https://schema.org",

  "@type": "MusicAlbum",

  "byArtist": {

    "@type": "MusicGroup",

    "name": "Radiohead"

  },

  "genre": "Alt/Punk",

  "image": "king-of-limbs.jpg",

  "name": "King of Limbs",

  "numTracks": "8"

    }

</script>

Thiemo Kreuz (WMDE) (talkcontribs)

I'm sorry, but the question appears to be entirely unrelated to this extension. Script tags are not allowed for obvious security reasons.

Reply to "json-ld in mediawiki pages"