<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://chabadpedia.com/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AShortDescription.js</id>
	<title>MediaWiki:ShortDescription.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://chabadpedia.com/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AShortDescription.js"/>
	<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=MediaWiki:ShortDescription.js&amp;action=history"/>
	<updated>2026-11-24T12:05:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://chabadpedia.com/index.php?title=MediaWiki:ShortDescription.js&amp;diff=110153&amp;oldid=prev</id>
		<title>Shraga: A little more space under the short description</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=MediaWiki:ShortDescription.js&amp;diff=110153&amp;oldid=prev"/>
		<updated>2026-11-21T23:07:18Z</updated>

		<summary type="html">&lt;p&gt;A little more space under the short description&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:07, 21 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		var css = document.createElement( &amp;#039;style&amp;#039; );&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		var css = document.createElement( &amp;#039;style&amp;#039; );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		css.textContent = &amp;#039;.cp-shortdesc{display:block;font-family:sans-serif;font-size:14px;line-height:1.4;&amp;#039; +&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		css.textContent = &amp;#039;.cp-shortdesc{display:block;font-family:sans-serif;font-size:14px;line-height:1.4;&amp;#039; +&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			&#039;font-weight:normal;color:#54595d;margin:4px 0 0;}&#039; +&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			&#039;font-weight:normal;color:#54595d;margin:4px 0 0&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;;padding-bottom:6px&lt;/ins&gt;;}&#039; +&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			&amp;#039;.cp-shortdesc-mobile{margin:-4px 0 8px;}&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			&amp;#039;.cp-shortdesc-mobile{margin:-4px 0 8px;}&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		document.head.appendChild( css );&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		document.head.appendChild( css );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key chabadpedia:diff:1.41:old-110126:rev-110153:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Shraga</name></author>
	</entry>
	<entry>
		<id>https://chabadpedia.com/index.php?title=MediaWiki:ShortDescription.js&amp;diff=110126&amp;oldid=prev</id>
		<title>Shraga: Show the short description under the article title</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=MediaWiki:ShortDescription.js&amp;diff=110126&amp;oldid=prev"/>
		<updated>2026-11-21T23:00:09Z</updated>

		<summary type="html">&lt;p&gt;Show the short description under the article title&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Short description under the article title (like Wikipedia&amp;#039;s mobile site).&lt;br /&gt;
 * Shows the text of {{Short description|...}} when the article has one. Loaded from Common.js and Mobile.js. */&lt;br /&gt;
( function () {&lt;br /&gt;
	if ( mw.config.get( &amp;#039;wgNamespaceNumber&amp;#039; ) !== 0 || mw.config.get( &amp;#039;wgAction&amp;#039; ) !== &amp;#039;view&amp;#039; ||&lt;br /&gt;
		mw.config.get( &amp;#039;wgIsMainPage&amp;#039; ) || !mw.config.get( &amp;#039;wgIsArticle&amp;#039; ) ) {&lt;br /&gt;
		return;&lt;br /&gt;
	}&lt;br /&gt;
	$.getJSON( mw.config.get( &amp;#039;wgScriptPath&amp;#039; ) + &amp;#039;/api.php&amp;#039;, {&lt;br /&gt;
		action: &amp;#039;query&amp;#039;, prop: &amp;#039;revisions&amp;#039;, rvprop: &amp;#039;content&amp;#039;, rvslots: &amp;#039;main&amp;#039;, rvsection: 0,&lt;br /&gt;
		pageids: mw.config.get( &amp;#039;wgArticleId&amp;#039; ), format: &amp;#039;json&amp;#039;, formatversion: 2&lt;br /&gt;
	} ).then( function ( d ) {&lt;br /&gt;
		var page = d.query &amp;amp;&amp;amp; d.query.pages &amp;amp;&amp;amp; d.query.pages[ 0 ];&lt;br /&gt;
		var text = page &amp;amp;&amp;amp; page.revisions &amp;amp;&amp;amp; page.revisions[ 0 ].slots.main.content;&lt;br /&gt;
		var m = text &amp;amp;&amp;amp; text.match( /\{\{\s*[Ss]hort description\s*\|\s*([^|}]+)/ );&lt;br /&gt;
		if ( !m ) {&lt;br /&gt;
			return;&lt;br /&gt;
		}&lt;br /&gt;
		var desc = m[ 1 ].trim();&lt;br /&gt;
		if ( !desc || desc.toLowerCase() === &amp;#039;none&amp;#039; ) {&lt;br /&gt;
			return;&lt;br /&gt;
		}&lt;br /&gt;
		var css = document.createElement( &amp;#039;style&amp;#039; );&lt;br /&gt;
		css.textContent = &amp;#039;.cp-shortdesc{display:block;font-family:sans-serif;font-size:14px;line-height:1.4;&amp;#039; +&lt;br /&gt;
			&amp;#039;font-weight:normal;color:#54595d;margin:4px 0 0;}&amp;#039; +&lt;br /&gt;
			&amp;#039;.cp-shortdesc-mobile{margin:-4px 0 8px;}&amp;#039;;&lt;br /&gt;
		document.head.appendChild( css );&lt;br /&gt;
		var el = document.createElement( &amp;#039;div&amp;#039; );&lt;br /&gt;
		el.className = &amp;#039;cp-shortdesc&amp;#039;;&lt;br /&gt;
		el.textContent = desc;&lt;br /&gt;
		var h = document.getElementById( &amp;#039;firstHeading&amp;#039; );&lt;br /&gt;
		if ( document.querySelector( &amp;#039;.vector-page-titlebar&amp;#039; ) &amp;amp;&amp;amp; h ) {&lt;br /&gt;
			h.appendChild( el );&lt;br /&gt;
			return;&lt;br /&gt;
		}&lt;br /&gt;
		var heading = document.querySelector( &amp;#039;.page-heading&amp;#039; ) || h;&lt;br /&gt;
		if ( heading ) {&lt;br /&gt;
			el.className += &amp;#039; cp-shortdesc-mobile&amp;#039;;&lt;br /&gt;
			heading.parentNode.insertBefore( el, heading.nextSibling );&lt;br /&gt;
		}&lt;br /&gt;
	} );&lt;br /&gt;
}() );&lt;/div&gt;</summary>
		<author><name>Shraga</name></author>
	</entry>
</feed>