User:Dubiousjim/Cheatsheet: Difference between revisions

From Alpine Linux
(Tweaks)
(Tweaks)
Line 4: Line 4:


Here is ''<nowiki>''Italic text''</nowiki>'' and here is '''<nowiki>'''Bold text'''</nowiki>'''.
Here is ''<nowiki>''Italic text''</nowiki>'' and here is '''<nowiki>'''Bold text'''</nowiki>'''.
Here is &lt;code><code>code-style text &amp; stuff; <em>markup is still processed.</em></code>&lt;/code>.
Here is &lt;code><code>code-style text &amp; stuff; <em>markup is still processed.</em></code>&lt;/code>.
Here is <nowiki>{{File|/a/path/name}}</nowiki>: {{File|/a/path/name}}.
Here is <nowiki>{{File|/a/path/name}}</nowiki>: {{File|/a/path/name}}.
Here is <nowiki>[[Internal pagetitle|an internal pagetitle]]</nowiki>: [[Internal pagetitle|an internal pagetitle]].
Here is <nowiki>[[Internal pagetitle|an internal pagetitle]]</nowiki>: [[Internal pagetitle|an internal pagetitle]].
Here is <nowiki>[http://www.example.org/ an external link]</nowiki>: [http://www.example.org/ an external link].
Here is <nowiki>[http://www.example.org/ an external link]</nowiki>: [http://www.example.org/ an external link].
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}}.


Line 13: Line 17:
Here is a footnote.<ref>Insert footnote text here.</ref>
Here is a footnote.<ref>Insert footnote text here.</ref>
Here is a recallable footnote.<ref name="foo">Recallable footnote.</ref>; now let's recall it.<ref name="foo" />
Here is a recallable footnote.<ref name="foo">Recallable footnote.</ref>; now let's recall it.<ref name="foo" />
Here is [[File:Example.jpg|thumbnail|Caption text]]
-->
-->


Line 20: Line 25:
Here is &lt;!-- a comment -->.
Here is &lt;!-- a comment -->.


Here is [[File:Example.jpg|thumbnail|Caption text]].


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}}.
Line 33: Line 37:
:<nowiki>:</nowiki>Simply indented text.
:<nowiki>:</nowiki>Simply indented text.


  Here is a <pre>-formatted block. <em>Markup is still processed</em> and only the first leading space is suppressed.
  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: --~~~~
<nowiki>--~~~~</nowiki> gives a signature and timestamp: --[[User:Dubiousjim|Dubiousjim]] 10:00, 4 March 2012 (UTC)





Revision as of 10:00, 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.


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

.

  • Here is a bulleted list item.
  1. Here is a numbered list item.

{{Gloss|item|Body text}} produces:

item
Body text

:Simply indented text.
Here is a <pre>-formatted block. Markup is still processed and only the first leading space is suppressed.

--~~~~ gives a signature and timestamp: --Dubiousjim 10:00, 4 March 2012 (UTC)


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.}}

Warning: Write Your Warning Here.


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

Todo: Write Your Todo-notes Here.


For other boxes, see Template:Box

{{Obsolete|Message.}} produces:

This material is obsolete ...

Message. (Discuss)

{{Draft|Message.}} produces:

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
Download Stable Version
Alpine 3.20.3
Download Stable Version
Alpine 3.20.3
Download Stable Version
Alpine 3.20.3

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