Template:ADV processing: Difference between revisions

From Atomix
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<!-- Category for instrument type -->
{{#if: {{{instrument_type|}}} | [[Category:{{{instrument_type}}}]] }}
<!-- Category for each processing level -->
{{#if: {{{level|}}} |
  {{#if: {{#pos:{{{level}}},}} |
    <!-- Multiple comma-separated levels -->
    {{#foreach: {{{level}}} | , | levelitem |
      [[Category:{{{instrument_type}}} {{levelitem}}]]
    }}
  |
    <!-- Single level -->
    [[Category:{{{instrument_type}}} {{{level}}}]]
  }}
}}
</includeonly>
<noinclude>
<noinclude>
This is the "ADV_processing" template.
This is the "ADV_processing" template.
It should be called in the following format:
 
It can be called manually as:
<pre>
<pre>
{{ADV_processing
{{ADV_processing
|level=
|level=1,2,3
|instrument_type=
|instrument_type=ADV
}}
}}
</pre>
</pre>
Edit the page to see how the variables are formatted. The [[Form:Processing|processing form]] also exists to facilitate using this template.
 
=== Parameters ===
* <nowiki>|instrument_type=</nowiki> — The instrument type (e.g., ADV).
* <nowiki>|level=</nowiki> — One or more processing levels. 
  - Single value: <nowiki>1</nowiki> 
  - Multiple values: <nowiki>1,2,3</nowiki>
 
=== Behavior ===
This template automatically categorizes the page under:
* <nowiki>[[Category:instrument_type]]</nowiki>
* <nowiki>[[Category:instrument_type level]]</nowiki> for each level provided.
 
This version does not require PageForms or Arrays and is safe for long‑term use.
 
</noinclude>
</noinclude>
<includeonly>
{{#default_form:Processing}}
{{#arraymap:{{Glossary|{{{instrument_type|}}}}}|,|x|[[Category:x]]|}}
{{#if: {{{level|}}} | {{#arraymap:{{{level|}}}|,|x|[[Category:{{{instrument_type|}}} x]]|}}}}
</includeonly>

Revision as of 20:27, 8 July 2026


This is the "ADV_processing" template.

It can be called manually as:

{{ADV_processing
|level=1,2,3
|instrument_type=ADV
}}

Parameters

  • |instrument_type= — The instrument type (e.g., ADV).
  • |level= — One or more processing levels.
 - Single value: 1  
 - Multiple values: 1,2,3

Behavior

This template automatically categorizes the page under:

  • [[Category:instrument_type]]
  • [[Category:instrument_type level]] for each level provided.

This version does not require PageForms or Arrays and is safe for long‑term use.