User:Dubiousjim/Cheatsheet: Difference between revisions
Dubiousjim (talk | contribs) (Tweaks) |
Dubiousjim (talk | contribs) (Tweaks) |
||
Line 27: | Line 27: | ||
Here is <nowiki>{{Cmd|a command to try}}</nowiki>: {{Cmd|a command to try}}. | Here is <nowiki>{{Cmd|a command to try}}</nowiki>: {{Cmd|{{Cmd|a command to try}}}}. | ||
:<nowiki>:</nowiki>Simply indented text. | :<nowiki>:</nowiki>Simply indented text. | ||
Line 43: | Line 43: | ||
= Notification boxes = | = Notification boxes = | ||
<code><nowiki>{{Tip|Write Your Tip Here.}}</nowiki></code> | <code><nowiki>{{Tip|Write Your Tip Here.}}</nowiki></code> | ||
{{Tip|Write Your Tip Here.}} | {{Tip|<nowiki>{{Tip|Write Your Tip Here.}}</nowiki>}} | ||
<code><nowiki>{{Note|Write Your Note Here.}}</nowiki></code> | <code><nowiki>{{Note|Write Your Note Here.}}</nowiki></code> | ||
{{Note|Write Your Note Here.}} | {{Note|Write Your Note Here.}} | ||
Line 52: | Line 52: | ||
For other boxes, see [[Template:Box]] | For other boxes, see [[Template:Box]] | ||
<nowiki>{{Draft|Message.}}</nowiki> produces: | |||
{{Draft|Message.}} | |||
<nowiki>{{Obsolete|Message.}}</nowiki> produces: | <nowiki>{{Obsolete|Message.}}</nowiki> produces: | ||
{{Obsolete|Message.}} | {{Obsolete|Message.}} | ||
= Downloads = | = Downloads = | ||
In general when pointing to Alpine Linux downloads stick with the '''[[Downloads|Downloads Page]]''', but if you by any meaning will need to include direct download information, do so by using one of below. | In general when pointing to Alpine Linux downloads stick with the '''[[Downloads|Downloads Page]]''', but if you by any meaning will need to include direct download information, do so by using one of below. | ||
{| cellspacing=" | {| cellspacing="3" | ||
|- valign="top" | |- valign="top" | ||
|width=" | |width="33%" class="ClassForFutureCSS" | | ||
<div style="padding: .4em .9em .1em"> | <div style="padding: .4em .9em .1em"> | ||
<p style="text-align:center"><code><nowiki>{{Download|alpine}}</nowiki></code></p> | <p style="text-align:center"><code><nowiki>{{Download|alpine}}</nowiki></code></p> | ||
For standard</div> | For standard</div> | ||
|width=" | |width="33%" class="ClassForFutureCSS" | | ||
<div style="padding: .4em .9em .1em"> | <div style="padding: .4em .9em .1em"> | ||
<p style="text-align:center"><code><nowiki>{{Download|alpine-mini}}</nowiki></code></p> | <p style="text-align:center"><code><nowiki>{{Download|alpine-mini}}</nowiki></code></p> | ||
For mini</div> | For mini</div> | ||
|width=" | |width="33%" class="ClassForFutureCSS" | | ||
<div style="padding: .4em .9em .1em"> | <div style="padding: .4em .9em .1em"> | ||
<p style="text-align:center"><code><nowiki>{{DownloadDev|alpine}}</nowiki></code></p> | <p style="text-align:center"><code><nowiki>{{DownloadDev|alpine}}</nowiki></code></p> | ||
For standard</div> | |||
|- valign="top" | |- valign="top" | ||
| <div style="padding: .4em .9em .9em"><center>{{Download|alpine}}</center></div> | | <div style="padding: .4em .9em .9em"><center>{{Download|alpine}}</center></div> | ||
| <div style="padding: .4em .9em .9em"><center>{{Download|alpine-mini}}</center></div> | | <div style="padding: .4em .9em .9em"><center>{{Download|alpine-mini}}</center></div> | ||
| <div style="padding: .4em .9em .9em"><center>{{DownloadDev|alpine}}</center></div> | | <div style="padding: .4em .9em .9em"><center>{{DownloadDev|alpine}}</center></div> | ||
|} | |} | ||
Line 91: | Line 86: | ||
:{{#latestalp:alpine|url}} | :{{#latestalp:alpine|url}} | ||
*<code><nowiki>{{#latestalp:alpine-mini|url}}</nowiki></code> will give you latest download url for Alpine Linux mini:<br/> | *<code><nowiki>{{#latestalp:alpine-mini|url}}</nowiki></code> will give you latest download url for Alpine Linux mini:<br/> | ||
:{{#latestalp:alpine|url}} | :{{#latestalp:alpine|url}} | ||
<big>'''Example:'''</big><br/> | <big>'''Example:'''</big><br/> | ||
Start from <nowiki>[{{#latestalp:alpine|url}}</nowiki> Downloading latest Alpine Linux Standard], than continue ... | Start from <nowiki>[{{#latestalp:alpine|url}}</nowiki> Downloading latest Alpine Linux Standard], than continue ... | ||
'''Will produce:'''<br/> | '''Will produce:'''<br/> |
Revision as of 10:24, 4 March 2012
Markup
== Heading 2 ==
Here is ''Italic text'' and here is '''Bold text'''.
Here is <code>code-style text & stuff; markup is still processed.
</code>.
Here is {{File|/a/path/name}}: Template:File.
Here is [[Internal pagetitle|an internal pagetitle]]: an internal pagetitle.
Here is [http://www.example.org/ an external link]: an external link.
Here is an Alpine Issue link {{Issue|279}}: #279.
--~~~~ gives a signature and timestamp: --Dubiousjim 10:00, 4 March 2012 (UTC)
Here is one line, followed by <br />
and another line.
Here is <!-- a comment -->.
Here is {{Cmd|a command to try}}:
a command to try
.
- :Simply indented text.
Here is a <pre>-formatted block. Markup is still processed and only the first leading space is suppressed.
- Here is a numbered list item.
- Here is a bulleted list item.
{{Gloss|item|Body text}} produces:
- item
- Body text
Notification boxes
{{Tip|Write Your Tip Here.}}
{{Note|Write Your Note Here.}}
{{Warning|Write Your Warning Here.}}
{{Todo|Write Your Todo-notes Here.}}
For other boxes, see Template:Box
{{Draft|Message.}} produces:
This material is work-in-progress ... Message. |
{{Obsolete|Message.}} produces:
This material is obsolete ... Message. (Discuss) |
Downloads
In general when pointing to Alpine Linux downloads stick with the Downloads Page, but if you by any meaning will need to include direct download information, do so by using one of below.
|
|
|
Links
{{#latestalp:alpine|url}}
will give you latest download url for Alpine Linux Standard:
- {{#latestalp:alpine|url}}
{{#latestalp:alpine-mini|url}}
will give you latest download url for Alpine Linux mini:
- {{#latestalp:alpine|url}}
Example:
Start from [{{#latestalp:alpine|url}} Downloading latest Alpine Linux Standard], than continue ...
Will produce:
Start from [{{#latestalp:alpine|url}} Downloading latest Alpine Linux Standard], than continue ...
Making New Templates
In Template:Foo:
<noinclude>{{Template}} '''Short description.''' See also: * [[:Template:Bar]] ====Usage==== <code>{{Foo|Arg1|Arg2}}</code> ====Example==== {{Foo|Arg1|Arg2}} </noinclude> <includeonly> markup ... {{{1}}} {{{2|default}}} ... </includeonly>
Codeline
This template can also be used for commands?
Example:
{{Codeline|apk upgrade -U}}
Will produce: apk upgrade -U