<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://straftat.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AIconText</id>
	<title>Template:IconText - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://straftat.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AIconText"/>
	<link rel="alternate" type="text/html" href="https://straftat.wiki/index.php?title=Template:IconText&amp;action=history"/>
	<updated>2026-06-13T00:09:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://straftat.wiki/index.php?title=Template:IconText&amp;diff=580&amp;oldid=prev</id>
		<title>Administrator: Created page with &quot;&lt;includeonly&gt;{{trim| {{#lvardef: icon | {{{1}}} }} {{#lvardef: link | {{{link|}}} }} {{#lvardef: text | {{{2}}} }} {{#lvardef: min-w | {{#if: {{{w|}}} | {{{w}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }} {{#lvardef: max-w | {{{w|}}} }} {{#lvardef: max-h | {{#if: {{{h|}}} | {{{h}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }} }}{{#if: {{{block|}}} | &lt;span class=&quot;straftat-wiki-icontext-block&quot; style=&quot;display: inline-flex; align-items: center; {{#if: {{{gap|}}} | gap...&quot;</title>
		<link rel="alternate" type="text/html" href="https://straftat.wiki/index.php?title=Template:IconText&amp;diff=580&amp;oldid=prev"/>
		<updated>2024-12-10T00:46:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;includeonly&amp;gt;{{trim| {{#lvardef: icon | {{{1}}} }} {{#lvardef: link | {{{link|}}} }} {{#lvardef: text | {{{2}}} }} {{#lvardef: min-w | {{#if: {{{w|}}} | {{{w}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }} {{#lvardef: max-w | {{{w|}}} }} {{#lvardef: max-h | {{#if: {{{h|}}} | {{{h}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }} }}{{#if: {{{block|}}} | &amp;lt;span class=&amp;quot;straftat-wiki-icontext-block&amp;quot; style=&amp;quot;display: inline-flex; align-items: center; {{#if: {{{gap|}}} | gap...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;{{trim|&lt;br /&gt;
{{#lvardef: icon | {{{1}}} }}&lt;br /&gt;
{{#lvardef: link | {{{link|}}} }}&lt;br /&gt;
{{#lvardef: text | {{{2}}} }}&lt;br /&gt;
{{#lvardef: min-w | {{#if: {{{w|}}} | {{{w}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }}&lt;br /&gt;
{{#lvardef: max-w | {{{w|}}} }}&lt;br /&gt;
{{#lvardef: max-h | {{#if: {{{h|}}} | {{{h}}} | {{#if: {{{size|}}} | {{{size}}} | 40 }} }} }}&lt;br /&gt;
}}{{#if: {{{block|}}}&lt;br /&gt;
| &amp;lt;span class=&amp;quot;straftat-wiki-icontext-block&amp;quot; style=&amp;quot;display: inline-flex; align-items: center; {{#if: {{{gap|}}} | gap: {{{gap}}}px; }}&amp;quot;&amp;gt;&lt;br /&gt;
| {{#if:{{{nowrap|}}}|&amp;lt;span style=&amp;quot;white-space: nowrap&amp;quot;&amp;gt;}}&lt;br /&gt;
}}&amp;lt;span class=&amp;quot;straftat-wiki-icontext-icon-wrapper&amp;quot; style=&amp;quot;&lt;br /&gt;
  display: inline-flex;&lt;br /&gt;
  align-items: center;&lt;br /&gt;
  justify-content: center;&lt;br /&gt;
  min-width: {{#lvar:min-w}}px;&lt;br /&gt;
  height: {{#lvar:max-h}}px;&lt;br /&gt;
&amp;quot;&amp;gt;&amp;lt;span class=&amp;quot;straftat-wiki-icontext-icon&amp;quot; style=&amp;quot;vertical-align: middle;&amp;quot;&amp;gt;{{icon&lt;br /&gt;
| {{#lvar:icon}}&lt;br /&gt;
| link = {{#lvar:link}}&lt;br /&gt;
| caption = {{#lvar:text}}&lt;br /&gt;
| w = {{#lvar:max-w}}&lt;br /&gt;
| h = {{#lvar:max-h}}&lt;br /&gt;
| class = {{{class|}}}&lt;br /&gt;
}}&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&amp;amp;nbsp;&amp;lt;span class=&amp;quot;straftat-wiki-icontext-text&amp;quot;&amp;gt;{{#if: {{#lvar:link}}&lt;br /&gt;
| [[{{#lvar:link}}|{{#lvar:text}}]]&lt;br /&gt;
| {{#lvar:text}}&lt;br /&gt;
}}&amp;lt;/span&amp;gt;{{#if: {{{block|}}}{{{nowrap|}}}&lt;br /&gt;
| &amp;lt;/span&amp;gt;&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
Usage: {{code|&amp;lt;nowiki&amp;gt;{{IconText | AK.png | AK }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Result: {{IconText | AK.png | AK }}&lt;br /&gt;
&lt;br /&gt;
The icon and text can be made into a link:&lt;br /&gt;
&lt;br /&gt;
Usage: {{code|&amp;lt;nowiki&amp;gt;{{IconText | AK.png | Custom Text | link = AK }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Result: {{IconText | AK.png | Custom Text | link = AK }}&lt;br /&gt;
&lt;br /&gt;
The default size is {{code|x40px}} meaning the icon is scaled until the &amp;#039;&amp;#039;&amp;#039;height&amp;#039;&amp;#039;&amp;#039; is 40 px.  It&amp;#039;s usually important to limit the height since the icons are used inline, and a very high inline image makes for an unpleasant text layout.&lt;br /&gt;
&lt;br /&gt;
An alternative value for the height can be provided via the {{code|size}} or {{code|h}} parameters, which are synonyms:&lt;br /&gt;
&lt;br /&gt;
Usage: {{code|&amp;lt;nowiki&amp;gt;{{IconText | size = 25 | AK.png | AK }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Result: {{IconText | size = 25 | AK.png | AK }}&lt;br /&gt;
&lt;br /&gt;
Usage: {{code|&amp;lt;nowiki&amp;gt;{{IconText | size = 25 | AK.png | Custom Text | link = AK }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Result: {{IconText | size = 25 | AK.png | Custom Text | link = AK }}&lt;br /&gt;
&lt;br /&gt;
Behavior on missing icon:&lt;br /&gt;
&lt;br /&gt;
{{IconText | Missing Icon 123.png | AK | size = 30 }}&lt;br /&gt;
&lt;br /&gt;
The width can be set via the {{code|w}} parameter.  This could be useful if several elements are supposed to align vertically for design purposes, such as in the following table shown on our main page as of the writing of this documentation.  This also uses the {{code|block}} and {{code|gap}} parameters.  (View the source of this page for usage.)&lt;br /&gt;
&lt;br /&gt;
Setting {{code|block}} to yes ensures that if the text part has to break into multiple lines, the second line doesn&amp;#039;t flow under the icon and instead the text is constrained into a rectangular block.  The {{code|gap}} parameter can only be provided if block is set to yes, and determines the gap (in px) between the icon and the aforementioned rectangular text block.&lt;br /&gt;
&lt;br /&gt;
[[Category:Icon templates]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
</feed>