Difference between revisions of "Template:Steps/doc"

From LFS Manual
Jump to navigationJump to search
(10 steps)
(use markup template)
Line 5: Line 5:
 
=== Inline steps ===
 
=== Inline steps ===
  
A paragraph.
+
{{markup|
 +
<nowiki>A paragraph.
  
 
{{steps|one|two|three}}
 
{{steps|one|two|three}}
  
Another paragraph.
+
Another paragraph.</nowiki>|A paragraph.
 +
 
 +
{{steps|one|two|three}}
 +
 
 +
Another paragraph.}}<!-- Template:Mra -->
  
 
=== Steps with multiple block elements ===
 
=== Steps with multiple block elements ===
  
Steps with multiple block elements inside them.
+
{{markup|
 +
<nowiki>Steps with multiple block elements inside them.
 +
 
 +
{{steps
 +
| Do this first.
 +
| Then, do this.
 +
<p>And also this. This is still step 2.</p>
 +
<p>[[image:Autocross Drag Strip.jpg|Replays]]</p>
 +
<p>Continuing step 2.</p>
 +
 
 +
| Finally, magic.
 +
}}
 +
 
 +
Test paragraph.</nowiki>|Steps with multiple block elements inside them.
  
 
{{steps
 
{{steps
Line 25: Line 43:
 
}}
 
}}
  
Test paragraph.
+
Test paragraph.}}<!-- Template:Mra -->
  
 
=== Maximum steps ===
 
=== Maximum steps ===
Line 31: Line 49:
 
The maximum is 10 steps.
 
The maximum is 10 steps.
  
{{steps|one|two|three|four|five|six|seven|eight|nine|ten}}
+
{{markup|
 +
<nowiki>{{steps|one|two|three|four|five|six|seven|eight|nine|ten}}</nowiki>|{{steps|one|two|three|four|five|six|seven|eight|nine|ten}}}}<!-- Template:Mra -->
  
 
<includeonly>
 
<includeonly>
 
[[Category:Text formatting templates]]
 
[[Category:Text formatting templates]]
 
</includeonly>
 
</includeonly>

Revision as of 16:20, 6 June 2024

Information icon4.png This is a documentation subpage for Template:Steps.

It may contain usage information, categories and other content that is not part of the original page.

Usage

Inline steps

Markup Renders as
A paragraph.

{{steps|one|two|three}}

Another paragraph.

A paragraph.

  1. 1one
  2. 2two
  3. 3three

Another paragraph.

Steps with multiple block elements

Markup Renders as
Steps with multiple block elements inside them.

{{steps
| Do this first.
| Then, do this.
<p>And also this. This is still step 2.</p>
<p>[[image:Autocross Drag Strip.jpg|Replays]]</p>
<p>Continuing step 2.</p>

| Finally, magic.
}}

Test paragraph.

Steps with multiple block elements inside them.

  1. 1 Do this first.
  2. 2 Then, do this.

    And also this. This is still step 2.

    Replays

    Continuing step 2.

  3. 3 Finally, magic.

Test paragraph.

Maximum steps

The maximum is 10 steps.

Markup Renders as
{{steps|one|two|three|four|five|six|seven|eight|nine|ten}}
  1. 1one
  2. 2two
  3. 3three
  4. 4four
  5. 5five
  6. 6six
  7. 7seven
  8. 8eight
  9. 9nine
  10. 10ten