Template:Infobox occupation: Difference between revisions

From WikiMD's Wellness Encyclopedia

No edit summary
No edit summary
Line 3: Line 3:
|-
|-
! colspan="2" style="text-align:center; background-color:lightblue; font-size:110%;" | {{{name|{{PAGENAMEBASE}}}}}
! colspan="2" style="text-align:center; background-color:lightblue; font-size:110%;" | {{{name|{{PAGENAMEBASE}}}}}
|-
{{#if:{{{image|}}}|<!-- Display image only if provided -->
{{#if:{{{image|}}}|<!-- Only display image if provided -->
|-
|-
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|frameless|alt={{{alt|}}}|{{{caption|}}}]]
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|frameless|alt={{{alt|}}}|{{{caption|}}}]]
}}
}}
{{#if:{{{caption|}}}|<!-- Only display caption if provided -->
{{#if:{{{caption|}}}|<!-- Display caption only if provided -->
|-
|-
| colspan="2" style="text-align:center;" | ''{{{caption}}}''
| colspan="2" style="text-align:center;" | ''{{{caption}}}''
}}
}}
{{#if:{{{official_names|}}}|<!-- Only display official names if provided -->
{{#if:{{{official_names|}}}|<!-- Display official names only if provided -->
|-
|-
| '''Names'''
| '''Names'''
| {{{official_names}}}
| {{{official_names}}}
}}
}}
{{#if:{{{synonym|}}}{{{synonyms|}}}|<!-- Only display synonyms if provided -->
{{#if:{{{synonym|}}}{{{synonyms|}}}|<!-- Display synonyms only if provided -->
|-
|-
| '''{{#if:{{{synonym|}}}|Synonym|Synonyms}}'''
| '''{{#if:{{{synonym|}}}|Synonym|Synonyms}}'''
| {{{synonym|}}}{{{synonyms|}}}
| {{{synonym|}}}{{{synonyms|}}}
}}
}}
{{#if:{{{pronounce|}}}|<!-- Only display pronunciation if provided -->
{{#if:{{{pronounce|}}}|<!-- Display pronunciation only if provided -->
|-
|-
| '''Pronunciation'''
| '''Pronunciation'''
| {{{pronounce}}}{{{pronounce ref|}}}&#x20;{{{pronounce comment|}}}
| {{{pronounce}}} {{{pronounce ref|}}} &#x20; {{{pronounce comment|}}}
}}
}}
{{#if:{{{type|}}}|<!-- Only display type if provided -->
{{#if:{{{type|}}}|<!-- Display type only if provided -->
|-
|-
| '''Occupation type'''
| '''Occupation type'''
| {{{type}}}
| {{{type}}}
}}
}}
{{#if:{{{activity_sector|}}}|<!-- Only display activity sector if provided -->
{{#if:{{{activity_sector|}}}|<!-- Display activity sector only if provided -->
|-
|-
| '''Activity sectors'''
| '''Activity sectors'''
| {{{activity_sector}}}
| {{{activity_sector}}}
}}
}}
{{#if:{{{specialty|}}}|<!-- Only display specialty if provided -->
{{#if:{{{specialty|}}}|<!-- Display specialty only if provided -->
|-
|-
| '''Specialty'''
| '''Specialty'''
| {{{specialty|}}}
| {{{specialty|}}}
}}
}}
{{#if:{{{competencies|}}}|<!-- Only display competencies if provided -->
{{#if:{{{competencies|}}}|<!-- Display competencies only if provided -->
|-
|-
| '''Competencies'''
| '''Competencies'''
| {{{competencies}}}
| {{{competencies}}}
}}
}}
{{#if:{{{formation|}}}|<!-- Only display education required if provided -->
{{#if:{{{formation|}}}|<!-- Display education required only if provided -->
|-
|-
| '''Education required'''
| '''Education required'''
| {{{formation}}}
| {{{formation}}}
}}
}}
{{#if:{{{employment_field|}}}|<!-- Only display fields of employment if provided -->
{{#if:{{{employment_field|}}}|<!-- Display fields of employment only if provided -->
|-
|-
| '''Fields of employment'''
| '''Fields of employment'''
| {{{employment_field}}}
| {{{employment_field}}}
}}
}}
{{#if:{{{related_occupation|}}}|<!-- Only display related jobs if provided -->
{{#if:{{{related_occupation|}}}|<!-- Display related jobs only if provided -->
|-
|-
| '''Related jobs'''
| '''Related jobs'''
Line 67: Line 66:
<noinclude>
<noinclude>
== Documentation ==
== Documentation ==
This template is used to create an infobox for occupation-related articles. Fields that are left blank in the usage will not display in the final output.
This template is used to create an infobox for occupation-related articles. Fields that are left blank in the usage will not display.


=== Parameters ===
=== Parameters ===
* `name` - Title of the occupation (defaults to the page name if not provided).
* `name` - Title of the occupation (defaults to page name if not provided).
* `image` - Image filename.
* `image` - Filename of an image.
* `alt` - Alternative text for the image.
* `alt` - Alternative text for the image.
* `caption` - Caption for the image.
* `caption` - Caption for the image.
* `official_names` - Official names or synonyms for the occupation.
* `official_names` - Official names of the occupation.
* `synonym`, `synonyms` - Alternative names or synonyms for the occupation.
* `synonym`, `synonyms` - Alternative names or synonyms.
* `pronounce` - Pronunciation of the occupation name.
* `pronounce` - Pronunciation of the name.
* `type` - Type of occupation.
* `type` - Type of occupation.
* `activity_sector` - Activity sectors of the occupation.
* `activity_sector` - Activity sectors of the occupation.
* `specialty` - Specialty within the activity sector.
* `specialty` - Specialty related to the occupation.
* `competencies` - Required competencies for the occupation.
* `competencies` - Required competencies.
* `formation` - Education required for the occupation.
* `formation` - Education required for the occupation.
* `employment_field` - Fields of employment related to the occupation.
* `employment_field` - Fields of employment.
* `related_occupation` - Related occupations.
* `related_occupation` - Related jobs.


=== Example ===
=== Example ===

Revision as of 14:29, 18 December 2024


Documentation

This template is used to create an infobox for occupation-related articles. Fields that are left blank in the usage will not display.

Parameters

  • `name` - Title of the occupation (defaults to page name if not provided).
  • `image` - Filename of an image.
  • `alt` - Alternative text for the image.
  • `caption` - Caption for the image.
  • `official_names` - Official names of the occupation.
  • `synonym`, `synonyms` - Alternative names or synonyms.
  • `pronounce` - Pronunciation of the name.
  • `type` - Type of occupation.
  • `activity_sector` - Activity sectors of the occupation.
  • `specialty` - Specialty related to the occupation.
  • `competencies` - Required competencies.
  • `formation` - Education required for the occupation.
  • `employment_field` - Fields of employment.
  • `related_occupation` - Related jobs.

Example

{{Infobox occupation
| name = Example Occupation
| image = Example.jpg
| caption = Example Caption
| official_names = Example Official Name
| synonym = Example Synonym
| pronounce = Pronunciation Example
| type = Example Type
| activity_sector = Example Sector
| specialty = Example Specialty
| competencies = Example Competencies
| formation = Example Education
| employment_field = Example Employment Field
| related_occupation = Related Occupation Example
}}