Difference between revisions of "User:Dubiousjim/Cheatsheet"

From Alpine Linux
Jump to: navigation, search
(Tweaks)
(Tweak)
Line 1: Line 1:
 
= Markup =
 
= Markup =
  
Here is <nowiki>''</nowiki>''Italic text''<nowiki>''</nowiki> and here is <nowiki>'''</nowiki>'''Bold text'''<nowiki>'''</nowiki>.
+
== <nowiki>== Heading 2 ==</nowiki> ==
  
 +
Here is ''<nowiki>''Italic text''</nowiki>'' and here is '''<nowiki>'''Bold text'''</nowiki>'''.
 
Here is &lt;code><code>code-style <em>text</em> &amp; stuff</code>&lt;/code>.
 
Here is &lt;code><code>code-style <em>text</em> &amp; stuff</code>&lt;/code>.
 +
Here is &lt;tt><tt>tt-style <em>text</em> &amp; stuff</tt>&lt;/tt>.
 +
 +
Here is <nowiki>{{Cmd|a command to try}}</nowiki>: {{Cmd|a command to try}}.
 +
Here is <nowiki>{{File|/a/path/name}}</nowiki>: {{File|/a/path/name}}.
 +
Here is [[Internal pagetitle|an internal pagetitle]].
 +
Here is [[File:Example.jpg|thumbnail|Caption text]].
 +
Here is [http://www.example.org/ an external link].
 +
Here is an [http://bugs.alpinelinux.org/ Alpine Issue] link: {{Issue|279}}.
 +
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 one line, followed by &lt;br /><br />
 
Here is one line, followed by &lt;br /><br />
Line 10: Line 21:
 
Here is &lt;!-- a comment -->.
 
Here is &lt;!-- a comment -->.
  
=== <nowiki>=== Heading 3 ===</nowiki> ===
 
  
  
  
 
<pre>
 
<pre>
 
Normal text: {{Cmd|apk add -U}} text continues.
 
 
Normal text: {{File|/etc/network/interfaces}} text continues.
 
 
 
 
* Bulleted list item
 
* Bulleted list item
  
Line 30: Line 34:
  
 
  Pre-formatted block &amp; stuff. Markup is processed; only first leading space is suppressed.
 
  Pre-formatted block &amp; stuff. Markup is processed; only first leading space is suppressed.
 
[[Internal pagetitle|Label text]]
 
 
[[File:Example.jpg|thumbnail|Caption text]]
 
 
[http://www.example.org/ Label text]
 
 
{{Issue|279}}
 
 
<ref>Insert footnote text here.</ref>
 
 
<ref name="foo">Recallable footnote.</ref> ... <ref name="foo" /> ...
 
  
 
--~~~~  // signature and timestamp
 
--~~~~  // signature and timestamp
Line 51: Line 43:
  
 
'''Will produce:'''
 
'''Will produce:'''
 
''Italic text''
 
 
'''Bold text'''
 
  
 
* Bulleted list item
 
* Bulleted list item
  
 
# Numbered list item.
 
# Numbered list item.
  Continues.
 
 
 
  More.
 
  
 
{{Gloss|item|Body text}}
 
{{Gloss|item|Body text}}
 
Normal text: {{Cmd|apk add -U}} text continues.
 
 
Normal text: <code>just code &amp; stuff</code> text continues.
 
 
Normal text: {{File|/etc/network/interfaces}} text continues.
 
 
One line<br />
 
Another line.
 
 
<!-- comment -->
 
  
 
<pre>Pre-formatted text &amp; stuff</pre>
 
<pre>Pre-formatted text &amp; stuff</pre>
  
 
  Pre-formatted block &amp; stuff. Markup is processed; only first leading space is suppressed.
 
  Pre-formatted block &amp; stuff. Markup is processed; only first leading space is suppressed.
 
=== Heading 3 ===
 
 
[[Internal pagetitle|Label text]]
 
 
[[File:Example.jpg|thumbnail|Caption text]]
 
 
[http://www.example.org/ Label text]
 
 
{{Issue|279}}
 
 
<ref>Insert footnote text here.</ref>
 
 
<ref name="foo">Recallable footnote.</ref> ... <ref name="foo" /> ...
 
  
 
--[[User:Dubiousjim|Dubiousjim]] 09:21, 4 March 2012 (UTC)  // signature and timestamp
 
--[[User:Dubiousjim|Dubiousjim]] 09:21, 4 March 2012 (UTC)  // signature and timestamp
Line 100: Line 60:
 
::Doubly-indented text
 
::Doubly-indented text
  
 
 
= Commands =
 
This template should be used for commands
 
 
<big>'''Example:'''</big><br/>
 
<nowiki>{{Cmd|apk add -U}}</nowiki>
 
 
'''Will produce:'''
 
{{Cmd|apk add -U}}
 
 
= Codeline =
 
This template can also be used for commands?
 
 
<big>'''Example:'''</big><br/>
 
<nowiki>{{Codeline|apk upgrade -U}}</nowiki>
 
 
'''Will produce:'''
 
{{Codeline|apk upgrade -U}}
 
 
 
= Issues =
 
This template should be used for linking to issues from [http://bugs.alpinelinux.org/ Alpine Linux Bug Tracker].
 
 
<big>'''Example:'''</big><br/>
 
<nowiki>You can find out more info about this bug in issue {{Issue|279}}.</nowiki>
 
 
'''Will produce:'''<br/>
 
You can find out more info about this bug in issue {{Issue|279}}.
 
 
= Gloss =
 
This template can be used for definition-type lists.
 
 
<big>'''Example:'''</big><br/>
 
<nowiki>{{Gloss|item|Body text}}</nowiki>
 
 
'''Will produce:'''
 
{{Gloss|item|Body text}}
 
  
  
Line 277: Line 199:
 
markup ... {{{1}}} {{{2|default}}} ...
 
markup ... {{{1}}} {{{2|default}}} ...
 
</includeonly></pre>
 
</includeonly></pre>
 +
 +
 +
= Codeline =
 +
This template can also be used for commands?
 +
 +
<big>'''Example:'''</big><br/>
 +
<nowiki>{{Codeline|apk upgrade -U}}</nowiki>
 +
 +
'''Will produce:'''
 +
{{Codeline|apk upgrade -U}}

Revision as of 09:43, 4 March 2012

Markup

== Heading 2 ==

Here is ''Italic text'' and here is '''Bold text'''. Here is <code>code-style text & stuff</code>. Here is <tt>tt-style text & stuff</tt>.

Here is {{Cmd|a command to try}}:

a command to try

.

Here is {{File|/a/path/name}}: Template:File. Here is an internal pagetitle.

Here is

File:Example.jpg
Caption text

.

Here is an external link. Here is an Alpine Issue link: #279. 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 one line, followed by <br />
and another line.

Here is <!-- a comment -->.



* Bulleted list item

# Numbered list item.

{{Gloss|item|Body text}}

<pre>Pre-formatted text & stuff</pre>

 Pre-formatted block & stuff. Markup is processed; only first leading space is suppressed.

--~~~~  // signature and timestamp

:Indented text

::Doubly-indented text

Will produce:

  • Bulleted list item
  1. Numbered list item.

item
Body text

Pre-formatted text & stuff
Pre-formatted block & stuff. Markup is processed; only first leading space is suppressed.

--Dubiousjim 09:21, 4 March 2012 (UTC) // signature and timestamp

Indented text
Doubly-indented 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 box

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

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


Other boxes

See Template:Box


Obsolete

This template should be added at the top of documents that are obsolete or need an update. Example:

{{Obsolete}}

Will produce:

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

Please feel free to help us make an up-to-date version. (Discuss)

Example:

{{Obsolete|Alternate message.}}

Will produce:

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

Alternate message. (Discuss)

Drafts

This template should be added at the top of documents that are not yet finished. Please do not link to them from production pages.

Example:
Typing...

{{Draft}}

Will produce:

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

Do not follow instructions here until this notice is removed.
(Last edited by Dubiousjim on 4 Mar 2012.)

Example:
Typing...

{{Draft|Alternate message.}}

Will produce:

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

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

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


Older

Download Box

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

You can include a download box entering {{Download|mini}}

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

You can include a download box entering {{DownloadDev|mini}}

New Download Box

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

You can include a download box entering {{Download|alpine}}

Old Download Box

Download manager.png Download Stable Version
Alpine 3.8.0

You can include a download box entering {{Downloads}}

Greenish

[[Downloads|{{#latestalp:alpine-mini}}]]

Download.svg Download latest
{{#latestalp:alpine-mini}}


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