Template:Inventory: Difference between revisions

From stencil.wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 3: Line 3:
This template displays any associated ink or machine data stored in the page it is transcluded into as [[Template:Chip container]]s. The data must be stored as semantic properties <code>Has ink</code> or <code>Has machine</code>.</noinclude><!--
This template displays any associated ink or machine data stored in the page it is transcluded into as [[Template:Chip container]]s. The data must be stored as semantic properties <code>Has ink</code> or <code>Has machine</code>.</noinclude><!--
--><includeonly><!--
--><includeonly><!--
-->{{#if:{{#show:{{PAGENAME}}|?Has ink # -}}
-->{{#if:{{#show:{{PAGENAME}}|?Has ink}}
     | {{Chip container
     | {{Chip container
         | {{#show:{{PAGENAME}}|?Has ink # -}}
         | {{#show:{{PAGENAME}}|?Has ink}}
         | template = Ink chip
         | template = Ink chip
         | title = Ink colors
         | title = Ink colors
     }}
     }}
}}<!--
}}<!--
-->{{#if:{{#show:{{PAGENAME}}|?Has machine # -}}
-->{{#if:{{#show:{{PAGENAME}}|?Has machine}}
     | {{Chip container
     | {{Chip container
         | {{#show:{{PAGENAME}}|?Has machine # -}}
         | {{#show:{{PAGENAME}}|?Has machine}}
         | template = Machine chip
         | template = Machine chip
         | title = Machines
         | title = Machines

Revision as of 23:26, 21 December 2025

This is a semantic display template, it takes no properties of its own.

This template displays any associated ink or machine data stored in the page it is transcluded into as Template:Chip containers. The data must be stored as semantic properties Has ink or Has machine.