Template:HuePalette: Difference between revisions
Appearance
m EQ2 parameter |
m allow second ideology code - parameter ET2 / document arguments |
||
| Line 1: | Line 1: | ||
<pre style="display: none;"> | <pre style="display: none;"> | ||
<onlyinclude>{{#if: {{{EQ|}}} | <div class="row p56 longhand" data-template="HuePalette"><dt>{{E:P56}}</dt><div class="values"><dd>{{Template:BSwatch}}</dd><dd>{{Ontology:{{{EQ}}}}}</dd>{{#if: {{{EQ2|}}} | <dd>{{Ontology:{{{EQ2}}}}}</dd> }}</div></div> }}<!-- | <onlyinclude>{{#if: {{{EQ|}}} | <div class="row p56 longhand" data-template="HuePalette"><dt>{{E:P56}}</dt><div class="values"><dd>{{Template:BSwatch}}</dd><dd>{{Ontology:{{{EQ}}}}}</dd>{{#if: {{{EQ2|}}} | <dd>{{Ontology:{{{EQ2}}}}}</dd> }}</div></div> }}<!-- | ||
--><div class="row"><dt>Item philosophy tag</dt><dd>{{{1}}} {{#switch: {{{C|}}} | T = [[Category:Items with unique philosophy tags]] [[Category:Items with unique color swatches]] | | --><div class="row"><dt>Item philosophy tag</dt><dd>{{{1}}} {{#switch: {{{C|}}} | T = [[Category:Items with unique philosophy tags]] [[Category:Items with unique color swatches]] | <data></data> }}</dd>{{#if: {{{ET2|}}} | <dd>{{{ET2}}}</dd> }}</div><!-- | ||
--><div class="row"><dt>{{E:P110}}</dt><div class="values"><dd>{{{2}}}</dd><dd class="shorthand">{{{3}}}</dd><dd class="shorthand">{{{4}}}</dd></div></div><!-- | --><div class="row"><dt>{{E:P110}}</dt><div class="values"><dd>{{{2}}}</dd><dd class="shorthand">{{{3}}}</dd><dd class="shorthand">{{{4}}}</dd></div></div><!-- | ||
--><div class="row longhand"><dt>{{E:P111}}</dt><dd><dl class="wikitable hue values"><dt class="term"></dt><dd class="value-main">{{{3}}}</dd><dt>{{E:P109}}</dt><dd class="value-main"><code>background</code></dd></dl></dd></div><!-- | --><div class="row longhand"><dt>{{E:P111}}</dt><dd><dl class="wikitable hue values"><dt class="term"></dt><dd class="value-main">{{{3}}}</dd><dt>{{E:P109}}</dt><dd class="value-main"><code>background</code></dd></dl></dd></div><!-- | ||
| Line 15: | Line 15: | ||
{{HueCSS}}<dl class="wikitable hue"> | {{HueCSS}}<dl class="wikitable hue"> | ||
{{HuePalette| {{TTS|html=code|IV|IV, meaning four|title=four}} | <code>field_trotsky</code> | {{HueChip|#FF8C00}} | {{HueChip|#BF4C10}} | EQ = Q4104 }} | {{HuePalette| {{TTS|html=code|IV|IV, meaning four|title=four}} | ET2 = {{TTS|html=code|Zv|Z.V., for Zinovievism|title=Zinovievism}} | <code>field_trotsky</code> | {{HueChip|#FF8C00}} | {{HueChip|#BF4C10}} | EQ = Q4104 }} | ||
</dl> | </dl> | ||
| Line 21: | Line 21: | ||
This is a shorthand way of entering the information for Items with new color swatches. | This is a shorthand way of entering the information for Items with new color swatches. | ||
== Parameters == <!-- arguments --> | |||
* <code>1</code> - ideology code / philosophy tag; not automatically formatted | |||
* <code>ET2</code> - second ideology code, if needed | |||
* <code>2</code> - HTML classname | |||
* <code>3</code> - CSS background color, to be rendered as swatch <!-- en-GB: colour --> | |||
* <code>4</code> - CSS border color, to be rendered as swatch | |||
* <code>EQ</code> - Item / Ontology entry to link in "new swatch" row | |||
* <code>EQ2</code> - second Item to be linked, if needed | |||
* <code>C</code> - if "T", Item will be added to [[:Category:Items with unique philosophy tags]] | |||
[[Category:Hue-format fake Items]] | [[Category:Hue-format fake Items]] | ||
Latest revision as of 06:49, 26 December 2025
Demo[edit]
- color swatch references [Item]
- new field-specific color swatch
- Trotskyism (top-level category)1
-1-1 - Item philosophy tag
-
- Item color coding [classname]
-
field_trotsky - #FF8C00
- #BF4C10
- Entity hex color [color]
- #FF8C00
- CSS property [identifier]
background
- Entity hex color [color]
- #BF4C10
- CSS property [identifier]
border-color
Description[edit]
This is a shorthand way of entering the information for Items with new color swatches.
Parameters[edit]
1- ideology code / philosophy tag; not automatically formattedET2- second ideology code, if needed2- HTML classname3- CSS background color, to be rendered as swatch4- CSS border color, to be rendered as swatchEQ- Item / Ontology entry to link in "new swatch" rowEQ2- second Item to be linked, if neededC- if "T", Item will be added to Category:Items with unique philosophy tags