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:{{{activity_sector|}}}| <!-- Display activity sector only if provided --> | |||
{{#if:{{{activity_sector|}}}|<!-- Display activity sector only if provided --> | |||
|- | |- | ||
| '''Activity sectors''' | | '''Activity sectors''' | ||
| {{{activity_sector}}} | | {{{activity_sector}}} | ||
}} | }} | ||
{{#if:{{{competencies|}}}| <!-- Display competencies only if provided --> | |||
{{#if:{{{competencies|}}}|<!-- Display competencies only if provided --> | |||
|- | |- | ||
| '''Competencies''' | | '''Competencies''' | ||
| {{{competencies}}} | | {{{competencies}}} | ||
}} | }} | ||
{{#if:{{{formation|}}}|<!-- Display education | {{#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 | 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. | ||
* `activity_sector` - Activity sectors of the occupation. | * `activity_sector` - Activity sectors of 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 | {{Infobox Occupation | ||
| name = | | name= Nurse | ||
| image = | | image= British woman tending to a baby.jpg | ||
| caption = | | caption= A British nurse caring for a baby | ||
| official_names = | | 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> | </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]]
}}