Template:Infobox occupation: Difference between revisions

From WikiMD's Wellness Encyclopedia

CSV import
Tags: mobile edit mobile web edit
 
No edit summary
Line 1: Line 1:
{{Infobox
<includeonly>
| title = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
{| class="infobox" style="width:22em; font-size:90%; border:1px solid #aaa; background-color:#f9f9f9;"
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|alt={{{alt|}}}}}  
|-
| caption = {{{caption|}}}
! colspan="2" style="text-align:center; background-color:lightblue; font-size:110%;" | {{{name|{{PAGENAMEBASE}}}}}
|-
{{#if:{{{image|}}}|<!-- Only display image if provided -->
|-
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|frameless|alt={{{alt|}}}|{{{caption|}}}]]
}}
{{#if:{{{caption|}}}|<!-- Only display caption if provided -->
|-
| colspan="2" style="text-align:center;" | ''{{{caption}}}''
}}
{{#if:{{{official_names|}}}|<!-- Only display official names if provided -->
|-
| '''Names'''
| {{{official_names}}}
}}
{{#if:{{{synonym|}}}{{{synonyms|}}}|<!-- Only display synonyms if provided -->
|-
| '''{{#if:{{{synonym|}}}|Synonym|Synonyms}}'''
| {{{synonym|}}}{{{synonyms|}}}
}}
{{#if:{{{pronounce|}}}|<!-- Only display pronunciation if provided -->
|-
| '''Pronunciation'''
| {{{pronounce}}}{{{pronounce ref|}}}&#x20;{{{pronounce comment|}}}
}}
{{#if:{{{type|}}}|<!-- Only display type if provided -->
|-
| '''Occupation type'''
| {{{type}}}
}}
{{#if:{{{activity_sector|}}}|<!-- Only display activity sector if provided -->
|-
| '''Activity sectors'''
| {{{activity_sector}}}
}}
{{#if:{{{specialty|}}}|<!-- Only display specialty if provided -->
|-
| '''Specialty'''
| {{{specialty|}}}
}}
{{#if:{{{competencies|}}}|<!-- Only display competencies if provided -->
|-
| '''Competencies'''
| {{{competencies}}}
}}
{{#if:{{{formation|}}}|<!-- Only display education required if provided -->
|-
| '''Education required'''
| {{{formation}}}
}}
{{#if:{{{employment_field|}}}|<!-- Only display fields of employment if provided -->
|-
| '''Fields of employment'''
| {{{employment_field}}}
}}
{{#if:{{{related_occupation|}}}|<!-- Only display related jobs if provided -->
|-
| '''Related jobs'''
| {{{related_occupation}}}
}}
|}
</includeonly>


| header1 = {{#if:{{{type|}}}{{{official_names|}}}{{{activity_sector|}}}|Occupation}}
<noinclude>
== 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.


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


| label3 = {{#if:{{{Synonym|}}}{{{synonym|}}}{{{Synonyms|}}}{{{synonyms|}}} |{{#if:{{{Synonym|}}}{{{synonym|}}}|Synonym|Synonyms}}}}<!-- singular/plural -->
=== Example ===
| data3 = {{{Synonym|}}}{{{synonym|}}}{{{Synonyms|}}}{{{synonyms|}}}
<syntaxhighlight lang="mediawiki">
{{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
}}
</syntaxhighlight>


| label4 = Pronunciation
[[Category:Infobox templates]]
|  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|}}}
<!-- Salary entry commented out per discussion on talkpage
| label10 = {{longitem|Average salary}}
| data10 = {{{average_salary|}}}
--->
}}<noinclude>
 
{{documentation}}
</noinclude>
</noinclude>
{{no-index-template}}

Revision as of 14:21, 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 in the final output.

Parameters

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

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
}}