Template:Sandbox: Difference between revisions

imported>Artturin
No edit summary
No edit summary
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{Template}}{{DISPLAYTITLE:Template:file}}
<noinclude>
The contents of a file.
{{Template}}
{{META Pipe Character}}


== Usage ==
==About==
A ''warning'' box used to report potential danger.


<nowiki>{{file|filename|language|contents}}</nowiki>
==Usage==
Documentation
{{ic|<nowiki>{{Warning|This text should be heeded.}}</nowiki>}}


See documentation about <code>&lt;syntaxhighlight></code> for supported languages.
==Example==


<nowiki>{{file|default.nix|nix|&lt;nowiki>
{{Warning|This text should be heeded.}}
{...}
{
  # Comment
}
&lt;/nowiki>}}</nowiki>


== Example ==
</noinclude><includeonly>{{META Box Red|Warning:|{{{text|{{{1|{{META Error}}}}}}}}}}</includeonly><noinclude>{{Documentation}}
 
</noinclude>
<nowiki>{{file|main.c|c|
#include <stdio.h>
 
main( )
{
        printf("hello, world\n");
}
}}</nowiki>
 
<hr />
{{sandbox|bash}}
<hr />
 
 
 
 
 
 
</noinclude><includeonly><span class="plainlinks nixwiki-template-pkg">[https://search.nixos.org/packages?channel=unstable&show={{urlencode:{{{1}}}}}&size=1&query={{urlencode:{{{1}}}}} {{{1}}}]</span></includeonly>