Difference between revisions of "Template:Infobox doc"

From dieyoung
Line 12: Line 12:
 
|- style="vertical-align:top;"
 
|- style="vertical-align:top;"
 
{{#if: {{{location<includeonly>| </includeonly>}}} | {{!}} '''Date''' {{!!}} {{{date}}} }}
 
{{#if: {{{location<includeonly>| </includeonly>}}} | {{!}} '''Date''' {{!!}} {{{date}}} }}
|- style="vertical-align:top;"
+
|-
 
! colspan="2" style="background-color:#e6e6e6; padding:5px;" | Related Tasks
 
! colspan="2" style="background-color:#e6e6e6; padding:5px;" | Related Tasks
|- style="vertical-align:top;"
+
|- colspan="2" style="vertical-align:top;"
{{#if:{{{related tasks}}}<includeonly>| colspan="2"</includeonly> | {{{related tasks}}} }}
+
| {{#if: {{{related tasks}}} | {{{related tasks}}} | None }}
 
|-
 
|-
 
! colspan="2" style="background-color:#e6e6e6; padding:5px;" | Unlocked Recipes
 
! colspan="2" style="background-color:#e6e6e6; padding:5px;" | Unlocked Recipes
 
|- style="vertical-align:top;"
 
|- style="vertical-align:top;"
 
| colspan="2" {{!}} {{{unlocked recipes}}}
 
| colspan="2" {{!}} {{{unlocked recipes}}}
 +
|}
 +
 +
{{#if: test string | value if test string is not empty | value if test string is empty (or only white space) }}
 +
{{#if: first parameter | second parameter | third parameter }}
 +
 +
{| class="infobox wikitable floatright" style="margin-left: 10px; font-size:85%; width:350px; clear:right; cellpadding="3"
 +
| rows
 +
{{ #if: {{{category|}}} | '''Category''' }}
 
|}
 
|}
  
 
{{#ifeq: {{PAGENAME}} | Infobox docs | [[Category: Infoboxes]] | [[Category: Documents]] }}
 
{{#ifeq: {{PAGENAME}} | Infobox docs | [[Category: Infoboxes]] | [[Category: Documents]] }}

Revision as of 22:03, 9 July 2020

Infobox doc
Category {{{category}}}
Pages {{{pages}}}
Location {{{location}}}
Author(s) {{{author}}}
Date {{{date}}}
Related Tasks
{{{related tasks}}}
Unlocked Recipes
{{{unlocked recipes}}}

value if test string is not empty second parameter

rows