Template:DefineConcept: Difference between revisions

From Atomix
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
{| class="wikitable"
|-
! Short definition of {{FULLPAGENAME}} {{#if: {{{parameter_name|}}} | ({{{parameter_name}}}) | }}
|-
| {{{description}}}
|}
<small>This is the common definition for {{FULLPAGENAME}}, but other definitions may be discussed within the wiki.</small>
[[Category:Concept]]
{{#if: {{{instrument_type|}}} | [[Category:{{{instrument_type}}}]] }}
</includeonly>
<noinclude>
<noinclude>
This is the "DefineConcept" template, which formats the data supplied through this [[Form:DefineConcept|form]]
This is the "DefineConcept" template, which formats the data supplied through the [[Form:DefineConcept|DefineConcept form]].


The page's name is the full name of the concept/definition, while a short name (or acronym) can be provided as the parameter_name. The instrument_type variable is passed using the form only to avoid creating new categories through typing mistakes.
The page's name is the full name of the concept/definition, while a short name (or acronym) can be provided as the parameter_name. The instrument_type variable is passed using the form only to avoid creating new categories through typing mistakes.


The template can be called in the following format if not using the form (not recommended!):
The form enables categorizing the pages under these two types:
* Concept (short reusable definitions)
* Fundamentals
 
=== Using the template directly (not recommended) ===
<pre>
<pre>
{{DefineConcept
{{DefineConcept
|parameter_name=
|parameter_name=
|description=
|description=
|article_type=
|instrument_type=
}}
}}
</pre>
</pre>
Edit the page to see the template text. article_type is a radiobutton choice between:
* Concept (short reusable definitions)
* Fundamentals
</noinclude><includeonly>


{| class="wikitable"
</noinclude>
|-
! Definition of {{FULLPAGENAME}}
|-
{{#if: {{{parameter_name|}}} |
{{!}}-
! scope="row" {{!}} Abbreviation: {{{parameter_name}}}
}}
|-
| {{{description}}}
|}
<small>This is the common definition for {{FULLPAGENAME}}, but other definitions maybe discussed within the wiki.</small>
{{#default_form:DefineConcept}}
{{#arraymap:{{{article_type|}}}|,|x|[[Category:x]]|}}
{{#arraymap:{{{instrument_type|}}}|,|x|[[Category:x]]|}}
</includeonly>

Latest revision as of 20:23, 8 July 2026


This is the "DefineConcept" template, which formats the data supplied through the DefineConcept form.

The page's name is the full name of the concept/definition, while a short name (or acronym) can be provided as the parameter_name. The instrument_type variable is passed using the form only to avoid creating new categories through typing mistakes.

The form enables categorizing the pages under these two types:

  • Concept (short reusable definitions)
  • Fundamentals

Using the template directly (not recommended)

{{DefineConcept
|parameter_name=
|description=
|instrument_type=
}}