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

      1. 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.