|
|
| (4 intermediate revisions by the same user not shown) |
| 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|}}}|{{{image}}}|{{{caption|}}}}} |
| ! 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:{{{synonym|}}}{{{synonyms|}}}|<!-- Display synonyms only if provided -->
| |
| |-
| |
| | '''{{#if:{{{synonym|}}}|Synonym|Synonyms}}'''
| |
| | {{{synonym|}}}{{{synonyms|}}}
| |
| }}
| |
| {{#if:{{{pronounce|}}}|<!-- Display pronunciation only if provided -->
| |
| |-
| |
| | '''Pronunciation'''
| |
| | {{{pronounce}}} {{{pronounce ref|}}}   {{{pronounce comment|}}}
| |
| }}
| |
| {{#if:{{{type|}}}|<!-- Display type only if provided -->
| |
| |-
| |
| | '''Occupation type'''
| |
| | {{{type}}}
| |
| }}
| |
| {{#if:{{{activity_sector|}}}|<!-- Display activity sector only if provided -->
| |
| |-
| |
| | '''Activity sectors'''
| |
| | {{{activity_sector}}}
| |
| }}
| |
| {{#if:{{{specialty|}}}|<!-- Display specialty only if provided -->
| |
| |-
| |
| | '''Specialty'''
| |
| | {{{specialty|}}}
| |
| }}
| |
| {{#if:{{{competencies|}}}|<!-- Display competencies only if provided -->
| |
| |-
| |
| | '''Competencies'''
| |
| | {{{competencies}}}
| |
| }}
| |
| {{#if:{{{formation|}}}|<!-- Display education required 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 left blank 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.
| |
| * `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 === | | | label3 = {{#if:{{{Synonym|}}}{{{synonym|}}}{{{Synonyms|}}}{{{synonyms|}}} |{{#if:{{{Synonym|}}}{{{synonym|}}}|Synonym|Synonyms}}}}<!-- singular/plural --> |
| <syntaxhighlight lang="mediawiki">
| | | data3 = {{{Synonym|}}}{{{synonym|}}}{{{Synonyms|}}}{{{synonyms|}}} |
| {{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]] | | | label4 = Pronunciation |
| | | data4 = {{#if:{{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce comment|}}} |<!-- |
| | -->{{ubl|1={{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce ref|}}} {{{pronounce comment|}}}<!-- |
| | -->|2={{{pronounce 2|}}} }}}} |
| | |
| | | label5 = {{longitem|Occupation type}} |
| | | data5 = {{{type|}}} |
| | |
| | | label6 = {{longitem|Activity sectors}} |
| | | data6 = {{{activity_sector|}}} |
| | |
| | | label7 = Specialty |
| | | data7 = {{#if:{{{specialty|}}}{{{Specialty|}}}{{{Speciality|}}}{{{speciality|}}} |
| | | {{{specialty|}}}{{{Specialty|}}}{{{Speciality|}}}{{{speciality|}}} |
| | | <!-- Hide field if empty --> |
| | }} |
| | |
| | | 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> |