Jump to content

Template:HuePalette: Difference between revisions

From Philosophical Research
demo
 
m rewrite as html to make .longhand / .shorthand easier
Line 1: Line 1:
<pre style="display: none;"><onlyinclude>{{#if: {{{EQ|}}} | <div class="longhand">{{HueRoster|EP=P56| {{Template:BSwatch}} | {{Ontology:{{{EQ}}}}} }}</div> }}
<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> }}<!--
--><div class="row longhand"><dt>Item philosophy tag</dt><dd>{{{1}}} [[Category:Items with unique philosophy tags]]</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 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">{{{4}}}</dd><dt>{{E:P109}}</dt><dd class="value-main">border-color</dd></dl></dd></div></onlyinclude>
</pre><!-- wikitext:
{{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}}} [[Category:Items with unique philosophy tags]] }}
<div class="shorthand">{{HueRoster|EP=P110| {{{2}}} | {{{3}}} | {{{4}}} }}</div>
{{HueRoster|EP=P110| {{{2}}} }}
<div class="longhand">{{HueRoster|EP=P110| {{{2}}} }}
{{HueRoster|EP=P111| {{{3}}} |OP={{E:P109}}| background }}
{{HueRoster|EP=P111| {{{3}}} |OP={{E:P109}}| background }}
{{HueRoster|EP=P111| {{{4}}} |OP={{E:P109}}| border-color }}</div></onlyinclude></pre>
{{HueRoster|EP=P111| {{{4}}} |OP={{E:P109}}| border-color }} -->


== Demo ==
== Demo ==

Revision as of 10:26, 21 July 2025

<onlyinclude>{{#if: {{{EQ|}}} | <div class="row p56 longhand"><dt>{{E:P56}}</dt><dd>{{Template:BSwatch}}</dd><dd>{{Ontology:{{{EQ}}}}}</dd></div> }}<!--
--><div class="row longhand"><dt>Item philosophy tag</dt><dd>{{{1}}} [[Category:Items with unique philosophy tags]]</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 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">{{{4}}}</dd><dt>{{E:P109}}</dt><dd class="value-main">border-color</dd></dl></dd></div></onlyinclude>

Demo

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
{Template:3
{Template:4
pronounced [P] Entity hex color [color]
   #FF8C00
CSS property [identifier]
background
pronounced [P] Entity hex color [color]
   #BF4C10
CSS property [identifier]
border-color

Description

This is a shorthand way of entering the information for Items with new color swatches.