Actions

Template

Character Guide Test: Difference between revisions

From Betamountain.org

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