Difference between revisions of "User:Lou Montana/Sandbox"

From Bohemia Interactive Community
< Lou Montana
Jump to navigation Jump to search
m (Page cleanup)
(Tag: Replaced)
m (Future Header/Tutorial template)
Line 1: Line 1:
 
[[Category: Sandbox]]
 
[[Category: Sandbox]]
 +
<noinclude>
 +
-----
 +
Future [[Template:Header/Tutorial|Header/Tutorial]] template
 +
</noinclude><includeonly>{{Feature|informative
 +
|
 +
* {{#if:{{{target|}}}
 +
| Target: {{#switch:{{{target}}}
 +
  |0= newcomer
 +
  |1= beginner
 +
  |2= moderate
 +
  |3= advanced
 +
  |4= expert
 +
  |#default= -wrong target defined-
 +
}}
 +
| -no target defined-}}
 +
* {{#if:{{{difficulty|}}}
 +
| Difficulty: {{#switch:{{{difficulty}}}
 +
  |0= easy {{Colorball|green}}
 +
  |1= normal {{Colorball|orange}}
 +
  |2= hard {{Colorball|red}}
 +
  |#default= -wrong difficulty defined-
 +
}}
 +
| -no difficulty defined-}}
 +
{{#if:{{{prerequisites|}}}
 +
|
 +
* Prerequisites:<br>
 +
{{{prerequisites}}}
 +
}}
 +
}}</includeonly><noinclude>{{Doc/Template
 +
|descr= Tutorial header.
 +
|param1= target
 +
|descr1= number in range 0..4: newcomer - beginner - moderate - advanced - expert
 +
|param2= difficulty
 +
|descr2= number in range 0..2: easy - normal - hard
 +
|param3= prerequisites
 +
|descr3= (Optional) free text for prerequisite tutorials/knowledge. make a (sub-)list with <nowiki>**</nowiki> and new lines
 +
|example1= <nowiki>{{Header/Tutorial}}</nowiki>
 +
|result1= {{User:Lou_Montana/Sandbox}}
 +
|example2= <nowiki>{{Header/Tutorial|target=0}}</nowiki>
 +
|result2= {{User:Lou_Montana/Sandbox|target=0}}
 +
|example3= <nowiki>{{Header/Tutorial|target=0|difficulty=0}}</nowiki>
 +
|result3= {{User:Lou_Montana/Sandbox|target=0|difficulty=0}}
 +
|example4= <nowiki>{{Header/Tutorial|target=0|difficulty=1|prerequisites=a prerequisite}}</nowiki>
 +
|result4= {{User:Lou_Montana/Sandbox|target=0|difficulty=1|prerequisites=a prerequisite}}
 +
|example5= <span style="white-space: pre"><nowiki>{{Header/Tutorial|target=0|difficulty=2|prerequisites=** prerequisite 1
 +
** prerequisite 2}}</nowiki></span>
 +
|result5= {{User:Lou_Montana/Sandbox|target=0|difficulty=2|prerequisites=** prerequisite 1
 +
** prerequisite 2}}
 +
}}</noinclude>

Revision as of 16:05, 16 April 2021



Future Header/Tutorial template Tutorial header.

This template is used on these pages.

Usage

{{Lou Montana/Sandbox|target|difficulty|prerequisites}}

  • target: number in range 0..4: newcomer - beginner - moderate - advanced - expert
  • difficulty: number in range 0..2: easy - normal - hard
  • prerequisites: (Optional) free text for prerequisite tutorials/knowledge. make a (sub-)list with ** and new lines
Examples
Code Result
{{Header/Tutorial}}
  • -no target defined-
  • -no difficulty defined-
{{Header/Tutorial|target=0}}
  • Target: newcomer
  • -no difficulty defined-
{{Header/Tutorial|target=0|difficulty=0}}
  • Target: newcomer
  • Difficulty: easy
{{Header/Tutorial|target=0|difficulty=1|prerequisites=a prerequisite}}
  • Target: newcomer
  • Difficulty: normal
  • Prerequisites:
a prerequisite
{{Header/Tutorial|target=0|difficulty=2|prerequisites=** prerequisite 1 ** prerequisite 2}}
  • Target: newcomer
  • Difficulty: hard
  • Prerequisites:
    • prerequisite 1
    • prerequisite 2