Template:LabelOrElse: Difference between revisions
Appearance
m restore old if statement |
m require E |
||
| Line 1: | Line 1: | ||
<onlyinclude>{{#if:{{{I|}}}|{{Template:I{{{I|}}}|Q={{{Q|}}}|class={{{class|}}}}}}}<data value=" | <onlyinclude>{{#if:{{{I|}}}|{{Template:I{{{I|}}}|Q={{{Q|}}}|class={{{class|}}}}}}}<data value="{{{E|}}}" class="item-name plainlinks">{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{{E|}}}{{{R|}}}{{{href|}}} = {{#if: {{{2|}}} | [[Ontology:Q{{{Q|617}}}|{{{2}}}]] | [[Ontology:Q{{{Q|617}}}|{{{1|(Item name missing)}}}]] }} | {{{E|}}}{{{href|}}} = {{#if: {{{2|}}} | [[Philosophical Research:{{{R}}}|{{{2}}}]] | [[Philosophical Research:{{{R}}}|{{{1|(Item name missing)}}}]] }} | {{{R|}}}{{{href|}}} = {{#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: | ||
| Line 6: | Line 6: | ||
{{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | {{#switch:{{{ParameterThatShouldAlwaysBeEmpty|}}} | ||
| {{{E|}}}{{{R|}}}{{{href|}}} = {{#if: {{{2|}}} | [[Ontology:Q{{{Q|617}}}|{{{2}}}]] | [[Ontology:Q{{{Q|617}}}|{{{1|(Item name missing)}}}]] }} | | {{{E|}}}{{{R|}}}{{{href|}}} = {{#if: {{{2|}}} | [[Ontology:Q{{{Q|617}}}|{{{2}}}]] | [[Ontology:Q{{{Q|617}}}|{{{1|(Item name missing)}}}]] }} | ||
| {{{E | | {{{E|}}}{{{href|}}} = {{#if: {{{2|}}} | [[Philosophical Research:{{{R}}}|{{{2}}}]] | [[Philosophical Research:{{{R}}}|{{{1|(Item name missing)}}}]] }} | ||
| | | {{{R|}}}{{{href|}}} = {{#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> | }}</span> | ||
| Line 16: | Line 16: | ||
* <code>1</code> - primary label | * <code>1</code> - primary label | ||
* <code>2</code> - alternate label | * <code>2</code> - alternate label | ||
* <code>E</code> - Item identifier including "Q" etc. | * <code>E</code> - Item identifier including "Q" etc. | ||
* <code>Q</code> - Item number not including "Q" | * <code>Q</code> - Item number not including "Q" | ||
* <code>R</code> - Philosophical Research: entry, to be used instead of | * <code>R</code> - Philosophical Research: entry, to be used instead of <code>E</code> | ||
* <code>href</code> - external link | * <code>href</code> - external link | ||
* <code>I</code> - swatch icon (optional) | * <code>I</code> - swatch icon (optional) | ||
Revision as of 03:45, 28 February 2026
Parameters
1- primary label2- alternate labelE- Item identifier including "Q" etc.Q- Item number not including "Q"R- Philosophical Research: entry, to be used instead ofEhref- external linkI- swatch icon (optional)class- swatch color for icon (optional)