Template:PatternIdentifiers: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
No edit summary
distinguish between canonical and cheapest apgcode; changes tested at User:Ian07/Test/Template2
Line 10: Line 10:
</tr>
</tr>
{{#if: {{{apgcode|}}} | <tr>
{{#if: {{{apgcode|}}} | <tr>
<th>[[apgcode]]</th>
<th>[[apgcode]] {{#if: {{{apgcode2|}}} | (canonical)}}</th>
<td style="text-align:right; word-break: break-all; padding-left: 1.5em" valign="middle">{{LinkCatagolue|code={{{apgcode}}}|style=raw}}</td>
<td style="text-align:right; word-break: break-all; padding-left: 1.5em" valign="middle">{{LinkCatagolue|code={{{apgcode}}}|style=raw}}</td>
</tr> }}{{#if: {{{apgcode2|}}} | <tr>
<th>[[apgcode]] (cheapest&nbsp;variant)</th>
<td style="text-align:right; word-break: break-all; padding-left: 1.5em" valign="middle">{{LinkCatagolue|code={{{apgcode2}}}|style=raw}}</td>
</tr> }}{{#if: {{{niemiecid|}}}{{{niemiecid2|}}} | <tr>
</tr> }}{{#if: {{{niemiecid|}}}{{{niemiecid2|}}} | <tr>
<th>[[Mark Niemiec|Niemiec]]&nbsp;ID</th>
<th>[[Mark Niemiec|Niemiec]]&nbsp;ID</th>

Revision as of 19:57, 11 July 2021

This template displays the "Identifiers" box that appears on the right hand side of pattern pages. It should not be used on its own, but only within other pattern infobox templates such as Template:Pattern and Template:Oscillator. All of its parameters are passed in from the corresponding parameters of the template that calls it.