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: | ||
{ | <includeonly> | ||
| | {| class="infobox" style="width:22em; font-size:90%; border:1px solid #aaa; background-color:#f9f9f9;" | ||
| | |- | ||
| 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|}}} {{{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> | |||
<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. | |||
=== 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 === | |||
| | <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> | |||
[[Category:Infobox templates]] | |||
</noinclude> | </noinclude> | ||
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
}}