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 27: Line 28:
  
  
Here is <nowiki>{{Cmd|a command to try}}</nowiki>: {{Cmd|{{Cmd|a command to try}}}}.
+
{{Cmd|<nowiki>{{Cmd|a command to try}}</nowiki>}}.
  
 
:<nowiki>:</nowiki>Simply indented text.
 
:<nowiki>:</nowiki>Simply indented text.
Line 42: Line 43:
  
 
= Notification boxes =
 
= Notification boxes =
<code><nowiki>{{Tip|Write Your Tip Here.}}</nowiki></code>
+
{{Tip|<nowiki>{{Tip|Write your Tip here.}}</nowiki>}}
{{Tip|<nowiki>{{Tip|Write Your Tip Here.}}</nowiki>}}
+
{{Note|<nowiki>{{Note|Write your Note here.}}</nowiki>}}
<code><nowiki>{{Note|Write Your Note Here.}}</nowiki></code>
+
{{Warning|<nowiki>{{Warning|Write your Warning here.}}</nowiki>}}
{{Note|Write Your Note Here.}}
+
{{Todo|<nowiki>{{Todo|Write your Todo here.}}</nowiki>}}
<code><nowiki>{{Warning|Write Your Warning Here.}}</nowiki></code>
 
{{Warning|Write Your Warning Here.}}
 
<code><nowiki>{{Todo|Write Your Todo-notes Here.}}</nowiki></code>
 
{{Todo|Write Your Todo-notes Here.}}
 
  
 
For other boxes, see [[Template:Box]]
 
For other boxes, see [[Template:Box]]
Line 89: Line 86:
 
<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/>
+
'''produces:'''<br/>
 
Start from [{{#latestalp:alpine|url}} Downloading latest Alpine Linux Standard], than continue ...
 
Start from [{{#latestalp:alpine|url}} Downloading latest Alpine Linux Standard], than continue ...
  

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


{{Cmd|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: {{Tip|Write your Tip here.}}
Note: {{Note|Write your Note here.}}
Tango-dialog-warning.png
Warning: {{Warning|Write your Warning here.}}


Underconstruction clock icon gray.svg
Todo: {{Todo|Write your Todo here.}}


For other boxes, see Template:Box

{{Draft|Message.}} produces:

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

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

{{Obsolete|Message.}} produces:

Out of date clock icon.svg
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.

{{Download|alpine}}

For standard

{{Download|alpine-mini}}

For mini

{{DownloadDev|alpine}}

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

Example:

Start from [{{#latestalp:alpine|url}} Downloading latest Alpine Linux Standard], than continue ...

produces:
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