Actions

Template

Character Guide Test: Difference between revisions

From Betamountain.org

m (Undo revision 3948 by RabbiBob (talk))
mNo edit summary
 
(44 intermediate revisions by the same user not shown)
Line 5: Line 5:
|- class="{{if|test={{{photo|}}}|else=hiddenStructure}}"
|- class="{{if|test={{{photo|}}}|else=hiddenStructure}}"
| colspan="2" style="padding: 1em 0; text-align: center;" | <center>[[Image:{{{photo}}}|thumb|center|240px|{{{1}}}]]</center>
| colspan="2" style="padding: 1em 0; text-align: center;" | <center>[[Image:{{{photo}}}|thumb|center|240px|{{{1}}}]]</center>
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{name|}}}|else=hiddenStructure}}"
|-
| '''Name'''
{{#if: {{{name|}}}
| {{{name}}}
| {{#!:
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{alias|}}}|else=hiddenStructure}}"
| <b>Name</b> || {{{name}}}
| '''Alias(es)'''
|-
| {{{alias}}}
}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{species|}}}|else=hiddenStructure}}"
}}
| '''Species'''
{{#if: {{{alias|}}}
| {{{species}}}
| {{#!:
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{age|}}}|else=hiddenStructure}}"
| <b>Alias</b> || {{{alias}}}
| '''Age'''
|-
| {{{age}}}
}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{status|}}}|else=hiddenStructure}}"
}}
|'''Status'''
{{#if: {{{species|}}}
| {{{status}}}
| {{#!:
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{education|}}}|else=hiddenStructure}}"
| <b>Species</b> || {{{species}}}
|'''Education'''
|-
| {{{education}}}
}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{ability|}}}|else=hiddenStructure}}"
}}
| '''Special Ability'''
{{#if: {{{age|}}}
| {{{ability}}}
| {{#!:
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{origin|}}}|else=hiddenStructure}}"
| <b>Age</b> || {{{age}}}
| '''Origin'''
|-
| {{{origin}}}
}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{death|}}}|else=hiddenStructure}}"
}}
| '''Death'''
{{#if: {{{status|}}}
| {{{death}}}
| {{#!:
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{parents|}}}|else=hiddenStructure}}"
| <b>Status</b> || {{{status}}}
| '''Parents'''
|-
| {{{parents}}}
}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{relatives|}}}|else=hiddenStructure}}"
}}
| '''Relatives'''
{{#if: {{{education|}}}
| {{{relatives}}}
| {{#!:
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{children|}}}|else=hiddenStructure}}"
| <b>Education</b> || {{{education}}}
| '''Children'''
|-
| {{{children}}}
}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{marital status|}}}|else=hiddenStructure}}"
}}
|style="white-space: nowrap;"|'''Marital Status'''
{{#if: {{{appearance|}}}
| {{{marital status}}}
| {{#!:
| <b>Appearance</b> || {{{appearance}}}
|-
}}
}}
{{#if: {{{ability|}}}
| {{#!:
| <b>Ability</b> || {{{ability}}}
|-
}}
}}
{{#if: {{{origin|}}}
| {{#!:
| <b>Origin</b> || {{{origin}}}
|-
}}
}}
{{#if: {{{death|}}}
| {{#!:
| <b>Death</b> || {{{death}}}
|-
}}
}}
{{#if: {{{parents|}}}
| {{#!:
| <b>Parents</b> || {{{parents}}}
|-
}}
}}
{{#if: {{{relatives|}}}
| {{#!:
| <b>Relatives</b> || {{{relatives}}}
|-
}}
}}
{{#if: {{{children|}}}
| {{#!:
| <b>Children</b> || {{{children}}}
|-
}}
}}
{{#if: {{{marital status|}}}
| {{#!:
| <b>Marital Status</b> || {{{marital status}}}
|-
}}
}}
|-
|{{#if: {{{test2|}}} | <b>Test2:</b> {{{test}}}<br> | Parameter 1 is not defined, or is defined but null. It contains only empty string(s) or breaking space(s) etc.}}
|-
|{{#if: {{{test|}}} | <b>Test:</b> {{{test}}}<br> | Parameter 1 is not defined, or is defined but null. It contains only empty string(s) or breaking space(s) etc.}}
|-
|-
|}</includeonly><noinclude>
|}</includeonly><noinclude>

Latest revision as of 12:10, 11 March 2018

Example Code


{{Character Guide
|title=
|photo=
|name=
|alias=
|species=
|age=

|status=
|education=
|appearance=
|ability=

|origin=

|death=
|parents=
|relatives=
|children=
|marital status=
}}

Usage

The "title" option should be for displaying the same text as the article's title; "name" should list the full name of the character.

The "photo" option is to be used in the following way: just add the file name of the uploaded picture, a pipe (|) and the picture caption. For example: ZachJr.jpg|Zach Foxx Jr. The rest is done automagically.