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|}}}|<!-- | |||
|- | |- | ||
| 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|}}}|<!-- | {{#if:{{{caption|}}}|<!-- Display caption only if provided --> | ||
|- | |- | ||
| colspan="2" style="text-align:center;" | ''{{{caption}}}'' | | colspan="2" style="text-align:center;" | ''{{{caption}}}'' | ||
}} | }} | ||
{{#if:{{{official_names|}}}|<!-- | {{#if:{{{official_names|}}}|<!-- Display official names only if provided --> | ||
|- | |- | ||
| '''Names''' | | '''Names''' | ||
| {{{official_names}}} | | {{{official_names}}} | ||
}} | }} | ||
{{#if:{{{synonym|}}}{{{synonyms|}}}|<!-- | {{#if:{{{synonym|}}}{{{synonyms|}}}|<!-- Display synonyms only if provided --> | ||
|- | |- | ||
| '''{{#if:{{{synonym|}}}|Synonym|Synonyms}}''' | | '''{{#if:{{{synonym|}}}|Synonym|Synonyms}}''' | ||
| {{{synonym|}}}{{{synonyms|}}} | | {{{synonym|}}}{{{synonyms|}}} | ||
}} | }} | ||
{{#if:{{{pronounce|}}}|<!-- | {{#if:{{{pronounce|}}}|<!-- Display pronunciation only if provided --> | ||
|- | |- | ||
| '''Pronunciation''' | | '''Pronunciation''' | ||
| {{{pronounce}}}{{{pronounce ref|}}} {{{pronounce comment|}}} | | {{{pronounce}}} {{{pronounce ref|}}}   {{{pronounce comment|}}} | ||
}} | }} | ||
{{#if:{{{type|}}}|<!-- | {{#if:{{{type|}}}|<!-- Display type only if provided --> | ||
|- | |- | ||
| '''Occupation type''' | | '''Occupation type''' | ||
| {{{type}}} | | {{{type}}} | ||
}} | }} | ||
{{#if:{{{activity_sector|}}}|<!-- | {{#if:{{{activity_sector|}}}|<!-- Display activity sector only if provided --> | ||
|- | |- | ||
| '''Activity sectors''' | | '''Activity sectors''' | ||
| {{{activity_sector}}} | | {{{activity_sector}}} | ||
}} | }} | ||
{{#if:{{{specialty|}}}|<!-- | {{#if:{{{specialty|}}}|<!-- Display specialty only if provided --> | ||
|- | |- | ||
| '''Specialty''' | | '''Specialty''' | ||
| {{{specialty|}}} | | {{{specialty|}}} | ||
}} | }} | ||
{{#if:{{{competencies|}}}|<!-- | {{#if:{{{competencies|}}}|<!-- Display competencies only if provided --> | ||
|- | |- | ||
| '''Competencies''' | | '''Competencies''' | ||
| {{{competencies}}} | | {{{competencies}}} | ||
}} | }} | ||
{{#if:{{{formation|}}}|<!-- | {{#if:{{{formation|}}}|<!-- Display education required only if provided --> | ||
|- | |- | ||
| '''Education required''' | | '''Education required''' | ||
| {{{formation}}} | | {{{formation}}} | ||
}} | }} | ||
{{#if:{{{employment_field|}}}|<!-- | {{#if:{{{employment_field|}}}|<!-- Display fields of employment only if provided --> | ||
|- | |- | ||
| '''Fields of employment''' | | '''Fields of employment''' | ||
| {{{employment_field}}} | | {{{employment_field}}} | ||
}} | }} | ||
{{#if:{{{related_occupation|}}}|<!-- | {{#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 | 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 | * `name` - Title of the occupation (defaults to page name if not provided). | ||
* `image` - | * `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 | * `official_names` - Official names of the occupation. | ||
* `synonym`, `synonyms` - Alternative names or synonyms | * `synonym`, `synonyms` - Alternative names or synonyms. | ||
* `pronounce` - Pronunciation of the | * `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 | * `specialty` - Specialty related to the occupation. | ||
* `competencies` - Required competencies | * `competencies` - Required competencies. | ||
* `formation` - Education required for the occupation. | * `formation` - Education required for the occupation. | ||
* `employment_field` - Fields of employment | * `employment_field` - Fields of employment. | ||
* `related_occupation` - Related | * `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
}}