Difference between revisions of "Template:CommandOutputTemplate"

let see how goes
m
(let see how goes)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Template}}
<pre>{{CommandOutputTemplate|color=red|prompt=$|command=command|result=output}}</pre>
{{Documentation|content=
{{CommandOutputTemplate|color=red|prompt=$|command=command|result=output}}
<templatedata>
</noinclude><includeonly><div style="display:block;border-radius:5px;margin-bottom:5px;padding:5px;background-color:black;font-family:monospace;font-size:14px"><span style="color:{{{color}}};font-weight:bold;">{{{prompt}}} </span><span style="color:white;background-color:black;font-weight:bold;">{{{command}}}</span><br/><pre style="color:white;background-color:black;font-weight:bold;">{{{result}}}</pre></div></includeonly>
{
    "description": "",
    "params": {
        "color": {
            "label":"color",
            "description": "The text color for the prompt",
            "type": "string"
        },
        "color": {
            "label":"prompt",
            "description": "The prompt",
            "type": "string"
        },
        "color": {
            "label":"command",
            "description": "The command part of the template",
            "type": "string"
        },
        "output": {
            "label":"command",
            "description": "The command part of the template",
            "type": "string"
        },
    }
}
</templatedata>
}}
</noinclude><includeonly><div style="display:block;border-radius:5px;margin-bottom:5px;padding:5px;background-color:black;font-family:monospace;font-size:14px"><span style="color:{{{color}}};font-weight:bold;">{{{prompt}}} </span><span style="color:white;background-color:black;font-weight:bold;">{{{command}}}</span><br/><span style="color:white;background-color:black;font-weight:bold;">{{<pre style="color:white;background-color:black;border:none;padding:0;margin:0">{{{output}}}</pre>}}</span></div></includeonly>
Moderators, translator
455

edits