Template:Inventory: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 1: Line 1:
<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|inline=y|Has ink}} or {{code|inline=y|Has machine}}.
<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|inline=y|Has ink}} or {{code|inline=y|Has machine}}.</noinclude><!--
 
{{#show:Colour Code Printing|?Has ink#}}
</noinclude><!--
--><includeonly><!--
--><includeonly><!--
-->{{#if:{{{inks|}}}
-->{{#if:{{#show:{{PAGENAME}}|?Has ink#}}
     | {{Chip container
     | {{Chip container
         | {{{inks}}}
         | {{#show:{{PAGENAME}}|?Has ink#}}
         | template = Color chip
         | template = Color chip
         | title = Available Inks
         | title = Available Inks
     }}
     }}
}}<!--
}}<!--
-->{{#if:{{{machines|}}}
-->{{#if:{{#show:{{PAGENAME}}|?Has machine#}}
     | {{Chip container
     | {{Chip container
         | {{{machines}}}
         | {{#show:{{PAGENAME}}|?Has machine#}}
         | template = Machine chip
         | template = Machine chip
         | title = Machines
         | title = Machines

Revision as of 16:08, 8 December 2024

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 Template:Code or Template:Code.