Difference between pages "Template:Variants manual" and "Template:Variants manual/sandbox"

(Difference between pages)
Jump to: navigation, search
Page 1
Page 2
m (Added some comments)
 
 
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#if:{{{1|}}} |<!--
-->{{#if:{{{1|}}} |<!--
 
  ** In case of 'irregular = yes' **
 
   -->{{#ifeq: {{{irregular|no}}} | yes |<!--
   -->{{#ifeq: {{{irregular|no}}} | yes |<!--
     -->[[{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]<!--
     -->[[{{{1}}}|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]<!--
Line 18: Line 15:
     -->}}<!--
     -->}}<!--
     -->|<!--
     -->|<!--
   
    ** In case of standard buildings such as "Loose Storage [II, III, IV]" **
   
     -->{{#ifexpr: {{#ifexist:{{{1}}}|1|0}} and {{#ifeq:{{{skipunmarked|no}}}|yes|0|1}} |<!--
     -->{{#ifexpr: {{#ifexist:{{{1}}}|1|0}} and {{#ifeq:{{{skipunmarked|no}}}|yes|0|1}} |<!--
       -->[[{{{1}}}]]<!--
       -->[[{{{1}}}]]<!--
Line 34: Line 28:
         -->&rbrack;<!--
         -->&rbrack;<!--
       -->}}<!--
       -->}}<!--
     
      ** In case of semi-standard buildings such as "Boiler (Coal) [Gas, Electric]"
     
       -->| {{#if: {{#ifexist: {{{1}}} {{{2}}}|yes}}{{#ifexist: {{{1}}} ({{{2}}})|yes}} |<!--
       -->| {{#if: {{#ifexist: {{{1}}} {{{2}}}|yes}}{{#ifexist: {{{1}}} ({{{2}}})|yes}} |<!--
         -->[[{{{1}}} {{#ifexist: {{{1}}} ({{{2}}})|({{{2}}})|{{{2}}} }}]]<!--
         -->[[{{{1}}} {{#ifexist: {{{1}}} ({{{2}}})|({{{2}}})|{{{2}}} }}]]<!--
Line 49: Line 40:
           -->&rbrack;<!--
           -->&rbrack;<!--
         -->}}<!--
         -->}}<!--
       
        ** Returns error when page of the building is not found **
       
         -->|<span style="color: red;">Template Variants: the page of "{{{1}}}", "{{{1}}} {{{2}}}" or "{{{1}}} ({{{2}}})" is not found in the wiki.</span><!--
         -->|<span style="color: red;">Template Variants: the page of "{{{1}}}", "{{{1}}} {{{2}}}" or "{{{1}}} ({{{2}}})" is not found in the wiki.</span><!--
       -->}}<!--
       -->}}<!--
     -->}}<!--
     -->}}<!--
   -->}}<!--
   -->}}<!--
 
  ** Returns error when parameter {{{1}}} is lacked.
 
   -->|<span style="color: red;">Template Variants: parameter <nowiki>{{{1}}}</nowiki> is not provided.</span><!--
   -->|<span style="color: red;">Template Variants: parameter <nowiki>{{{1}}}</nowiki> is not provided.</span><!--
-->}}</includeonly><noinclude>{{documentation}}</noinclude>
-->}}</includeonly><noinclude>
*Standard
** {{Variants manual/sandbox|Pipe|II|III}}
** {{Variants manual/sandbox|Boiler|Coal|Gas|Electric}}
** {{Variants manual/sandbox|Assembly|Manual|Electric|(Electric) II|Robotic|(Robotic) II}}
** {{Variants manual/sandbox|Captain's Office}}
*Irregular
** {{Variants manual/sandbox|irregular=yes|Maintenance Depot||Maintenance Depot (Basic)|Basic|Maintenance II Depot|II|Maintenance III Depot|III}}
** {{Variants manual/sandbox|Pipe|II|III|sep=,&nbsp;}}
** {{Variants manual/sandbox|Housing|II|III|IV|skipunmarked=yes}}
*Err
** {{Variants manual/sandbox}}
** {{Variants manual/sandbox|Ipsum|II|III}}
</noinclude>