<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.lorekeeper.me/index.php?action=history&amp;feed=atom&amp;title=Extensions%3ANews_Widget</id>
	<title>Extensions:News Widget - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.lorekeeper.me/index.php?action=history&amp;feed=atom&amp;title=Extensions%3ANews_Widget"/>
	<link rel="alternate" type="text/html" href="http://wiki.lorekeeper.me/index.php?title=Extensions:News_Widget&amp;action=history"/>
	<updated>2026-06-16T10:52:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://wiki.lorekeeper.me/index.php?title=Extensions:News_Widget&amp;diff=2712&amp;oldid=prev</id>
		<title>Liwoyadan: v3 time</title>
		<link rel="alternate" type="text/html" href="http://wiki.lorekeeper.me/index.php?title=Extensions:News_Widget&amp;diff=2712&amp;oldid=prev"/>
		<updated>2025-06-08T14:36:54Z</updated>

		<summary type="html">&lt;p&gt;v3 time&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 14:36, 8 June 2025&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-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;{{Extensioninfobox|title=News Widget|desc=A widget that displays the most recent news.|auth=Min|status=Stable|github={{Github|user=liwoyadan|branch=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ext&lt;/del&gt;/news-widget}}|LKVer=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;2&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;1&lt;/del&gt;.0|migration=no|package=no}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;{{Extensioninfobox|title=News Widget|desc=A widget that displays the most recent news.|auth=Min|status=Stable|github={{Github|user=liwoyadan|branch=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;extension&lt;/ins&gt;/news-widget}}|LKVer=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;3&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;0&lt;/ins&gt;.0|migration=no|package=no}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;!-- Put a short summary of your extension here! --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;!-- Put a short summary of your extension here! --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;A small extension. Displays a widget on the logged-in dashboard that will show the most recently created/updated news and optionally a truncated text preview. By default the widget displays the two most recent news but can be configured for more.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;A small extension. Displays a widget on the logged-in dashboard that will show the most recently created/updated news and optionally a truncated text preview. By default the widget displays the two most recent news but can be configured for more.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Liwoyadan</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lorekeeper.me/index.php?title=Extensions:News_Widget&amp;diff=1989&amp;oldid=prev</id>
		<title>Liwoyadan: Formatting and adding images</title>
		<link rel="alternate" type="text/html" href="http://wiki.lorekeeper.me/index.php?title=Extensions:News_Widget&amp;diff=1989&amp;oldid=prev"/>
		<updated>2023-09-29T00:31:31Z</updated>

		<summary type="html">&lt;p&gt;Formatting and adding images&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 00:31, 29 September 2023&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-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;{{Extensioninfobox|title=News Widget|desc=A widget that displays the most recent news.|auth=Min|status=Stable|github={{Github|user=liwoyadan|branch=ext/news-widget}}|LKVer=2.1.0|migration=no|package=no}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;{{Extensioninfobox|title=News Widget|desc=A widget that displays the most recent news.|auth=Min|status=Stable|github={{Github|user=liwoyadan|branch=ext/news-widget}}|LKVer=2.1.0|migration=no|package=no}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;!-- Put a short summary of your extension here! --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;!-- Put a short summary of your extension here! --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;A small extension. Displays a widget on the logged-in dashboard that will show the most recently created/updated news and optionally a truncated text preview. By default the widget displays the two most recent news but can be configured for more. The widget is called with &amp;lt;code&amp;gt;@include(&amp;#039;widgets._news&amp;#039;, [&amp;#039;textPreview&amp;#039; =&amp;gt; true])&amp;lt;/code&amp;gt; and can be used elsewhere (i.e. in a sidebar) as long as the &amp;lt;code&amp;gt;$newses&amp;lt;/code&amp;gt; variable is declared on respective pages.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;A small extension. Displays a widget on the logged-in dashboard that will show the most recently created/updated news and optionally a truncated text preview. By default the widget displays the two most recent news but can be configured for more.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;The widget is called with &amp;lt;code&amp;gt;@include(&amp;#039;widgets._news&amp;#039;, [&amp;#039;textPreview&amp;#039; =&amp;gt; true])&amp;lt;/code&amp;gt; and can be used elsewhere (i.e. in a sidebar) as long as the &amp;lt;code&amp;gt;$newses&amp;lt;/code&amp;gt; variable is declared on respective pages.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;== Installation ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;== Installation ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. --&amp;gt;&lt;/div&gt;&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-l9&quot; &gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;!-- Is any configuration necessary? Describe it here! --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;!-- Is any configuration necessary? Describe it here! --&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;Setting the &amp;#039;textPreview&amp;#039; variable to true will show a 300 character long preview of the respective news along with a read more link at the end. Setting it to false will only display the title, posting, and editing date of the news.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;Setting the &amp;#039;textPreview&amp;#039; variable to true will show a 300 character long preview of the respective news along with a read more link at the end. Setting it to false will only display the title, posting, and editing date of the news.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;To configure how many news are displayed, in &amp;lt;code&amp;gt;app\Http\Controllers\HomeController.php&amp;lt;/code&amp;gt; in the first function in the file edit the &amp;#039;2&amp;#039; in &amp;lt;code&amp;gt;&amp;#039;newses&amp;#039; =&amp;gt; News::visible()-&amp;gt;orderBy(&amp;#039;updated_at&amp;#039;, &amp;#039;DESC&amp;#039;)-&amp;gt;take(2)-&amp;gt;get(),&amp;lt;/code&amp;gt; to however many news you&amp;#039;d like to be displayed.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;To configure how many news are displayed, in &amp;lt;code&amp;gt;app\Http\Controllers\HomeController.php&amp;lt;/code&amp;gt; in the first function in the file edit the &amp;#039;2&amp;#039; in &amp;lt;code&amp;gt;&amp;#039;newses&amp;#039; =&amp;gt; News::visible()-&amp;gt;orderBy(&amp;#039;updated_at&amp;#039;, &amp;#039;DESC&amp;#039;)-&amp;gt;take(2)-&amp;gt;get(),&amp;lt;/code&amp;gt; to however many news you&amp;#039;d like to be displayed.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;The widget itself can be edited and styled in &amp;lt;code&amp;gt;resources\views\widgets\_news.blade.php&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;The widget itself can be edited and styled in &amp;lt;code&amp;gt;resources\views\widgets\_news.blade.php&amp;lt;/code&amp;gt;.&lt;/div&gt;&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-l15&quot; &gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;== Images ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;== Images ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;gallery&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;gallery&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;File:TextPreview true.png|alt=A Lorekeeper dashboard with a widget titled &amp;#039;Recent News&amp;#039;, displaying two recent news along with their posting date and a text preview.|The news widget on the dashboard displaying the two most recent news along with a truncated text preview.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;File:TextPreview false.png|alt=A Lorekeeper dashboard with a widget titled &amp;#039;Recent News&amp;#039;, displaying two recent news along with their posting date.|The news widget only displaying the news title and posting date, with no text preview.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;/gallery&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;/gallery&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;== Troubleshooting ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;== Troubleshooting ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Liwoyadan</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.lorekeeper.me/index.php?title=Extensions:News_Widget&amp;diff=1986&amp;oldid=prev</id>
		<title>Liwoyadan: Creation of the news widget extension...!</title>
		<link rel="alternate" type="text/html" href="http://wiki.lorekeeper.me/index.php?title=Extensions:News_Widget&amp;diff=1986&amp;oldid=prev"/>
		<updated>2023-09-29T00:20:42Z</updated>

		<summary type="html">&lt;p&gt;Creation of the news widget extension...!&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Extensioninfobox|title=News Widget|desc=A widget that displays the most recent news.|auth=Min|status=Stable|github={{Github|user=liwoyadan|branch=ext/news-widget}}|LKVer=2.1.0|migration=no|package=no}}&lt;br /&gt;
&amp;lt;!-- Put a short summary of your extension here! --&amp;gt;&lt;br /&gt;
A small extension. Displays a widget on the logged-in dashboard that will show the most recently created/updated news and optionally a truncated text preview. By default the widget displays the two most recent news but can be configured for more. The widget is called with &amp;lt;code&amp;gt;@include(&amp;#039;widgets._news&amp;#039;, [&amp;#039;textPreview&amp;#039; =&amp;gt; true])&amp;lt;/code&amp;gt; and can be used elsewhere (i.e. in a sidebar) as long as the &amp;lt;code&amp;gt;$newses&amp;lt;/code&amp;gt; variable is declared on respective pages.&lt;br /&gt;
== Installation ==&lt;br /&gt;
&amp;lt;!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. --&amp;gt;&lt;br /&gt;
Pull the branch; resolve any conflicts if necessary and run &amp;lt;code&amp;gt;php artisan update-extension-tracker&amp;lt;/code&amp;gt;.&lt;br /&gt;
There are no migrations in this extension.&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&amp;lt;!-- Is any configuration necessary? Describe it here! --&amp;gt;&lt;br /&gt;
Setting the &amp;#039;textPreview&amp;#039; variable to true will show a 300 character long preview of the respective news along with a read more link at the end. Setting it to false will only display the title, posting, and editing date of the news.&lt;br /&gt;
To configure how many news are displayed, in &amp;lt;code&amp;gt;app\Http\Controllers\HomeController.php&amp;lt;/code&amp;gt; in the first function in the file edit the &amp;#039;2&amp;#039; in &amp;lt;code&amp;gt;&amp;#039;newses&amp;#039; =&amp;gt; News::visible()-&amp;gt;orderBy(&amp;#039;updated_at&amp;#039;, &amp;#039;DESC&amp;#039;)-&amp;gt;take(2)-&amp;gt;get(),&amp;lt;/code&amp;gt; to however many news you&amp;#039;d like to be displayed.&lt;br /&gt;
The widget itself can be edited and styled in &amp;lt;code&amp;gt;resources\views\widgets\_news.blade.php&amp;lt;/code&amp;gt;.&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;!-- Is there anything users should know about using your extension? --&amp;gt;&lt;br /&gt;
== Images ==&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&amp;lt;!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? --&amp;gt;&lt;br /&gt;
I can be found in the Lorekeeper server!&lt;br /&gt;
== See Also ==&lt;br /&gt;
&amp;lt;!-- Any relevant other pages. You may consider linking to related extensions, for instance. --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Liwoyadan</name></author>
		
	</entry>
</feed>