Template:CharacterInfoBox: Difference between revisions

Template page
No edit summary
No edit summary
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
Character box template!
Use it like so (feel free to delete lines that don't apply to you, except for FullName)
<pre>
{{CharacterBox
| 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 (if it's an uploaded [[File:HanSolo.png]] here.)
| 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
}}
</pre>
</noinclude>
<includeonly>__NOTOC__
<includeonly>__NOTOC__
<div class="infobox" style="width: 250px; float: right; border: solid 2px white; margin: 5px; padding: 5px;">
<div class="infobox" style="width: 300px; float: right; border: solid 2px darkgrey; margin: 10px; padding: 5px; background-color: #282828; clear: right;">
   <div style="text-align: center;">
   <div style="text-align: center;">
     {{#if: {{{Portrait|}}}
     {{#if: {{{Portrait|}}}
       | {{#ifexist: File:{{{Portrait}}}
       | {{#ifexist: File:{{{Portrait}}}| [[File:{{{Portrait}}}|300px|center|frameless|alt={{{FullName}}}]]
        | [[File:{{{Portrait}}}|250px|center|frameless|alt={{{FullName}}}]]
         | [[File:Default_Profile.png|300px|center|frameless|alt=Default Profile]]
         | [[File:Default_Profile.png|250px|center|frameless|alt=Default Profile]]
       }}
       }}
       | [[File:Default_Profile.png|250px|center|frameless|alt=Default Profile]]
       | [[File:Default_Profile.png|300px|center|frameless|alt=Default Profile]]
     }}
     }}
   </div>
   </div>
   <div style="text-align: center; font-size: 1.5em; font-family: 'sci-fi-font';">{{{FullName}}}</div>
   <div class="sci-fi-font" style="text-align: center; font-size: 1.5em; color: #f0f0f0;">{{{FullName}}}</div>
   <hr />
   <hr style="border-color: #333333; margin-top: 10px; margin-bottom: 10px;"/>
   {{#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>}}
   <div style="color: #f0f0f0;">
   {{#if: {{{DisableLogs|}}}
{{#if: {{{Species|}}} | <div><b>Species:</b> {{{Species}}}</div>}}{{#if: {{{Sex|}}} | <div><b>Sex:</b> {{{Sex}}}</div>}}{{#if: {{{Title|}}} | <div><b>Title:</b> {{{Title}}}</div>}}{{#if: {{{Occupation|}}} | <div><b>Occupation:</b> {{{Occupation}}}</div>}}{{#if: {{{Homeworld|}}} | <div><b>Homeworld:</b> {{{Homeworld}}}</div>}}{{#if: {{{Residence|}}} | <div><b>Residence:</b> {{{Residence}}}</div>}}{{#if: {{{Group|}}} | <div><b>Group:</b> {{{Group}}}</div>}}
    |
   </div>
    | <div class="SWAOACharBoxLogs" style="max-height: 200px; overflow: scroll;">
        <dpl>
          namespace = Log
          ordermethod = firstedit
          order = descending
          linksto = {{PAGENAME}}
          format = ,* [[%TITLE%|%TITLE%]]
        </dpl>
      </div>
  }}
</div>
</div>
[[Category:Characters]]
</includeonly>
</includeonly>

Latest revision as of 04:14, 20 May 2024