User:Dubiousjim/Cheatsheet: Difference between revisions

From Alpine Linux
(change to Help:Editing)
 
(158 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Markup =
#REDIRECT [[Help:Editing]]
 
== <nowiki>== Start with Heading 2 ==</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 <nowiki>{{Path|/a/path/name}}</nowiki>: {{Path|/a/path/name}}.
 
Here is <nowiki>[[Internal pagetitle|an internal pagetitle]]</nowiki>: [[Internal pagetitle|an internal pagetitle]]. Text immediately suffixing the link will be incorporated into the link text, preface with &lt;nowiki /> to suppress.
 
Here is an [http://bugs.alpinelinux.org/ Alpine Issue] link <nowiki>{{Issue|279}}</nowiki>: {{Issue|279}}.
 
Here is <nowiki>[http://www.example.org/ an external link]</nowiki>: [http://www.example.org/ an external link]. If no link text is supplied: [http:///www.example.org]. Omit brackets for http://www.example.org/<nowiki /> (use &lt;nowiki> to suppress). Same server can be specified using <nowiki>{{SERVERNAME}}</nowiki>.
 
<nowiki>[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info]</nowiki>.
 
<nowiki>-- ~~~~</nowiki> gives a signature and timestamp: -- [[User:Dubiousjim|Dubiousjim]] 10:00, 4 March 2012 (UTC)
 
<!--
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 />
and another line.
 
Here is &lt;!-- a comment -->.
 
HR like this<br />
<nowiki>---</nowiki>
 
 
<nowiki>[[File:Alpinelinux 01.png|right|thumb|100px|Caption text]]</nowiki> gives:
 
[[File:Alpinelinux 01.png|right|thumb|100px|Caption text]]
 
Options can appear in any order:
* <i>Caption text</i> defaults to filename; to wholly suppress, use <code>&lt;span title="">&lt;/span></code>
* '''alt='''<i>text</i>
* Size can be [<i>width</i>][<b>x</b><i>height</i>]<b>px</b>
* '''page='''<i>number</i>, for PDF images
* rendered inline, Caption shows as hover text: '''frameless''', and/or '''border'''
** rendered inline, on separate line: '''none'''
** Valign for inline images, defaults to middle: '''middle|baseline|sub|super|top|text-top|bottom|text-bottom'''
** Text flow can be stopped by placing <code>&lt;br style="clear: both" /></code> before the text that should start below the floating image
** '''link='''<i>URL</i>|<i>pagetitle</i>|<i>blank</i>, only for inline images
* rendered floating, defaults to right align, Caption displayed below image: '''thumb''', '''thumb='''<i>alternate filename</i>, '''frame''' (ignores size options)
** rendered floating, defaults to thumb: '''left|right|center'''
 
To instead link to the file, you need to add a colon: [[:File:Alpinelinux 01.png]].
 
 
 
 
{{Cmd|<nowiki>{{Cmd|a command to try}}</nowiki>}}.
 
: <nowiki>: </nowiki>Simply indented text.
 
Here is a &lt;pre>-formatted block. <em>Markup is still processed</em> and only the first leading space is suppressed.
 
Use this for a &lt;pre>-formatted block with no wiki markup (HTML still needs to be escaped):
<pre>
&lt;nowiki>Start with leading space.
 
'''Block format'''
will be maintained.&lt;/nowiki></pre>
 
 
# Here is a numbered list item.
## Doubly-numbered
 
* Here is a bulleted list item.
** Doubly-bulleted
 
Blank lines, or non-bulleted/numbered lines, end the lists.
 
<nowiki>
;item<br />
: Body text<br />
</nowiki> produces:
;item
: Body text
 
[http://www.mediawiki.org/wiki/Help:Tables Help on tables]
 
= Notification boxes =
{{Box|Heading:|<nowiki>{{Box|Heading:|Body}}</nowiki>}}
{{Box|Heading:|<nowiki>{{Box|Heading:|Body then border-color then background-color|#DF0000|#FFDFDF}}</nowiki>|#DF0000|#FFDFDF}}
{{Tip|<nowiki>{{Tip|Write your Tip here.}}</nowiki>}}
{{Note|<nowiki>{{Note|Write your Note here.}}</nowiki>}}
{{Warning|<nowiki>{{Warning|Write your Warning here.}}</nowiki>}}
{{Todo|<nowiki>{{Todo|Write your Todo here.}}</nowiki>}}
 
<nowiki>{{Draft|Message.}}</nowiki> produces:
{{Draft|Message.}}
 
<nowiki>{{Obsolete|Message.}}</nowiki> produces:
{{Obsolete|Message.}}
 
<nowiki>#REDIRECT [[pagename]]</nowiki>
 
<nowiki>[[Category:Category name]]</nowiki>
 
To link to a Category page without adding the page to the category: <nowiki>[[:Category:Not in this category]]</nowiki>
 
 
= 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.
 
{| cellspacing="3"
|- valign="top"
|width="33%" class="ClassForFutureCSS" |
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code><nowiki>{{Download|alpine}}</nowiki></code></p>
For standard</div>
|width="33%" class="ClassForFutureCSS" |
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code><nowiki>{{Download|alpine-mini}}</nowiki></code></p>
For mini</div>
|width="33%" class="ClassForFutureCSS" |
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code><nowiki>{{DownloadDev|alpine}}</nowiki></code></p>
For 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>{{DownloadDev|alpine}}</center></div>
|}
== Links ==
*<code><nowiki>{{#latestalp:alpine|url}}</nowiki></code> will give you latest download url for Alpine Linux Standard:<br/>
:{{#latestalp:alpine|url}}
*<code><nowiki>{{#latestalp:alpine-mini|url}}</nowiki></code> will give you latest download url for Alpine Linux mini:<br/>
:{{#latestalp:alpine|url}}
<big>'''Example:'''</big><br/>
Start from <nowiki>[{{#latestalp:alpine|url}}</nowiki> Downloading latest Alpine Linux Standard], than continue ...
'''produces:'''<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></pre>
 
 
 
<!--
{{Codeline|text}} ~~]
<span style="font-family: monospace; color: #000055; white-space: nowrap"]{{{1}}}</span]
-->

Latest revision as of 12:16, 24 March 2012

Redirect to: