User:Dubiousjim/Cheatsheet: Difference between revisions

From Alpine Linux
(Tweak)
(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 <em>text</em> &amp; stuff</code>&lt;/code>.
Here is &lt;code><code>code-style text &amp; stuff; <em>markup is still processed.</em></code>&lt;/code>.
Here is &lt;tt><tt>tt-style <em>text</em> &amp; stuff</tt>&lt;/tt>.
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>[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 <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 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 one line, followed by &lt;br /><br />
Here is one line, followed by &lt;br /><br />
Line 21: Line 20:
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 a bulleted list item.


<pre>
# Here is a numbered list item.
* Bulleted list item
 
# Numbered list item.


<nowiki>{{Gloss|item|Body text}}</nowiki> produces:
{{Gloss|item|Body text}}
{{Gloss|item|Body text}}


<pre>Pre-formatted text &amp; stuff&lt;/pre>
:<nowiki>:</nowiki>Simply indented text.
 
Pre-formatted block &amp; stuff. Markup is processed; only first leading space is suppressed.
 
--~~~~  // signature and timestamp
 
:Indented text


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


'''Will produce:'''
<nowiki>--~~~~</nowiki> gives a signature and timestamp: --~~~~
 
* Bulleted list item
 
# Numbered list item.
 
{{Gloss|item|Body text}}
 
<pre>Pre-formatted text &amp; stuff</pre>
 
Pre-formatted block &amp; stuff. Markup is processed; only first leading space is suppressed.
 
--[[User:Dubiousjim|Dubiousjim]] 09:21, 4 March 2012 (UTC)  // signature and timestamp
 
:Indented text
 
::Doubly-indented text




Line 69: Line 46:
<code><nowiki>{{Warning|Write Your Warning Here.}}</nowiki></code>
<code><nowiki>{{Warning|Write Your Warning Here.}}</nowiki></code>
{{Warning|Write Your Warning Here.}}
{{Warning|Write Your Warning Here.}}
= Todo box =
<code><nowiki>{{Todo|Write Your Todo-notes Here.}}</nowiki></code>
<code><nowiki>{{Todo|Write Your Todo-notes Here.}}</nowiki></code>
{{Todo|Write Your Todo-notes Here.}}
{{Todo|Write Your Todo-notes Here.}}


= Other boxes =
For other boxes, see [[Template:Box]]
 
See [[Template:Box]]
 
 
= Obsolete =
This template should be added at the top of documents that are obsolete or need an update.
<big>'''Example:'''</big><br/>
<nowiki>{{Obsolete}}</nowiki>
 
'''Will produce:'''<br/>
{{Obsolete}}
 
<big>'''Example:'''</big><br/>
<nowiki>{{Obsolete|Alternate message.}}</nowiki>
 
'''Will produce:'''<br/>
{{Obsolete|Alternate message.}}


= Drafts =
<nowiki>{{Obsolete|Message.}}</nowiki> produces:
This template should be added at the top of documents that are not yet finished. Please do not link to them from production pages.
{{Obsolete|Message.}}


<big>'''Example:'''</big><br/>
<nowiki>{{Draft|Message.}}</nowiki> produces:
Typing...
{{Draft|Message.}}
<nowiki>{{Draft}}</nowiki>
 
'''Will produce:'''<br/>
{{Draft}}
 
<big>'''Example:'''</big><br/>
Typing...
<nowiki>{{Draft|Alternate message.}}</nowiki>
 
'''Will produce:'''<br/>
{{Draft|Alternate message.}}




Line 117: Line 64:
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.
== Buttons ==
== Buttons ==
{| cellspacing="3"  
{| cellspacing="4"  
|- valign="top"
|- valign="top"
|width="33%" 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="33%" 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="33%" 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" |
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code><nowiki>{{downloaddev|alpine}}</nowiki></code></p>
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>
|}
|}
== Links ==
== Links ==
Line 148: Line 100:
'''Will produce:'''<br/>
'''Will produce:'''<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 ...
= Older =
== Download Box ==
{{Download|mini}}
You can include a download box entering <code><nowiki>{{Download|mini}}</nowiki></code>
{{DownloadDev|mini}}
You can include a download box entering <code><nowiki>{{DownloadDev|mini}}</nowiki></code>
== New Download Box ==
{{Download|alpine}}
You can include a download box entering <code><nowiki>{{Download|alpine}}</nowiki></code>
== Old Download Box ==
{{Downloads}}
You can include a download box entering <code><nowiki>{{Downloads}}</nowiki></code>
== Greenish ==
<code><nowiki>[[Downloads|{{#latestalp:alpine-mini}}]]</nowiki></code>
<div style="float: right; border: solid #E0E9E9 1px; margin: 1px;">
{| cellspacing="0" style="width: 238px; color: #000000; background: #EDF2F2;"
| style="width: 45px; height: 45px; background: #E0E9E9; text-align: center;" |[[Image:Download.svg|40px|link=Downloads]]
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em;" | '''Download latest <br/>[[Downloads|{{#latestalp:alpine-mini}}]]
|}</div>





Revision as of 09:57, 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

File:Example.jpg
Caption text

. 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

-formatted block. <em>Markup is still processed</em> and only the first leading space is suppressed.

--~~~~ gives a signature and timestamp: --~~~~



= Notification boxes =
<code>{{Tip|Write Your Tip Here.}}</code>
{{Tip|Write Your Tip Here.}}
<code>{{Note|Write Your Note Here.}}</code>
{{Note|Write Your Note Here.}}
<code>{{Warning|Write Your Warning Here.}}</code>
{{Warning|Write Your Warning Here.}}
<code>{{Todo|Write Your Todo-notes Here.}}</code>
{{Todo|Write Your Todo-notes Here.}}

For other boxes, see [[Template:Box]]

{{Obsolete|Message.}} produces:
{{Obsolete|Message.}}

{{Draft|Message.}} produces:
{{Draft|Message.}}


<hr>


= 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.
== Buttons ==
{| cellspacing="4" 
|- valign="top"
|width="25%" class="ClassForFutureCSS" |
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code>{{download|alpine}}</code></p>
For standard</div>
|width="25%" class="ClassForFutureCSS" |
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code>{{download|alpine-mini}}</code></p>
For mini</div>
|width="25%" class="ClassForFutureCSS" |
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code>{{download|alpine-vserver}}</code></p>
For VServer</div>
|width="25%" class="ClassForFutureCSS" |
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code>{{downloaddev|alpine}}</code></p>
Dev standard</div>
|- valign="top"
| <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-vserver}}</center></div>
| <div style="padding: .4em .9em .9em"><center>{{downloaddev|alpine}}</center></div>
|}
== Links ==
*<code>{{#latestalp:alpine|url}}</code> will give you latest download url for Alpine Linux Standard:<br/>
:{{#latestalp:alpine|url}}
*<code>{{#latestalp:alpine-mini|url}}</code> will give you latest download url for Alpine Linux mini:<br/>
:{{#latestalp:alpine|url}}
*<code>{{#latestalp:alpine-vserver|url}}</code> will give you latest download url for Alpine Linux VServer:<br/>
:{{#latestalp:alpine|url}}
<big>'''Example:'''</big><br/>
Typing...
 Start from [{{#latestalp:alpine|url}} Downloading latest Alpine Linux Standard], than continue ...
'''Will produce:'''<br/>
Start from [{{#latestalp:alpine|url}} Downloading latest Alpine Linux Standard], than continue ...



= Making New Templates =

In '''Template:Foo''':

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