User:Dubiousjim/Cheatsheet: Difference between revisions

From Alpine Linux
(expanded)
 
(Expanding)
Line 1: Line 1:
http://wiki.alpinelinux.org/wiki/Template:Box
= Markup =


= New Templates =
<pre>
 
''Italic text''
In '''Template:Foo''':
'''Bold text'''
 
* Bulleted list item
<pre><noinclude>{{Template}}
# Numbered list item
 
{{Gloss|item|Body text}}
'''Short description.'''
{{Cmd|apk add -U}}
 
<code>just code &amp; stuff</code>
See also:
{{File|/etc/network/interfaces}}
 
<br />
* [[:Template:Bar]]
<!-- comment -->
 
====Usage====


{{Codeline|1=<nowiki>{{Foo|Arg1|Arg2}}</nowiki>}}
[[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" /> ...


====Example====
--~~~~  // signature and timestamp
:Indented text
::Doubly-indented text
</pre>


{{Foo|Arg1|Arg2}}
TODO: Results?
</noinclude><includeonly>
markup ... {{{1}}} {{{2|default}}} ...
</includeonly></pre>


<pre>Sample <pre> box.</pre>


= Others =
Sample singly-indented par &amp; stuff.


File?
    Sample four-indented par &amp; stuff.
Standard markup?




Line 63: Line 66:


<big>'''Example:'''</big><br/>
<big>'''Example:'''</big><br/>
  <nowiki>{{Gloss|one|two}}</nowiki>
  <nowiki>{{Gloss|item|Body text}}</nowiki>


'''Will produce:'''
'''Will produce:'''
{{Gloss|one|two}}
{{Gloss|item|Body text}}




Line 80: Line 83:
<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 =
See [[Template:Box]]




Line 90: Line 97:
{{Obsolete}}
{{Obsolete}}


== Obsolete2 ==
<big>'''Example:'''</big><br/>
<center>
<nowiki>{{Obsolete|Alternate message.}}</nowiki>
{|style="width: 33em; padding:2px; margin:0; margin-bottom:10px; background-color:#F1F1DE; border:1px solid #CC9; -moz-border-radius-bottomright: 0.5em; -moz-border-radius-bottomleft: 1em; border-radius-bottomright: 0.5em; border-radius-bottomleft: 1em; -webkit-border-bottom-right-radius: 0.5em; -webkit-border-bottom-left-radius: 1em;"
 
|<div style="font-size: 1.5em; font-weight:bold;"> [[Image:Out_of_date_clock_icon.svg‎|54px|left|link=]] This page is obsolete ... </div><p style="text-align: center; font-size: 87%;">This page is outdated and is considered obsolete. Write some info about this kind of pag and what users should do with it.</p>
'''Will produce:'''<br/>
|}</center>
{{Obsolete|Alternate message.}}


= Drafts =
= Drafts =
Line 106: Line 113:
{{Draft}}
{{Draft}}


== Drafts2 ==
<big>'''Example:'''</big><br/>
<center>
Typing...
{|style="width: 36em; padding:2px; margin:0; margin-bottom:10px; background-color:#f6f6f6; border:1px solid #aaa; -moz-border-radius-bottomright: 0.5em; -moz-border-radius-bottomleft: 1em; border-radius-bottomright: 0.5em; border-radius-bottomleft: 1em; -webkit-border-bottom-right-radius: 0.5em; -webkit-border-bottom-left-radius: 1em;"
<nowiki>{{Draft|Alternate message.}}</nowiki>
|<div style="font-size: 1.5em; font-weight:bold;"> [[Image:Underconstruction_clock_icon_gray.svg‎|64px|left|link=]] This page is a work in progress ... </div><p style="text-align: center; font-size: 87%;">This page is under heavy construction. Write some info about this kind of page and what users should do with it.</p>
 
|}</center>
'''Will produce:'''<br/>
{{Draft|Alternate message.}}




Line 175: Line 183:
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em;" | '''Download latest <br/>[[Downloads|{{#latestalp:alpine-mini}}]]
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em;" | '''Download latest <br/>[[Downloads|{{#latestalp:alpine-mini}}]]
|}</div>
|}</div>
= 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></pre>

Revision as of 09:13, 4 March 2012

Markup

''Italic text''
'''Bold text'''
* Bulleted list item
# Numbered list item
{{Gloss|item|Body text}}
{{Cmd|apk add -U}}
<code>just code & stuff</code>
{{File|/etc/network/interfaces}}
<br />
<!-- comment -->

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

TODO: Results?

Sample <pre> box.
Sample singly-indented par & stuff.
   Sample four-indented par & stuff.


Commands

This template should be used for commands

Example:

{{Cmd|apk add -U}}

Will produce:

apk add -U

Codeline

This template can also be used for commands?

Example:

{{Codeline|apk upgrade -U}}

Will produce: apk upgrade -U


Issues

This template should be used for linking to issues from Alpine Linux Bug Tracker.

Example:

You can find out more info about this bug in issue {{Issue|279}}.

Will produce:
You can find out more info about this bug in issue #279.

Gloss

This template can be used for definition-type lists.

Example:

{{Gloss|item|Body text}}

Will produce:

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

Warning: Write Your Warning Here.


Todo box

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

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:

This material is obsolete ...

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

Example:

{{Obsolete|Alternate message.}}

Will produce:

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:

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:

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


Older

Download Box

Download Stable Version
Alpine 3.20.3

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

Download Stable Version
Alpine 3.20.3

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

New Download Box

Download Stable Version
Alpine 3.20.3

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

Old Download Box

Download Stable Version
Alpine 3.20.3

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

Greenish

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

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>