Difference between revisions of "Template:Character"

From AIMux
Jump to: navigation, search
 
(124 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>{{Character
 
<pre>{{Character
|Background=
+
 
|Personality=
+
|Character Image=
|Powers=
+
|Title Font=
|Advantages=
 
|Disadvantages=
 
 
|Full Name=
 
|Full Name=
 
|Codename=
 
|Codename=
Line 17: Line 15:
 
|Occupation=
 
|Occupation=
 
|Actor=
 
|Actor=
|Character Image=
+
|Background=
 +
|Personality=
 +
|Powers=
 +
|Advantages=
 +
|Disadvantages=
 +
|Fun Fact=
 +
 
 
}}</pre>
 
}}</pre>
Edit the page to see the template text.</noinclude><includeonly>__NOTOC__{{DISPLAYTITLE:<span style="position: absolute; clip: rect(0px 0px 0px 0px); clip: rect(0px, 0px, 0px, 0px);">{{FULLPAGENAME}}</span>}}<div class=title><center>{{PAGENAME}}</center></div>
+
Edit the page to see the template text.</noinclude><includeonly>__NOTOC__{{DISPLAYTITLE:<span style="position: absolute; clip: rect(0px 0px 0px 0px); clip: rect(0px, 0px, 0px, 0px);">{{FULLPAGENAME}}</span>}}<div class=title{{{Title Font|}}}><center>{{PAGENAME}}</center></div>
 
{{#invoke: Sidebar | sidebar
 
{{#invoke: Sidebar | sidebar
  
| topimage = {{#switch: {{#len:{{{Character Image|}}} }} | 0 = | [[File:{{{Character Image|}}}|100px|{{PAGENAME}}]] }}
+
| topimage = {{#switch: {{#len:{{{Character Image|}}} }} | 0 = | [[File:{{{Character Image|}}}|border|175x225px|Alt=file not found|{{PAGENAME}}]] }}
| outertitleclass = title
+
| class = sidebar
| class =  
+
| style =  
| style = body
 
 
| name = {{PAGENAME}}
 
| name = {{PAGENAME}}
| outertitle = {{PAGENAME}}
+
| headingstyle = sidebar-headings
| headingstyle =  
 
 
| contentstyle =  
 
| contentstyle =  
  
 
| above = Statistics
 
| above = Statistics
| aboveclass = navbox-title
+
| aboveclass = sidebar-title
 +
 
 +
| headingclass = sidebar-headings
 +
| heading1style = sidebar-heading1
  
 
| heading1 = {{#switch: {{#len:{{{Full Name|}}} }} | 0 = | Full Name }}
 
| heading1 = {{#switch: {{#len:{{{Full Name|}}} }} | 0 = | Full Name }}
 
| content1 = {{{Full Name|}}}
 
| content1 = {{{Full Name|}}}
  
| heading2 = {{#switch: {{#len:{{{Age|}}} }} | 0 = | Age }}
+
| heading2 = {{#switch: {{#len:{{{Codename|}}} }} | 0 = | Codename }}
| content2 = {{{Age|}}}
+
| content2 = {{{Codename|}}}
  
| heading3 = {{#switch: {{#len:{{{Gender|}}} }} | 0 = | Gender }}
+
| heading3 = {{#switch: {{#len:{{{Age|}}} }} | 0 = | Age }}
| content3 = [[Gender::{{{Gender|}}}]]
+
| content3 = {{{Age|}}}
  
| heading4 = {{#switch: {{#len:{{{Occupation|}}} }} | 0 = | Occupation }}
+
| heading4 = {{#switch: {{#len:{{{Origin|}}} }} | 0 = | Origin }}
| content4 = {{{Occupation|}}}
+
| content4 = {{{Origin|}}}
  
| heading5 = {{#switch: {{#len:{{{Affiliation|}}} }} | 0 = | Affiliation }}
+
| heading5 = {{#switch: {{#len:{{{Type|}}} }} | 0 = | Type }}
| content5 = {{#switch:{{#len:{{{Affiliation|}}}}} | 0 = }} {{#arraymap:{{{Affiliation|}}}|,|x|[[Affiliation::x]]}}
+
| content5 = [[Type::{{{Type|}}}]]
  
| heading6 = {{#switch: {{#len:{{{City|}}} }} | 0 = | City }}
+
| heading6 = {{#switch: {{#len:{{{Legal Status|}}} }} | 0 = | Legal Status }}
| content6 = [[City::{{{City|}}}]]
+
| content6 = [[Legal Status::{{{Legal Status|}}}]]
  
| heading7 = {{#switch: {{#len:{{{Legal Status|}}} }} | 0 = | Legal Status }}
+
| heading7 = {{#switch: {{#len:{{{City|}}} }} | 0 = | City }}
| content7 = [[Legal Status::{{{Legal Status|}}}]]
+
| content7 = [[City::{{{City|}}}]]
  
| heading8 = {{#switch: {{#len:{{{Type|}}} }} | 0 = | Type }}
+
| heading8 = {{#switch: {{#len:{{{Affiliation|}}} }} | 0 = | Affiliation }}
| content8 = [[Type::{{{Type|}}}]]
+
| content8 = {{#switch:{{#len:{{{Affiliation|}}}}} | 0 = }} {{#arraymap:{{{Affiliation|}}}|,|x|[[Affiliation::x]]}}
  
| heading9 =
+
| heading9 = {{#switch: {{#len:{{{Occupation|}}} }} | 0 = | Occupation }}
| content9 =  
+
| content9 = {{{Occupation|}}}
  
 
| heading10 = {{#switch: {{#len:{{{Actor|}}} }} | 0 = | Actor }}
 
| heading10 = {{#switch: {{#len:{{{Actor|}}} }} | 0 = | Actor }}
 
| content10 = [[Actor::{{{Actor|}}}]]
 
| content10 = [[Actor::{{{Actor|}}}]]
 
  
 
| navbar = off
 
| navbar = off
Line 69: Line 73:
 
  }}
 
  }}
  
{{#switch: {{#len:{{{Background|}}} }} | 0 = | {{=}}{{=}}Background{{=}}{{=}} }}
+
{{#tag: tabber|
{{{Background}}}
+
{{#if: {{#ask: [[Featuring::{{PAGENAME}}]] [[Year::{{CURRENTYEAR}}]] [[Month::{{CURRENTMONTH}}]] [[FlashBack::false]] }} | Current Month's Logs={{#ask: [[Featuring::{{PAGENAME}}]] [[Year::{{CURRENTYEAR}}]] [[Month::{{CURRENTMONTH}}]] [[FlashBack::false]] | format{{=}}ul | class{{=}}rplogs | sort=FullDate, LogTitle}} | }}
<br>
+
{{!}}-{{!}}
{{#switch: {{#len:{{{Personality|}}} }} | 0 = | {{=}}{{=}}Personality{{=}}{{=}} }}
+
{{#if: {{#ask: [[Featuring::{{PAGENAME}}]] [[Year::{{CURRENTYEAR}}]] [[Month::<<{{CURRENTMONTH}}]] [[FlashBack::false]]  }} | Previous Month's Logs={{#ask: [[Featuring::{{PAGENAME}}]] [[Year::{{CURRENTYEAR}}]] [[Month::<<{{CURRENTMONTH}}]] [[FlashBack::false]]  | format{{=}}ul | class{{=}}rplogs | sort=FullDate, LogTitle}} | }}
{{{Personality}}}
+
{{!}}-{{!}}
<br>
+
{{#if: {{#ask: [[Featuring::{{PAGENAME}}]] [[Year::<<{{CURRENTYEAR}}]] [[FlashBack::false]]  }} | Logs From Previous Years={{#ask:[[Featuring::{{PAGENAME}}]] [[Year::<<{{CURRENTYEAR}}]] [[FlashBack::false]] | format{{=}}ul | class{{=}}rplogs | sort=FullDate, LogTitle}} | }}
{{#switch: {{#len:{{{Advantages|}}} }} | 0 = | {{=}}{{=}}Advantages{{=}}{{=}} }}
+
{{!}}-{{!}}
{{{Advantages}}}
+
{{#if: {{#ask: [[Featuring::{{PAGENAME}}]] [[FlashBack::true]] }} | Flashback Logs={{#ask: [[Featuring::{{PAGENAME}}]] [[FlashBack::true]] | format{{=}}ul | class{{=}}rplogs | sort=FullDate, LogTitle}} | }}
<br>
+
}}
{{#switch: {{#len:{{{Disadvantages|}}} }} | 0 = | {{=}}{{=}}Disadvantages{{=}}{{=}} }}
 
{{{Disadvantages}}}
 
<br>
 
  
==RP Logs==
 
<center>
 
{| class="wikitable mw-collapsible" width="95% " background-color=#F2F465
 
|-
 
! Current Month
 
|-
 
| align="left"| {{#ask: [[Featuring::{{PAGENAME}}]] [[Year::{{CURRENTYEAR}}]] [[Month::{{CURRENTMONTH}}]]
 
| format=ul
 
| sort=FullDate, LogTitle
 
| columns=3
 
| limit=100
 
| default=Logs for this month are forthcoming.
 
|}}
 
|}
 
  
{| class="wikitable mw-collapsible mw-collapsed" width="95%"
+
{{#tag: tabber|
|-
+
{{#if: {{{Background|}}} | Background{{=}}<p></p>{{{Background|}}} | }}
! Previous Months
+
{{!}}-{{!}}
|-
+
{{#if: {{{Personality|}}} | Personality{{=}}<p></p>{{{Personality|}}} | }}
| align="left"| {{#ask: [[Featuring::{{PAGENAME}}]] [[Year::<{{CURRENTYEAR}}]] [[Month::<<{{CURRENTMONTH}}]]
+
{{!}}-{{!}}
 
+
{{#if: {{{Powers|}}} | Powers{{=}}<p></p>{{{Powers|}}} | }}
| format=ul
+
{{!}}-{{!}}
| sort=FullDate, LogTitle
+
{{#if: {{{Advantages|}}} | Advantages{{=}}<p></p>{{{Advantages|}}} | }}
| columns=3
+
{{!}}-{{!}}
| limit=100
+
{{#if: {{{Disadvantages|}}} | Disadvantages{{=}}<p></p>{{{Disadvantages|}}} | }}
| default=There are no logs for this character prior to the current month.
+
}}
|}}
+
<br>
|}
 
 
 
<noinclude>
 
{| class="wikitable mw-collapsible mw-collapsed" width="95%"
 
|-
 
! Previous Years
 
|-
 
| align="left"| {{#ask: [[Featuring::{{PAGENAME}}]] [[Year::2017]]}}  
 
  
| format=ul
+
<div class=factoid-header>{{#switch: {{#len:{{{Fun Fact|}}} }} | 0 = | '''Fun Fact''': }}</div><br><div class=factoid>{{{Fun Fact|}}}</div>
| sort=FullDate, LogTitle
 
| columns=3
 
| limit=100
 
| default=There are no logs for this character prior to the current year.
 
|}}
 
|}
 
</noinclude>
 
  
  

Latest revision as of 17:23, 25 April 2020

This is the "Character" template. It should be called in the following format:

{{Character

|Character Image=
|Title Font=
|Full Name=
|Codename=
|Age=
|Origin=
|Type=
|Legal Status=
|City=
|Affiliation=
|Occupation=
|Actor=
|Background=
|Personality=
|Powers=
|Advantages=
|Disadvantages=
|Fun Fact=

}}

Edit the page to see the template text.