Jump to content

Template:HuePalette

From Philosophical Research
<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]] | <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 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" data-template="HuePalette"><dt>{{E:P111}}</dt><dd><dl class="wikitable hue values"><dt class="term"></dt><dd class="value-main">{{{4}}}</dd><dt>{{E:P109}}</dt><dd class="value-main"><code>border-color</code></dd></dl></dd></div></onlyinclude>

Demo[edit]

color swatch references [Item]
new field-specific color swatch
pronounced 41,04. (Z) pronounced (Four) (Z):Trotskyism (top-level category)1-1-1
Item philosophy tag
pronounced IV, meaning four
pronounced Z.V., for Zinovievism
Item color coding [classname]
field_trotsky
   #FF8C00
   #BF4C10
pronounced P: Entity hex color [color]
   #FF8C00
CSS property [identifier]
background
pronounced P: 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 formatted
  • ET2 - second ideology code, if needed
  • 2 - HTML classname
  • 3 - CSS background color, to be rendered as swatch
  • 4 - CSS border color, to be rendered as swatch
  • EQ - Item / Ontology entry to link in "new swatch" row
  • EQ2 - second Item to be linked, if needed
  • C - if "T", Item will be added to Category:Items with unique philosophy tags