<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hlkitwiki.wolflair.com//index.php?action=history&amp;feed=atom&amp;title=Dynamically_Changing_Styles</id>
	<title>Dynamically Changing Styles - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hlkitwiki.wolflair.com//index.php?action=history&amp;feed=atom&amp;title=Dynamically_Changing_Styles"/>
	<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Dynamically_Changing_Styles&amp;action=history"/>
	<updated>2026-05-05T17:05:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Dynamically_Changing_Styles&amp;diff=632&amp;oldid=prev</id>
		<title>Rob at 08:37, 22 November 2008</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Dynamically_Changing_Styles&amp;diff=632&amp;oldid=prev"/>
		<updated>2008-11-22T08:37:54Z</updated>

		<summary type="html">&lt;p&gt;&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 08:37, 22 November 2008&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=&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:&lt;/del&gt;Basic Concepts and Terminology&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{context|&lt;/ins&gt;Basic Concepts and Terminology|Manipulation of Visual Elements&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=&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[Context: [[Home&lt;/del&gt;|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;HL Kit]] &amp;amp;#133; [[Basic Concepts and Terminology]] &amp;amp;#133; [[&lt;/del&gt;Manipulation of Visual Elements&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;br&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;br&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;Every portal is assigned a style, and that style dictates a variety of visual characteristics about the portal. They can include the font size, font style, text color, background color, border, bitmaps used, and an assortment of other attributes. In a nutshell, the style is what gives a portal its visual look and behavior. However, the style is &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; fixed - it can be changed.&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;Every portal is assigned a style, and that style dictates a variety of visual characteristics about the portal. They can include the font size, font style, text color, background color, border, bitmaps used, and an assortment of other attributes. In a nutshell, the style is what gives a portal its visual look and behavior. However, the style is &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; fixed - it can be changed.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rob</name></author>
	</entry>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=Dynamically_Changing_Styles&amp;diff=342&amp;oldid=prev</id>
		<title>Rob: New page: Category:Basic Concepts and Terminology [Context: HL Kit &amp;#133; Basic Concepts and Terminology &amp;#133; Manipulation of Visual Elements]  Every portal is assigned a styl...</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=Dynamically_Changing_Styles&amp;diff=342&amp;oldid=prev"/>
		<updated>2008-11-19T08:51:07Z</updated>

		<summary type="html">&lt;p&gt;New page: &lt;a href=&quot;/index.php?title=Category:Basic_Concepts_and_Terminology&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Basic Concepts and Terminology (page does not exist)&quot;&gt;Category:Basic Concepts and Terminology&lt;/a&gt; [Context: &lt;a href=&quot;/index.php?title=Home&quot; title=&quot;Home&quot;&gt;HL Kit&lt;/a&gt; � &lt;a href=&quot;/index.php?title=Basic_Concepts_and_Terminology&quot; title=&quot;Basic Concepts and Terminology&quot;&gt;Basic Concepts and Terminology&lt;/a&gt; � &lt;a href=&quot;/index.php?title=Manipulation_of_Visual_Elements&quot; title=&quot;Manipulation of Visual Elements&quot;&gt;Manipulation of Visual Elements&lt;/a&gt;]  Every portal is assigned a styl...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Basic Concepts and Terminology]]&lt;br /&gt;
[Context: [[Home|HL Kit]] &amp;amp;#133; [[Basic Concepts and Terminology]] &amp;amp;#133; [[Manipulation of Visual Elements]]]&lt;br /&gt;
&lt;br /&gt;
Every portal is assigned a style, and that style dictates a variety of visual characteristics about the portal. They can include the font size, font style, text color, background color, border, bitmaps used, and an assortment of other attributes. In a nutshell, the style is what gives a portal its visual look and behavior. However, the style is &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; fixed - it can be changed.&lt;br /&gt;
&lt;br /&gt;
There will be many situations where you&amp;#039;ll want to highlight a particular condition to the user. If you think of the style as fixed, then you&amp;#039;re likely to conclude that the best way to switch from a normal looking label to one that is in red text and a large bold font is to have two different portals. You can then hide whichever portal is not applicable based on the prevailing condition state. While this approach will definitely work, it entails extra effort.&lt;br /&gt;
&lt;br /&gt;
The better approach is to simply change the style used on the portal. Since you&amp;#039;ll need to define the alternate style to support a second portal, there is no extra work involved there. Then, within the Position script for the containing template, simply check the condition and, if appropriate, use the &amp;quot;setstyle&amp;quot; target reference on the portal.&lt;br /&gt;
&lt;br /&gt;
The only caveat that you&amp;#039;ll need to worry about with this approach is that you have to be aware of changing the font size and/or font style. If you change either of those characteristics with the new style, the default sizing of the portal will become invalid. Fortunately, all you need to do is then use the &amp;quot;autosize&amp;quot; target reference on the portal to trigger the appropriate resizing. Just make sure that you do this &amp;#039;&amp;#039;&amp;#039;before&amp;#039;&amp;#039;&amp;#039; you position the portal within the template.&lt;/div&gt;</summary>
		<author><name>Rob</name></author>
	</entry>
</feed>