Template:CharacterInfoBox: Difference between revisions

Template page
No edit summary
No edit summary
Line 6: Line 6:
{{CharacterBox
{{CharacterBox
| FullName=Han Solo
| FullName=Han Solo
| Portrait={{Image|http://www.swaoa-mush.com/resources/assets/wiki.png}}  (if it's a file on another server OR)
| Portrait=HanSolo.png
| Portrait=HanSolo.png (if it's an uploaded [[File:HanSolo.png]] here.)
| Race=Human
| Race=Human
| Sex=Male
| Sex=Male
Line 25: Line 24:
     {{#if: {{{Portrait|}}}
     {{#if: {{{Portrait|}}}
       | {{#ifexist: File:{{{Portrait}}}
       | {{#ifexist: File:{{{Portrait}}}
         | [[File:{{{Portrait}}}|250px]]
         | [[File:{{{Portrait}}}|250px|center|frameless|alt={{{FullName}}}]]
        | {{{Portrait}}}
        | [[File:Default_Profile.png|250px|center|frameless|alt=Default Profile]]
       }}
       }}
       | [[File:Default_Profile.png|250px|Profile Image]]
       | [[File:Default_Profile.png|250px|center|frameless|alt=Default Profile]]
     }}
     }}
   </div>
   </div>
   <hr />
   <hr />
   {{#if: {{{FullName|}}} | <div><b>Full Name:</b> {{{FullName}}}</div>}}{{#if: {{{Title|}}} | <div><b>Title:</b> {{{Title}}}</div>}}{{#if: {{{Race|}}} | <div><b>Race:</b> {{{Race}}}</div>}}{{#if: {{{Sex|}}} | <div><b>Sex:</b> {{{Sex}}}</div>}}{{#if: {{{Occupation|}}} | <div><b>Occupation:</b> {{{Occupation}}}</div>}}{{#if: {{{Profession|}}} | <div><b>Profession:</b> {{{Profession}}}</div>}}{{#if: {{{Homeworld|}}} | <div><b>Homeworld:</b> {{{Homeworld}}}</div>}}{{#if: {{{Organization|}}} | <div><b>Organization:</b> {{{Organization}}}</div>}}{{#if: {{{Ship|}}} | <div><b>Ship:</b> {{{Ship}}}</div>}}
   {{#if: {{{FullName|}}} | <div><b>Full Name:</b> {{{FullName}}}</div>}}{{#if: {{{Title|}}} | <div><b>Title:</b> {{{Title}}}</div>}}{{#if: {{{Race|}}} | <div><b>Race:</b> {{{Race}}}</div>}}{{#if: {{{Sex|}}} | <div><b>Sex:</b> {{{Sex}}}</div>}}{{#if: {{{Occupation|}}} | <div><b>Occupation:</b> {{{Occupation}}}</div>}}{{#if: {{{Profession|}}} | <div><b>Profession:</b> {{{Profession}}}</div>}}{{#if: {{{Homeworld|}}} | <div><b>Homeworld:</b> {{{Homeworld}}}</div>}}{{#if: {{{Organization|}}} | <div><b>Organization:</b> {{{Organization}}}</div>}}{{#if: {{{Ship|}}} | <div><b>Ship:</b> {{{Ship}}}</div>}}
   {{#if: {{{DisableLogs|}}}  
   {{#if: {{{DisableLogs|}}}
     |  
     |
     | <div class="SWAOACharBoxLogs" style="max-height: 200px; overflow: scroll;">
     | <div class="SWAOACharBoxLogs" style="max-height: 200px; overflow: scroll;">
         {{#dpl:resultsheader=<hr/>'''Logs'''<br/>|suppresserrors=true|namespace=Log|ordermethod=firstedit|order=descending|linksto={{PAGENAME}}|format=,*%PAGE%¦%TITLE%\n,|redirects=only}}
         <dpl>
          namespace = Log
          ordermethod = firstedit
          order = descending
          linksto = {{PAGENAME}}
          format = ,* [[%TITLE%|%TITLE%]]
        </dpl>
       </div>
       </div>
   }}
   }}

Revision as of 14:17, 18 May 2024

Character box template!

Use it like so (feel free to delete lines that don't apply to you, except for FullName)

{{CharacterBox
| FullName=Han Solo
| Portrait=HanSolo.png
| Race=Human
| Sex=Male
| Title=General
| Profession=Smuggler (Use this line for your coded Profession)
| Occupation=Rebel (Use this line for whatever you want)
| Homeworld=Corellia
| Organization=Rebel Alliance
| Ship=Millennium Falcon
}}