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|}}}| <!-- Display image only 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|}}}|<!-- Display caption only 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|}}}|<!-- Display official names only if provided -->
{{#if:{{{official_names|}}}| <!-- Display official names only if provided -->
|-
|-
| '''Names'''
| '''Names'''
| {{{official_names}}}
| {{{official_names}}}
}}
}}
{{#if:{{{synonym|}}}{{{synonyms|}}}|<!-- Display synonyms only if provided -->
{{#if:{{{activity_sector|}}}| <!-- Display activity sector only if provided -->
|-
| '''{{#if:{{{synonym|}}}|Synonym|Synonyms}}'''
| {{{synonym|}}}{{{synonyms|}}}
}}
{{#if:{{{pronounce|}}}|<!-- Display pronunciation only if provided -->
|-
| '''Pronunciation'''
| {{{pronounce}}} {{{pronounce ref|}}} &#x20; {{{pronounce comment|}}}
}}
{{#if:{{{type|}}}|<!-- Display type only if provided -->
|-
| '''Occupation type'''
| {{{type}}}
}}
{{#if:{{{activity_sector|}}}|<!-- Display activity sector only if provided -->
|-
|-
| '''Activity sectors'''
| '''Activity sectors'''
| {{{activity_sector}}}
| {{{activity_sector}}}
}}
}}
{{#if:{{{specialty|}}}|<!-- Display specialty only if provided -->
{{#if:{{{competencies|}}}| <!-- Display competencies only if provided -->
|-
| '''Specialty'''
| {{{specialty|}}}
}}
{{#if:{{{competencies|}}}|<!-- Display competencies only if provided -->
|-
|-
| '''Competencies'''
| '''Competencies'''
| {{{competencies}}}
| {{{competencies}}}
}}
}}
{{#if:{{{formation|}}}|<!-- Display education required only if provided -->
{{#if:{{{formation|}}}| <!-- Display education/formation only if provided -->
|-
|-
| '''Education required'''
| '''Education required'''
| {{{formation}}}
| {{{formation}}}
}}
}}
{{#if:{{{employment_field|}}}|<!-- Display fields of employment only 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|}}}|<!-- Display related jobs only if provided -->
{{#if:{{{related_occupation|}}}| <!-- Display related jobs only if provided -->
|-
|-
| '''Related jobs'''
| '''Related jobs'''
Line 66: Line 46:
<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.
This template is used to create an infobox for occupation-related articles. Fields that are not provided in the usage will not display.


=== Parameters ===
=== Parameters ===
Line 74: Line 54:
* `caption` - Caption for the image.
* `caption` - Caption for the image.
* `official_names` - Official names of the occupation.
* `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.
* `activity_sector` - Activity sectors of the occupation.
* `specialty` - Specialty related to the occupation.
* `competencies` - Required competencies.
* `competencies` - Required competencies.
* `formation` - Education required for the occupation.
* `formation` - Education or formation required for the occupation.
* `employment_field` - Fields of employment.
* `employment_field` - Fields of employment.
* `related_occupation` - Related jobs.
* `related_occupation` - Related jobs or occupations.


=== Example ===
=== Example ===
<syntaxhighlight lang="mediawiki">
<syntaxhighlight lang="mediawiki">
{{Infobox occupation
{{Infobox Occupation
| name = Example Occupation
| name= Nurse
| image = Example.jpg
| image= British woman tending to a baby.jpg
| caption = Example Caption
| caption= A British nurse caring for a baby
| official_names = Example Official Name
| official_names= Nurse
| synonym = Example Synonym
| activity_sector= Nursing
| pronounce = Pronunciation Example
| competencies=  
| type = Example Type
Caring for general well-being of patients
| activity_sector = Example Sector
| formation=
| specialty = Example Specialty
Qualifications in terms of statutory regulations<br>according to national, state, or<br>provincial legislation in each country
| competencies = Example Competencies
| employment_field=  
| formation = Example Education
*[[Hospital]]
| employment_field = Example Employment Field
*[[Clinic]]
| related_occupation = Related Occupation Example
*[[Laboratory]]
*[[Research]]
*[[Education]]
| related_occupation=
*[[Medicine]]
*[[Glossary of medicine]]
}}
}}
</syntaxhighlight>
</syntaxhighlight>

Revision as of 14:32, 18 December 2024


Documentation

This template is used to create an infobox for occupation-related articles. Fields that are not provided 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.
  • `activity_sector` - Activity sectors of the occupation.
  • `competencies` - Required competencies.
  • `formation` - Education or formation required for the occupation.
  • `employment_field` - Fields of employment.
  • `related_occupation` - Related jobs or occupations.

Example

{{Infobox Occupation
| name= Nurse
| image= British woman tending to a baby.jpg
| caption= A British nurse caring for a baby
| official_names= Nurse
| activity_sector= Nursing
| competencies= 
Caring for general well-being of patients
| formation=
Qualifications in terms of statutory regulations<br>according to national, state, or<br>provincial legislation in each country 
| employment_field= 
*[[Hospital]]
*[[Clinic]]
*[[Laboratory]]
*[[Research]]
*[[Education]]
| related_occupation=
*[[Medicine]]
*[[Glossary of medicine]]
}}