Actions

Template

Character Guide Test: Difference between revisions

From Betamountain.org

mNo edit summary
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
Line 6: Line 6:
| 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>
|-
|-
|{{#if: {{{name|}}} | <b>Name:</b> {{#!:||}} {{{name}}}| }}
{{#if: {{{name|}}}
| {{#!:
| <b>Name</b> || {{{name}}}
|-
|-
|{{#if: {{{name|}}} | <b>Name:</b> {{#!:||}} {{{name}}}<br>{{#!:||-}}| }}
}}
|{{#if: {{{alias|}}} | <b>Alias:</b> {{#!:||}} {{{alias}}}{{#!:||-}}| }}
}}
|{{#if: {{{species|}}} | <b>Species:</b> {{#!:||}} {{{species}}}{{#!:||-}}| }}
{{#if: {{{alias|}}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{name|}}}|else=hiddenStructure}}"
| {{#!:
| '''Name'''
| <b>Alias</b> || {{{alias}}}
| {{{name}}}
|-
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{alias|}}}|else=hiddenStructure}}"
}}
| '''Alias(es)'''
}}
| {{{alias}}}
{{#if: {{{species|}}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{species|}}}|else=hiddenStructure}}"
| {{#!:
| '''Species'''
| <b>Species</b> || {{{species}}}
| {{{species}}}
|-
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{age|}}}|else=hiddenStructure}}"
}}
| '''Age'''
}}
| {{{age}}}
{{#if: {{{age|}}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{status|}}}|else=hiddenStructure}}"
| {{#!:
|'''Status'''
| <b>Age</b> || {{{age}}}
| {{{status}}}
|-
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{education|}}}|else=hiddenStructure}}"
}}
|'''Education'''
}}
| {{{education}}}
{{#if: {{{status|}}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{ability|}}}|else=hiddenStructure}}"
| {{#!:
| '''Special Ability'''
| <b>Status</b> || {{{status}}}
| {{{ability}}}
|-
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{origin|}}}|else=hiddenStructure}}"
}}
| '''Origin'''
}}
| {{{origin}}}
{{#if: {{{education|}}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{death|}}}|else=hiddenStructure}}"
| {{#!:
| '''Death'''
| <b>Education</b> || {{{education}}}
| {{{death}}}
|-
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{parents|}}}|else=hiddenStructure}}"
}}
| '''Parents'''
}}
| {{{parents}}}
{{#if: {{{appearance|}}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{relatives|}}}|else=hiddenStructure}}"
| {{#!:
| '''Relatives'''
| <b>Appearance</b> || {{{appearance}}}
| {{{relatives}}}
|-
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{children|}}}|else=hiddenStructure}}"
}}
| '''Children'''
}}
| {{{children}}}
{{#if: {{{ability|}}}
|- style="vertical-align: top; text-align: left;" class="{{if|test={{{marital status|}}}|else=hiddenStructure}}"
| {{#!:
|style="white-space: nowrap;"|'''Marital Status'''
| <b>Ability</b> || {{{ability}}}
| {{{marital status}}}
|-
}}
}}
{{#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: {{{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.}}

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.