Difference between revisions of "Template:3D Alt Viewer"
Moussekateer (talk | contribs) (Created page with "<div class="alt-viewer">{{3D viewer | {{{fallback|null}}} = {{{fallback|}}} | image-fallback = {{{image-fallback|{{{view1}}}}}} | image-0 = {{{view1|}}} | image-1 = {{{vi...") |
m |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <div class="alt-viewer">{{3D viewer | + | <div class="alt-viewer viewer-3d-multi">{{3D viewer |
− | | {{{fallback|null | + | | {{#if: {{{fallback|}}}|fallback|null}} = {{{fallback|}}} |
− | | image-fallback = {{{image-fallback| | + | | {{#if: {{{image-fallback|}}}|image-fallback|null}} = {{{image-fallback|}}} |
| image-0 = {{{view1|}}} | | image-0 = {{{view1|}}} | ||
| image-1 = {{{view2|}}} | | image-1 = {{{view2|}}} | ||
− | }}<ul><li class="view-selector-default">[[:File:{{{view1}}}|{{{view1name}}}]]</li><li class="view-selector-alt">[[:File:{{{view2}}}|{{{view2name}}}]]</li></ul></div> | + | | {{#ifeq: {{#expr: {{{number-of-3d-images|2}}} > 2}} | 1 | image-2 | fakeargument}} = {{#ifeq: {{#expr: {{{number-of-3d-images|2}}} > 2}} | 1 | {{{view3|}}} | fakevalue}} |
+ | | {{#ifeq: {{#expr: {{{number-of-3d-images|2}}} > 3}} | 1 | image-3 | fakeargument}} = {{#ifeq: {{#expr: {{{number-of-3d-images|2}}} > 3}} | 1 | {{{view4|}}} | fakevalue}} | ||
+ | }}<ul> | ||
+ | <li class="view-selector-default selector-0">[[:File:{{{view1}}}|{{{view1name}}}]]</li> | ||
+ | <li class="view-selector-alt selector-1">[[:File:{{{view2}}}|{{{view2name}}}]]</li>{{#ifeq: {{#expr: {{{number-of-3d-images|2}}} > 2}}| 1 |<br/> | ||
+ | <li class="view-selector-default selector-2">[[:File:{{{view3}}}{{!}}{{{view3name}}}]]</li>{{#ifeq: {{#expr: {{{number-of-3d-images|2}}} > 3}}| 1 | | ||
+ | <li class="view-selector-alt selector-3">[[:File:{{{view4}}}{{!}}{{{view4name}}}]]</li>|}}|}} | ||
+ | </ul> | ||
+ | </div><noinclude>[[Category:3D viewer templates]]</noinclude> |
Latest revision as of 02:07, 8 February 2023
{{File:|url}}{{File:|map}}
- [[:File:{{{view1}}}|{{{view1name}}}]]
- [[:File:{{{view2}}}|{{{view2name}}}]]