Jump to content

Template:LabelOrElse: Difference between revisions

From Philosophical Research
m .item-name
m move .item-code
 
Line 1: Line 1:
<onlyinclude>{{#if:{{{I|}}}|{{Template:I{{{I|}}}|Q={{{Q|}}}|class={{{class|}}}}}}}<span class="item-name">{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}}|{{{E|}}}={{#if:{{{2|}}}|[[Ontology:Q{{{Q|617}}}|{{{2}}}]]|[[Ontology:Q{{{Q|617}}}|{{{1|(Item name missing)}}}]]}}|{{{Q|}}}={{#if:{{{2|}}}|[[Ontology:{{{E|Q617}}}|{{{2}}}]]|[[Ontology:{{{E|Q617}}}|{{{1|(Item name missing)}}}]]}}|#default={{#if: {{{2|}}}|[[{{{href|}}}|{{{2}}}]]|[[{{{href|}}}|{{{1|(Item name missing)}}}]]}}}}</span></onlyinclude><!--
<onlyinclude>{{#if:{{{I|}}}|{{Template:I{{{I|}}}|Q={{{Q|}}}|class={{{class|}}}}}}}<data value="{{{E|}}}{{{Q|}}}" class="item-name">{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}}|{{{E|}}}={{#if:{{{2|}}}|[[Ontology:Q{{{Q|617}}}|{{{2}}}]]|[[Ontology:Q{{{Q|617}}}|{{{1|(Item name missing)}}}]]}}|{{{Q|}}}={{#if:{{{2|}}}|[[Ontology:{{{E|Q617}}}|{{{2}}}]]|[[Ontology:{{{E|Q617}}}|{{{1|(Item name missing)}}}]]}}|#default={{#if: {{{2|}}}|[[{{{href|}}}|{{{2}}}]]|[[{{{href|}}}|{{{1|(Item name missing)}}}]]}}}}</data></onlyinclude><!--
more readable version:
more readable version:



Latest revision as of 10:42, 28 January 2026

(Item name missing)

Parameters[edit]

  • 1 - primary label
  • 2 - alternate label
  • E - Item identifier including "Q" etc. If not supplied, Q will be used
  • Q - Item number not including "Q"
  • href - entry title, freeform
  • I - swatch icon (optional)
  • class - swatch color for icon (optional)