Difference between revisions of "Template:CH8rDOB"

From Crystal Path
Jump to navigationJump to search
Line 1: Line 1:
{{#if:{{{1|}}}|{{CH8rBirthdate|{{{1}}}}}|}} {{#if:{{{2|}}}|{{{2}}}|}}{{#if:{{{3|}}}|, {{{3}}}|}}<noinclude>
+
{{#if:{{{1|}}}|{{CH8rBirthdate|{{{1}}}}}|}} {{#if:{{{2|}}}|{{{2}}}|}}{{#ifexpr:{{{3|}}}>0|, {{{3}}}|}}<noinclude>
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
{{#if:{{{1|}}}|{{CH8rBirthdate|{{{1}}}}}}} {{#if:{{{2|}}}|{{{2}}}}}{{#if:{{{3|}}}|, {{{3}}}}}
+
{{#if:{{{1|}}}|{{CH8rBirthdate|{{{1}}}}}|}} {{#if:{{{2|}}}|{{{2}}}|}}{{#if:{{{3|}}}|, {{{3}}}|}}
  
 
Break Down
 
Break Down

Revision as of 15:24, 15 April 2011

Expression error: Unexpected > operator.

Usage

{{#if:{{{1|}}}|{{CH8rBirthdate|{{{1}}}}}|}} {{#if:{{{2|}}}|{{{2}}}|}}{{#if:{{{3|}}}|, {{{3}}}|}}

Break Down
{{#if:{{{1|}}}|{{CH8rBirthdate|{{{1}}}}}}} - This is the year
{{#if:{{{2|}}}|{{{2}}}}} - This is the day
{{#if:{{{3|}}}|, {{{3}}}}} - This is the month

This template is used to display birthdates. Input is given as a year, day, and a month as a numerical value - don't use text!

Largely used in the CharInfo templates.