Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Wiki.tetrain.com Upgrade Plan
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== 8. Post-handover: YouTube video embed restoration (2026-07-25) == Discovered as part of the separate <code><nowiki>Wiki Pages Cleaning</nowiki></code> project's content audit: dropping <code><nowiki>HTML5video</nowiki></code> during the migration (Section 6) broke every pre-existing YouTube embed on the wiki β 149 embeds across 44 pages, all internal KT/training recordings and client-architecture walkthroughs. <code><nowiki>TimedMediaHandler</nowiki></code> doesn't cover this use case (it's for self-hosted uploaded video files, not embedding external YouTube links), so this wasn't actually fixed by the original migration decision. * '''Platform fix''': installed the third-party <code><nowiki>EmbedVideo</nowiki></code> extension (<code><nowiki>StarCitizenTools/mediawiki-extensions-EmbedVideo</nowiki></code> β not Wikimedia/Gerrit-hosted, no <code><nowiki>REL1_43</nowiki></code> branch, cloned default branch, confirmed <code><nowiki>extension.json</nowiki></code> supports MediaWiki β₯1.29.0). Patched a MediaWiki-1.43-incompatibility in <code><nowiki>EmbedVideo.hooks.php</nowiki></code> (core <code><nowiki>ParserOutput::addModules()</nowiki></code>/<code><nowiki>addModuleStyles()</nowiki></code> now require strict <code><nowiki>array</nowiki></code> typing; EmbedVideo was passing bare strings) β two one-line fixes, verified via a scratch test page with <code><nowiki>$wgShowExceptionDetails</nowiki></code> temporarily enabled, reverted after. Loaded via <code><nowiki>wfLoadExtension('EmbedVideo')</nowiki></code> in <code><nowiki>LocalSettings.php</nowiki></code>. New embed syntax: <code><nowiki>{{#ev:youtube|VIDEO_ID|640}}</nowiki></code>, replacing the dead <code><nowiki><HTML5video></nowiki></code> tag. * '''Content fix''': for every one of the 149 embeds, retrieved the video's actual YouTube transcript (via browser automation β auto-captions, not audio playback) and wrote an accurate summary paragraph published directly under each embed on its wiki page. Quality varies with source audio: most got full detailed summaries; ~25 are explicitly flagged <code><nowiki>[VERY POOR TRANSCRIPT QUALITY]</nowiki></code> or <code><nowiki>[PARTIAL TRANSCRIPT]</nowiki></code> where ASR/audio quality only allowed a partial or topic-level summary β flagged rather than guessed. 5 videos are outright inaccessible and flagged as such: 1 private, 4 removed by YouTube (3 for harassment/bullying policy, 1 general ToS violation β all 4 removals landed on the same <code><nowiki>Training_2022_Linux_team</nowiki></code> page, worth raising with whoever owns that YouTube account since repeated strikes risk the account itself). 2 duplicate-content pairs identified and cross-referenced instead of re-summarized. All findings are written directly into the paragraphs published on the wiki, so they're visible to anyone reading the page, not just in this doc. * '''Publish mechanism''': pulled current wikitext per page via <code><nowiki>php maintenance/run.php getText.php "<title>"</nowiki></code>, replaced each <code><nowiki><HTML5video>...</HTML5video></nowiki></code> tag with the <code><nowiki>{{#ev:...}}</nowiki></code> embed plus a <code><nowiki>'''Video summary:'''</nowiki></code> paragraph, applied via <code><nowiki>php maintenance/run.php edit.php -u Admin -b --nocreate "<title>"</nowiki></code> (stdin). Note: most of these 44 "pages" are actually <code><nowiki>Category:</nowiki></code>-namespace pages being used to hold real content (a pre-existing wiki quirk, not introduced by this work) β titles needed the correct namespace prefix (<code><nowiki>Category:</nowiki></code>, or <code><nowiki>Help:</nowiki></code> for one outlier, <code><nowiki>Editing</nowiki></code>) to resolve correctly; a plain-namespace title lookup silently reports "page does not exist" otherwise. * '''Verified''': DB sweep confirms zero leftover <code><nowiki><HTML5video></nowiki></code> tags across all 44 pages; spot-checked in-browser that embeds render as real <code><nowiki><iframe></nowiki></code> elements (not just wikitext), including the largest page (50 videos, first/last IDs both confirmed rendering correctly).
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)