Difference between revisions of "Template:Steps"

From LFS Manual
Jump to navigationJump to search
(Created page with "<includeonly></includeonly><ol style="list-style: none; margin: 0;"><li><span style="display: inline-block; background: rgb(100,100,100); color: white; border-radius: 50%; wid...")
 
m
Line 1: Line 1:
<includeonly></includeonly><ol style="list-style: none; margin: 0;"><li><span style="display: inline-block; background: rgb(100,100,100); color: white; border-radius: 50%; width: 20px; height: 20px; text-align: center;margin-right: 8px">1</span>first</li><li><span>2</span>second</li></ol><noinclude>{{documentation}}</noinclude>
+
<includeonly></includeonly><ol style="margin: 0;">{{#if:{{{1|}}}|{{/step|1|test}}}}</ol><noinclude>{{documentation}}</noinclude>

Revision as of 15:22, 25 January 2024

    Template Info-Icon.png

    Template documentation

    View - Edit

    Used to compile a set of steps in a visual way. Supports a maximum of 10 steps.

    Usage

    Inline steps

    Markup Renders as
    A paragraph.
    
    {{steps|one|two|three}}
    
    Another paragraph.

    A paragraph.

    1. 1test

    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 with a text that follows up the steps.

    Steps with multiple block elements inside them.

    1. 1test

    Test paragraph with a text that follows up the steps.

    Maximum steps

    The maximum is 10 steps.

    Markup Renders as
    {{steps|one|two|three|four|five|six|seven|eight|nine|ten}}
    1. 1test