Jump to content

Template:HuePalette: Difference between revisions

From Philosophical Research
m rewrite as html to make .longhand / .shorthand easier
m EQ2 parameter
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<pre style="display: none;">
<pre style="display: none;">
<onlyinclude>{{#if: {{{EQ|}}} | <div class="row p56 longhand"><dt>{{E:P56}}</dt><dd>{{Template:BSwatch}}</dd><dd>{{Ontology:{{{EQ}}}}}</dd></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 longhand"><dt>Item philosophy tag</dt><dd>{{{1}}} [[Category:Items with unique philosophy tags]]</dd></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]] | [[Category:Items with unique color swatches]] }}</dd></div><!--
--><div class="row"><dt>{{E:P110}}</dt><dd>{{{2}}}</dd><dd class="shorthand">{{{3}}</dd><dd class="shorthand">{{{4}}</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">background</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><!--
--><div class="row longhand"><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">border-color</dd></dl></dd></div></onlyinclude>
--><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>
</pre><!-- wikitext:
</pre><!-- wikitext:
{{HueRoster|EP=P56| {{Template:BSwatch}} | {{Ontology:{{{EQ}}}}} }}
{{HueRoster|EP=P56| {{Template:BSwatch}} | {{Ontology:{{{EQ}}}}} }}
{{HueRoster|P=Item philosophy tag| {{{1}}} [[Category:Items with unique philosophy tags]] }}
{{HueRoster|P=Item philosophy tag| {{{1}}} }}
{{HueRoster|EP=P110| {{{2}}} }}
{{HueRoster|EP=P110| {{{2}}} }}
{{HueRoster|EP=P111| {{{3}}} |OP={{E:P109}}| background }}
{{HueRoster|EP=P111| {{{3}}} |OP={{E:P109}}| background }}

Latest revision as of 05:37, 2 August 2025

<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]] | [[Category:Items with unique color swatches]] }}</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 Z–617 pronounced [IV] [Z] Trotskyism (top-level category) 1-1-1
Item philosophy tag
pronounced IV
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.