<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AInfobox_tartan%2Fdoc</id>
	<title>Template:Infobox tartan/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://the-democratika.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AInfobox_tartan%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Template:Infobox_tartan/doc&amp;action=history"/>
	<updated>2026-04-05T02:24:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://the-democratika.com/wiki/index.php?title=Template:Infobox_tartan/doc&amp;diff=9628&amp;oldid=prev</id>
		<title>&gt;WOSlinker: syntaxhighlight lang=&quot;wikitext&quot;</title>
		<link rel="alternate" type="text/html" href="https://the-democratika.com/wiki/index.php?title=Template:Infobox_tartan/doc&amp;diff=9628&amp;oldid=prev"/>
		<updated>2023-05-21T07:00:12Z</updated>

		<summary type="html">&lt;p&gt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
This template is used to create an infobox for a [[Tartan]] pattern. These patterns are recorded by several registries, and may have legal status both by copyright and explicit legal restrictions on their use. Images of these tartans may be restricted to [[WP:Fair Use]] guidelines.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Infobox tartan&lt;br /&gt;
| name     = Tartan name (if different from page name). Do not include the word &amp;quot;tartan&amp;quot;.&lt;br /&gt;
| image    = Image of the tartan pattern. With the userscript, this will be able to be populated automatically with an image generated directly from the specified sett pattern.&lt;br /&gt;
| style    = Tartan color palate. Defaults to &amp;quot;modern&amp;quot; with default image caption.&lt;br /&gt;
| caption1 = Caption for main image. Defaults to &amp;quot;The &amp;lt;name&amp;gt; tartan in &amp;lt;style&amp;gt; colors.&amp;quot;&lt;br /&gt;
| sett     = The sett pattern&lt;br /&gt;
| image2   = Picture of the tartan in use&lt;br /&gt;
| caption2 = Caption for image2&lt;br /&gt;
| image3   = Other pictures of the tartan&lt;br /&gt;
| caption3 = Caption for image3&lt;br /&gt;
| image4   = Other pictures of the tartan&lt;br /&gt;
| caption4 = Caption for image4&lt;br /&gt;
| STA      = Scottish Tartans Authority reference number&lt;br /&gt;
| STWR     = Scottish Tartans World Registry reference number&lt;br /&gt;
| SRTref   = Reference number for tartan entry in The Scottish Register of Tartans&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Both the STA and STWR reference numbers can be found at [http://www.tartanregister.gov.uk The Scottish Register of Tartans]. Thread counts for the sett can also be accessed on a limited basis from the Scottish Register of Tartans with a free account.&lt;br /&gt;
&lt;br /&gt;
A [[WP:Userscripts|userscript]] is [[User:Vanisaac/TartanBuilder.js|being created]] to allow a tartan pattern image to be created from the provided sett pattern and displayed as the default main image of the tartan. Until the userscript is ready, the template is still functional as an infobox, but it will lack its intended full functionality.&lt;br /&gt;
&lt;br /&gt;
==Tartan pattern sett description==&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Infobox tartan&amp;#039;&amp;#039;&amp;#039; template defines a parameter &amp;lt;code&amp;gt;sett=&amp;lt;/code&amp;gt; for specifying the thread count of the tartan pattern. This sett description uses single letter tartan color codes followed by a number indicating the number of threads wide at that color. Most colors have a separate code for a lighter or darker shade of the primary color, and the exact color tone of any color code (including some user-defined codes) can be specified. The table of basic colors is below, with the light and dark versions grouped with their basic color counterpart.&lt;br /&gt;
&lt;br /&gt;
===Color codes===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; width=&amp;quot;95%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Color name/mnemonic !! Modern value !! Ancient value !! Weathered value !! Code letter&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot;| Blues&lt;br /&gt;
|-&lt;br /&gt;
| Blue || {{swatch inline|#2888C4||white}} || {{swatch inline|}} || {{swatch inline|}} || B&lt;br /&gt;
|-&lt;br /&gt;
| Azure (light blue) || {{swatch inline|#80D0FF}} || {{swatch inline|}} || {{swatch inline|}} || A&lt;br /&gt;
|-&lt;br /&gt;
| Cobalt (dark blue) || {{swatch inline|#2C2C80||white}} || {{swatch inline|}} || {{swatch inline|}} || C&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot;| Greens&lt;br /&gt;
|-&lt;br /&gt;
| Green || {{swatch inline|#008000||white}} || {{swatch inline|}} || {{swatch inline|}} || G&lt;br /&gt;
|-&lt;br /&gt;
| Heather (light green) || {{swatch inline|#7CC06C}} || {{swatch inline|}} || {{swatch inline|}} || H&lt;br /&gt;
|-&lt;br /&gt;
| Forest (dark green) || {{swatch inline|#004028||white}} || {{swatch inline|}} || {{swatch inline|}} || F&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot;| Reds&lt;br /&gt;
|-&lt;br /&gt;
| Red || {{swatch inline|#C80000||white}} || {{swatch inline|}} || {{swatch inline|}} || R&lt;br /&gt;
|-&lt;br /&gt;
| Scarlet (light red) || {{swatch inline|#FF6060}} || {{swatch inline|}} || {{swatch inline|}} || S&lt;br /&gt;
|-&lt;br /&gt;
| Maroon (dark red) || {{swatch inline|#880000||white}} || {{swatch inline|}} || {{swatch inline|}} || M&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot;| Black, white &amp;amp; greys&lt;br /&gt;
|-&lt;br /&gt;
| White || {{swatch inline|#FFFFFF}} || {{swatch inline|}} || {{swatch inline|}} || W&lt;br /&gt;
|-&lt;br /&gt;
| Light Grey || {{swatch inline|#C0C0C0}} || {{swatch inline|}} || {{swatch inline|}} || L&lt;br /&gt;
|-&lt;br /&gt;
| Neutral Grey || {{swatch inline|#808080||white}} || {{swatch inline|}} || {{swatch inline|}} || N&lt;br /&gt;
|-&lt;br /&gt;
| Dark Grey || {{swatch inline|#404040||white}} || {{swatch inline|}} || {{swatch inline|}} || D&lt;br /&gt;
|-&lt;br /&gt;
| Black || {{swatch inline|#000000||white}} || {{swatch inline|}} || {{swatch inline|}} || K&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot;| Browns&lt;br /&gt;
|-&lt;br /&gt;
| Brown || {{swatch inline|#604000||white}} || {{swatch inline|}} || {{swatch inline|}} || T {{ref|A}}&lt;br /&gt;
|-&lt;br /&gt;
| Tan (light brown) || {{swatch inline|#D0A870}} || {{swatch inline|}} || {{swatch inline|}} || V&lt;br /&gt;
|-&lt;br /&gt;
| Umber (dark brown) || {{swatch inline|#441800||white}} || {{swatch inline|}} || {{swatch inline|}} || U&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot;| Yellows&lt;br /&gt;
|-&lt;br /&gt;
| Yellow || {{swatch inline|#FCCC00}} || {{swatch inline|}} || {{swatch inline|}} || Y&lt;br /&gt;
|-&lt;br /&gt;
| Gold (dark yellow) || {{swatch inline|#C89800}} || {{swatch inline|}} || {{swatch inline|}} || Z&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot;| Others&lt;br /&gt;
|-&lt;br /&gt;
| Orange || {{swatch inline|#EC8048}} || {{swatch inline|}} || {{swatch inline|}} || O&lt;br /&gt;
|-&lt;br /&gt;
| Purple || {{swatch inline|#780078||white}} || {{swatch inline|}} || {{swatch inline|}} || P&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot;| Unreserved color codes&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot;| The letters E, I, J, Q and X are unreserved, and can be used for any user specified color. Their default value is {{swatch inline|#808080|Neutral Grey|white}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
|-&lt;br /&gt;
| Color || {{swatch inline|}} || {{swatch inline|}} || {{swatch inline|}} || X&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
|}{{note|A||The traditional code for brown in tartan patterns is &amp;quot;T&amp;quot; as a mnemonic for &amp;quot;Tan&amp;quot;, with &amp;quot;LT&amp;quot; (light brown) for actual tan colors.}}&lt;br /&gt;
&lt;br /&gt;
===Thread counts===&lt;br /&gt;
Once you have the colors of your tartan pattern, the second part of defining the sett is specifying the size of the stripes in each color. This is done by adding a number after each letter describing the number of threads in each color stripe. Add these alternating Letter+Number codes to get the tartan sett. Most tartans are symmetrical, and the first and last color stripes are referred to as &amp;quot;pivots&amp;quot; where the pattern doubles back on itself. When specifying a sett, only specify thread counts from one pivot to the next, inclusive. The two pivot points should include the full count of the stripe - the pivots do not double back on themselves. To indicate an asymmetric tartan that goes immediately back to the beginning of the sett after reaching the end instead of doubling back, place a &amp;quot;+&amp;quot; plus sign at the beginning of your sett pattern.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+Example tartan sett patterns&lt;br /&gt;
|-&lt;br /&gt;
! Black Watch tartan !! Clan Buchanan tartan&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;sett=B24 K4 B4 K4 B4 K20 G24 K6 G24 K20 B22 K4 B4&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;sett=+ B18 G46 K6 B18 K6 Y40 K6 Y40 K6 B18 K6 R40 W6 R40 K6 B18 K6 G46&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[File:Tartan Black Watch b24k4b4k4b4k20g24k6g24k20b22k4b4.svg|350px|SVG Black Watch tartan]] || [[File:Tartan Buchanan +b18g46k6b18k6y40k6y40k6b18k6r40w6r40k6b18k6g46.svg|350px|SVG Buchanan tartan]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{{Infobox tartan&lt;br /&gt;
| name     = Black Watch&lt;br /&gt;
| image    = Black Watch or Campbell tartan.svg&lt;br /&gt;
| style    = dark&lt;br /&gt;
| sett     = B24 K4 B4 K4 B4 K20 G24 K6 G24 K20 B22 K4 B4&lt;br /&gt;
| image2   = A sentry at ease.jpg&lt;br /&gt;
| caption2 = &amp;#039;&amp;#039;A Sentry at Ease&amp;#039;&amp;#039;, Black Watch (Royal Highlanders), 1892.&lt;br /&gt;
| STA      = 207&lt;br /&gt;
| STWR     = 207&lt;br /&gt;
| SRTref   = 277&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Infobox tartan&lt;br /&gt;
| name     = Black Watch&lt;br /&gt;
| image    = Black Watch or Campbell tartan.svg&lt;br /&gt;
| style    = dark&lt;br /&gt;
| sett     = B24 K4 B4 K4 B4 K20 G24 K6 G24 K20 B22 K4 B4&lt;br /&gt;
| image2   = A sentry at ease.jpg&lt;br /&gt;
| caption2 = &amp;#039;&amp;#039;A Sentry at Ease&amp;#039;&amp;#039;, Black Watch (Royal Highlanders), 1892.&lt;br /&gt;
| STA      = 207&lt;br /&gt;
| STWR     = 207&lt;br /&gt;
| SRTref   = 277&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Infobox tartan&lt;br /&gt;
| name     = Buchanan&lt;br /&gt;
| sett     = +B18 G46 K6 B18 K6 Y40 K6 Y40 K6 B18 K6 R40 W6 R40 K6 B18 K6 G46&lt;br /&gt;
| caption1 = The Buchanan tartan, generated from the sett given below.&lt;br /&gt;
| STA      = 151&lt;br /&gt;
| STWR     = 151&lt;br /&gt;
| SRTref   = 414&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Infobox tartan&lt;br /&gt;
| name     = Buchanan&lt;br /&gt;
| sett     = +B18 G46 K6 B18 K6 Y40 K6 Y40 K6 B18 K6 R40 W6 R40 K6 B18 K6 G46&lt;br /&gt;
| caption1 = The Buchanan tartan, generated from the sett given below.&lt;br /&gt;
| STA      = 151&lt;br /&gt;
| STWR     = 151&lt;br /&gt;
| SRTref   = 414&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>&gt;WOSlinker</name></author>
	</entry>
</feed>