Template:Role infobox: Difference between revisions
m 1 revision imported: merge |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
< | <!-- START OF PADDING AROUND INFO BOX --> | ||
{| border="0" cellpadding="20" width="320px" style="float: right;" | |||
|- | |||
| | |||
<!-- START OF ACTUAL INFO BOX --> | |||
{| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center" | |||
|- | |||
!style="background:#FFDA17;" |'''{{{title1|{{PAGENAME}}}}}''' | |||
|- | |||
| | |||
<!-- BORDER AROUND THE IMAGE --> | |||
{| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; align="center" | |||
|- | |||
!{{{image1|none.png}}} | |||
|- | |||
|}<div style= align="center">{{#if:{{{caption-image1|}}}|{{{caption-image1|}}}}}</div> | |||
<!-- END OF BORDER AROUND IMAGE --> | |||
|- | |||
| | |||
{| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #aaaaaa" | |||
|-valign="top" | |||
{{#if:{{{released|}}} | | |||
!width=100{{!}}Released: | |||
!width=200{{!}}{{{released|''Unknown''}}} | |||
}} | |||
|-valign="top" | |||
{{#if:{{{role_information|}}} | | |||
!width=100{{!}}Role Information: | |||
!width=200{{!}}{{{role_information|''Unknown''}}} | |||
< | }} | ||
|-valign="top" | |||
{{#if:{{{department|}}} | | |||
!width=100{{!}}Department: | |||
!width=200{{!}}{{{department|''Unknown''}}} | |||
}} | |||
|-valign="top" | |||
{{#if:{{{requirements|}}} | | |||
!width=100{{!}}Requirements: | |||
!width=200{{!}}{{{requirements|''Unknown''}}} | |||
}} | |||
|-valign="top" | |||
{{#if:{{{powers|}}} | | |||
!width=100{{!}}Powers: | |||
!width=200{{!}}{{{powers|''Unknown''}}} | |||
}} | |||
|-valign="top" | |||
{{#if:{{{reports_to|}}} | | |||
!width=100{{!}}Reports To: | |||
!width=200{{!}}{{{reports_to|''Unknown''}}} | |||
}} | |||
|-valign="top" | |||
{{#if:{{{duties|}}} | | |||
!width=100{{!}}Duties: | |||
!width=200{{!}}{{{duties|''Unknown''}}} | |||
}} | |||
|-valign="top" | |||
{{#if:{{{salary|}}} | | |||
!width=100{{!}}Salary: | |||
!width=200{{!}}{{{salary|''Unknown''}}} | |||
}} | |||
|- | |||
|} | |||
<!-- END OF FIRST SECTION --> | |||
|} | |||
<!-- END OF ACTUAL INFOBOX --> | |||
|} | |||
<!-- END OF PADDING AROUND INFOBOX --> | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
<div><pre> | |||
{{Role infobox | {{Role infobox | ||
| title1=Example | | title1=Example Role | ||
| image1=Example.jpg | | image1=Example.jpg | ||
| caption-image1=Example | | caption-image1=Example Caption | ||
| released= | | released=January 1, 2025 | ||
| role_information= | | role_information=Oversees security enforcement | ||
| department= | | department=Department of Public Safety | ||
| requirements= | | requirements=Training, Certification | ||
| powers= | | powers=Arrest, Investigation | ||
| reports_to= | | reports_to=Director of Security | ||
| duties= | | duties=Maintain law and order | ||
| salary= | | salary=$75,000 per year | ||
<pre> | }} | ||
</pre></div> | |||
==Usage & Example== | |||
### Notes: | |||
- Use `<br>` or `<br/>` in source mode to add line breaks within the table. | |||
- Leave fields blank if unknown; they will not be displayed. | |||
- The `image1` field requires a valid file extension (`.jpg`, `.png`, etc.). | |||
- **Do not** include `File:` in the `image1` field. | |||
- The title appearing at the top of the infobox will default to the page name if `title1` is not specified. | |||
</ | |||
</noinclude> | </noinclude> | ||
Latest revision as of 02:37, January 31, 2025
{{Role infobox | title1=Example Role | image1=Example.jpg | caption-image1=Example Caption | released=January 1, 2025 | role_information=Oversees security enforcement | department=Department of Public Safety | requirements=Training, Certification | powers=Arrest, Investigation | reports_to=Director of Security | duties=Maintain law and order | salary=$75,000 per year }}
Usage & Example edit source
- Notes:
- Use `
` or `
` in source mode to add line breaks within the table.
- Leave fields blank if unknown; they will not be displayed.
- The `image1` field requires a valid file extension (`.jpg`, `.png`, etc.).
- **Do not** include `File:` in the `image1` field.
- The title appearing at the top of the infobox will default to the page name if `title1` is not specified.