Difference between revisions of "User:Dubiousjim/Cheatsheet"

From Alpine Linux
Jump to: navigation, search
(Tweaks)
(Tweaks)
Line 1: Line 1:
 
= Markup =
 
= Markup =
 
 
== <nowiki>== Heading 2 ==</nowiki> ==
 
== <nowiki>== Heading 2 ==</nowiki> ==
  
Line 13: Line 12:
  
 
Here is an [http://bugs.alpinelinux.org/ Alpine Issue] link <nowiki>{{Issue|279}}</nowiki>: {{Issue|279}}.
 
Here is an [http://bugs.alpinelinux.org/ Alpine Issue] link <nowiki>{{Issue|279}}</nowiki>: {{Issue|279}}.
 +
 +
<nowiki>--~~~~</nowiki> gives a signature and timestamp: --[[User:Dubiousjim|Dubiousjim]] 10:00, 4 March 2012 (UTC)
  
 
<!--
 
<!--
Line 28: Line 29:
 
Here is <nowiki>{{Cmd|a command to try}}</nowiki>: {{Cmd|a command to try}}.
 
Here is <nowiki>{{Cmd|a command to try}}</nowiki>: {{Cmd|a command to try}}.
  
* Here is a bulleted list item.
+
:<nowiki>:</nowiki>Simply indented text.
 +
 
 +
Here is a &lt;pre>-formatted block. <em>Markup is still processed</em> and only the first leading space is suppressed.
  
 
# Here is a numbered list item.
 
# Here is a numbered list item.
 +
 +
* Here is a bulleted list item.
  
 
<nowiki>{{Gloss|item|Body text}}</nowiki> produces:
 
<nowiki>{{Gloss|item|Body text}}</nowiki> produces:
 
{{Gloss|item|Body text}}
 
{{Gloss|item|Body text}}
 
:<nowiki>:</nowiki>Simply indented text.
 
 
Here is a &lt;pre>-formatted block. <em>Markup is still processed</em> and only the first leading space is suppressed.
 
 
<nowiki>--~~~~</nowiki> gives a signature and timestamp: --[[User:Dubiousjim|Dubiousjim]] 10:00, 4 March 2012 (UTC)
 
 
  
  
Line 60: Line 58:
 
<nowiki>{{Draft|Message.}}</nowiki> produces:
 
<nowiki>{{Draft|Message.}}</nowiki> produces:
 
{{Draft|Message.}}
 
{{Draft|Message.}}
 
 
<hr>
 
  
  
Line 72: Line 67:
 
|width="25%" class="ClassForFutureCSS" |
 
|width="25%" 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="25%" class="ClassForFutureCSS" |
 
|width="25%" 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="25%" class="ClassForFutureCSS" |
 
|width="25%" class="ClassForFutureCSS" |
 
<div style="padding: .4em .9em .1em">
 
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code><nowiki>{{download|alpine-vserver}}</nowiki></code></p>
+
<p style="text-align:center"><code><nowiki>{{Download|alpine-vserver}}</nowiki></code></p>
 
For VServer</div>
 
For VServer</div>
 
|width="25%" class="ClassForFutureCSS" |
 
|width="25%" 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>
 
Dev standard</div>
 
Dev 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>{{download|alpine-vserver}}</center></div>
+
| <div style="padding: .4em .9em .9em"><center>{{Download|alpine-vserver}}</center></div>
| <div style="padding: .4em .9em .9em"><center>{{downloaddev|alpine}}</center></div>
+
| <div style="padding: .4em .9em .9em"><center>{{DownloadDev|alpine}}</center></div>
 
|}
 
|}
 
== Links ==
 
== Links ==

Revision as of 10:18, 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.
  1. 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.}}

Tip: Write Your Tip Here.

{{Note|Write Your Note Here.}}

Note: Write Your Note Here.

{{Warning|Write Your Warning Here.}}

Tango-dialog-warning.png
Warning: Write Your Warning Here.


{{Todo|Write Your Todo-notes Here.}}

Underconstruction clock icon gray.svg
Todo: Write Your Todo-notes Here.


For other boxes, see Template:Box

{{Obsolete|Message.}} produces:

Out of date clock icon.svg
This material is obsolete ...

Message. (Discuss)

{{Draft|Message.}} produces:

Underconstruction clock icon gray.svg
This material is work-in-progress ...

Message.
(Last edited by Dubiousjim on 4 Mar 2012.)


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.

Buttons

{{Download|alpine}}

For standard

{{Download|alpine-mini}}

For mini

{{Download|alpine-vserver}}

For VServer

{{DownloadDev|alpine}}

Dev standard
url}} Download now!
[{{#latestalp:alpine|url}} {{#latestalp:alpine|file}}]
({{#latestalp:alpine|mb}} MiB) Released {{#latestalp:alpine|date}}
url}} Download now!
[{{#latestalp:alpine-mini|url}} {{#latestalp:alpine-mini|file}}]
({{#latestalp:alpine-mini|mb}} MiB) Released {{#latestalp:alpine-mini|date}}
url}} Download now!
[{{#latestalp:alpine-vserver|url}} {{#latestalp:alpine-vserver|file}}]
({{#latestalp:alpine-vserver|mb}} MiB) Released {{#latestalp:alpine-vserver|date}}
url}} Download now!
[{{#latestalp:alpine|url}} {{#latestalp:alpine|file}}]
({{#latestalp:alpine|mb}} MiB) Released {{#latestalp:alpine|date}}

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}}
  • {{#latestalp:alpine-vserver|url}} will give you latest download url for Alpine Linux VServer:
{{#latestalp:alpine|url}}

Example:
Typing...

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