Template:Infobox occupation: Difference between revisions

From WikiMD's Wellness Encyclopedia

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
{{Infobox
{| class="infobox" style="width:22em; font-size:90%; border:1px solid #aaa; background-color:#f9f9f9;"
| title = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
|-
| image = {{#if:{{{image|}}}|[[File:{{{image}}}|frameless|alt={{{alt|}}}|{{{caption|}}}]]}} <!-- Non-Lua image handling -->
! colspan="2" style="text-align:center; background-color:lightblue; font-size:110%;" | {{{name|{{PAGENAMEBASE}}}}}
| caption = {{{caption|}}}
{{#if:{{{image|}}}| <!-- Display image only if provided -->
|-
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|frameless|alt={{{alt|}}}|{{{caption|}}}]]
}}
{{#if:{{{caption|}}}| <!-- Display caption only if provided -->
|-
| colspan="2" style="text-align:center;" | ''{{{caption}}}''
}}
{{#if:{{{official_names|}}}| <!-- Display official names only if provided -->
|-
| '''Names'''
| {{{official_names}}}
}}
{{#if:{{{activity_sector|}}}| <!-- Display activity sector only if provided -->
|-
| '''Activity sectors'''
| {{{activity_sector}}}
}}
{{#if:{{{competencies|}}}| <!-- Display competencies only if provided -->
|-
| '''Competencies'''
| {{{competencies}}}
}}
{{#if:{{{formation|}}}| <!-- Display education/formation only if provided -->
|-
| '''Education required'''
| {{{formation}}}
}}
{{#if:{{{employment_field|}}}| <!-- Display fields of employment only if provided -->
|-
| '''Fields of employment'''
| {{{employment_field}}}
}}
{{#if:{{{related_occupation|}}}| <!-- Display related jobs only if provided -->
|-
| '''Related jobs'''
| {{{related_occupation}}}
}}
|}
</includeonly>


<noinclude>
| header1 = {{#if:{{{type|}}}{{{official_names|}}}{{{activity_sector|}}}|Occupation}}
== 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 ===
| label2 = Names
* `name` - Title of the occupation (defaults to page name if not provided).
| data2 = {{{official_names|}}}
* `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 ===
| label3 = {{#if:{{{Synonym|}}}{{{synonym|}}}{{{Synonyms|}}}{{{synonyms|}}} |{{#if:{{{Synonym|}}}{{{synonym|}}}|Synonym|Synonyms}}}}<!-- singular/plural -->
<syntaxhighlight lang="mediawiki">
| data3 = {{{Synonym|}}}{{{synonym|}}}{{{Synonyms|}}}{{{synonyms|}}}
{{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]]
}}
</syntaxhighlight>


[[Category:Infobox templates]]
| label4 = Pronunciation
|  data4 = {{#if:{{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce comment|}}} |<!--
-->{{ubl|1={{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce ref|}}}&#x20;{{{pronounce comment|}}}<!--
    -->|2={{{pronounce 2|}}} }}}}
 
| label5 = {{longitem|Occupation type}}
| data5 = {{{type|}}}
 
| label6 = {{longitem|Activity sectors}}
| data6 = {{{activity_sector|}}}
 
| label7 = {{#if:{{{activity_sector|Health care}}}|Specialty}}
| data7 = {{#if:{{{specialty|}}}{{{Specialty|}}}{{{Speciality|}}}{{{speciality|}}}
|{{{specialty|}}}{{{Specialty|}}}{{{Speciality|}}}{{{speciality|}}} |{{#statements:P1995}} }}
 
| header8 = {{#if:{{{competencies|}}}{{{formation|}}}{{{employment_field|}}}{{{related_occupation|}}}|Description}}
 
| label9 = Competencies
| data9 = {{{competencies|}}}
 
| label10 = {{longitem|Education required}}
| data10 = {{{formation|}}}
 
| label11 = {{longitem|Fields of<br/>employment}}
| data11 = {{{employment_field|}}}
 
| label12 = {{longitem|Related jobs}}
| data12 = {{{related_occupation|}}}
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox occupation with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox occupation]] with unknown parameter "_VALUE_"|ignoreblank=y| activity_sector | alt | caption | competencies | employment_field | formation | image | imagesize | name | official_names | pronounce | Pronounce | pronounce 2 | pronounce comment | pronounce ref | Pronunciation | pronunciation | related_occupation | Speciality | speciality | specialty | Specialty | Synonym | synonym | Synonyms | synonyms | type }}<noinclude>
 
{{documentation}}
</noinclude>
</noinclude>

Revision as of 14:43, 18 December 2024



Names
Pronunciation
Occupation type
Activity sectors
Specialty{{#statements:P1995}}
Competencies
Education required