Template:LabelOrElse: Difference between revisions
Appearance
implement href parameter from Template:HueEntity |
m pass class parameter to I template |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<onlyinclude>{{#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)}}}]] }} }}</onlyinclude><!-- | <onlyinclude><span class="item-code">{{#if:{{{I|}}}|{{Template:I{{{I|}}}|Q={{{Q|}}}|class={{{class|}}}}}}}{{#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><!-- | ||
more readable version: | more readable version: | ||
<span class="item-code"> | |||
{{#if:{{{I|}}} | {{Template:I{{{I|}}} |Q={{{Q|}}} |class={{{class|}}} }} }} | |||
{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | ||
| {{{E|}}} = {{#if: {{{2|}}} | [[Ontology:Q{{{Q|617}}}|{{{2}}}]] | [[Ontology:Q{{{Q|617}}}|{{{1|(Item name missing)}}}]] }} | | {{{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)}}}]] }} | | {{{Q|}}} = {{#if: {{{2|}}} | [[Ontology:{{{E|Q617}}}|{{{2}}}]] | [[Ontology:{{{E|Q617}}}|{{{1|(Item name missing)}}}]] }} | ||
| #default = {{#if: {{{2|}}} | [[{{{href|}}}|{{{2}}}]] | [[{{{href|}}}|{{{1|(Item name missing)}}}]] }} | | #default = {{#if: {{{2|}}} | [[{{{href|}}}|{{{2}}}]] | [[{{{href|}}}|{{{1|(Item name missing)}}}]] }} | ||
}} | }}</span> | ||
--> | --> | ||
== Parameters == | |||
* <code>1</code> - primary label | |||
* <code>2</code> - alternate label | |||
* <code>E</code> - Item identifier including "Q" etc. If not supplied, <code>Q</code> will be used | |||
* <code>Q</code> - Item number not including "Q" | |||
* <code>href</code> - entry title, freeform | |||
* <code>I</code> - swatch icon (optional) | |||
* <code>class</code> - swatch color for icon (optional) | |||
[[Category:Fake Item lists]] | [[Category:Fake Item lists]] | ||
Latest revision as of 11:36, 29 December 2025
Parameters[edit]
1- primary label2- alternate labelE- Item identifier including "Q" etc. If not supplied,Qwill be usedQ- Item number not including "Q"href- entry title, freeformI- swatch icon (optional)class- swatch color for icon (optional)