Difference between revisions of "Template:FAIRWiki-Reference template code demo"

m
m
Line 5: Line 5:
 
3) Start only: John Doe, ''Funky Book Title'' (Acme Co.){{#if:{{{end|}}}|, {{{start}}}–{{{end}}}.|{{#if:{{{start|}}}|, {{{start}}}.}}}}
 
3) Start only: John Doe, ''Funky Book Title'' (Acme Co.){{#if:{{{end|}}}|, {{{start}}}–{{{end}}}.|{{#if:{{{start|}}}|, {{{start}}}.}}}}
  
4) Pages (final): John Doe, ''Funky Book Title'' (Acme Co.){{#if:{{{end|}}}|, {{{start}}}–{{{end}}}.|{{#if:{{{start|}}}|, {{{start}}}.}}|{{#if:{{{pages}}}|, {{{pages}}}.}}
+
4) Pages (final): John Doe, ''Funky Book Title'' (Acme Co.){{#if:{{{end|}}}|, {{{start}}}–{{{end}}}.|{{#if:{{{start|}}}|, {{{start}}}.}}
----
+
 
{{#if:{{{start|}}}|Start exists: {{{start}}}|Start does not exist}}
+
'''''Debugging'''''
 +
*{{#if:{{{start|}}}|Start exists: {{{start}}}|Start does not exist}}
 +
*{{#if:{{{end|}}}|End exists: {{{end}}}|End does not exist}}
 +
*{{#if:{{{pages|}}}|Pages exists: {{{pages}}}|Pages does not exist}}

Revision as of 20:01, 22 April 2010

1) Initial: John Doe, Funky Book Title (Acme Co.), {{{start}}}–{{{end}}}.

2) Start and finish: John Doe, Funky Book Title (Acme Co.)

3) Start only: John Doe, Funky Book Title (Acme Co.)

4) Pages (final): John Doe, Funky Book Title (Acme Co.){{#if:|, {{{start}}}–{{{end}}}.|

Debugging

  • Start does not exist
  • End does not exist
  • Pages does not exist