User:Ian07/Test/Template2: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
mNo edit summary
Replaced content with "{{#ifexpr: {{{2|0}}} > 1|{{User:Ian07/Test/Template2|{{{1|}}}|{{#expr: {{{2|0}}} - 1}} }}|{{{1|}}} }}"
Tag: Replaced
Line 1: Line 1:
<includeonly>{{#if: {{{apgcode|}}}{{{niemiecid|}}}{{{niemiecid2|}}}{{{pentadecathlonid|}}}{{{eppsteinid|}}} | <tr>
{{#ifexpr: {{{2|0}}} > 1|{{User:Ian07/Test/Template2|{{{1|}}}|{{#expr: {{{2|0}}} - 1}} }}|{{{1|}}} }}
<td colspan="2" style="height:3px;"></td></tr>
<tr>
<td colspan="2" style="background-color:#A7A8C1;height:2px;"></td></tr>
<tr>
<td colspan="2">
<table class="infobox_table collapsible collapsed" style="width:100%">
<tr>
<th colspan="2" class="infobox_subhead">Identifiers</th>
</tr>
{{#if: {{{apgcode|}}} | <tr>
<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>
</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>
<th>[[Mark Niemiec|Niemiec]]&nbsp;ID</th>
<td style="text-align:right; max-width: 20em" valign="middle">{{{niemiecid|}}}{{#if: {{{niemiecid2|}}} | <br />{{{niemiecid2|}}} }}</td>
</tr> }} {{#if: {{{pentadecathlonid|}}} | <tr>
<th>Pentadecathlon&nbsp;ID</th>
<td style="text-align:right;" valign="middle">{{LinkPentadecathlonObject|id={{{pentadecathlonid|}}}|style=raw}}</td>
</tr> }} {{#if: {{{eppsteinid|}}} | <tr>
<th>[[David Eppstein|Eppstein]]&nbsp;ID</th>
<td style="text-align:right;" valign="middle">{{LinkEppstein|number={{{eppsteinid|}}}|style=raw}}</td>
</tr> }}
</table>
</td></tr>
}}</includeonly><noinclude>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.</noinclude>

Revision as of 18:21, 10 February 2022