User:Dubiousjim/Cheatsheet: Difference between revisions
Dubiousjim (talk | contribs) |
Dubiousjim (talk | contribs) |
||
Line 7: | Line 7: | ||
Here is <code><code>code-style text & stuff; <em>markup is still processed.</em></code></code>. | Here is <code><code>code-style text & stuff; <em>markup is still processed.</em></code></code>. | ||
Here is <nowiki>{{Path|/a/path/name}}</nowiki>: {{Path|/a/path/name}}. | Here is <nowiki>{{Path|/a/path/name}}</nowiki>: {{Path|/a/path/name}}. | ||
Underlining: use <ins> or <span style="text-decoration: underline;">. | |||
Strikethrough: use <del> or <span style="text-decoration: line-through;"> | |||
[http://en.wikipedia.org/wiki/List_of_HTML_entities HTML Entities] | |||
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 <nowiki /> to suppress. | 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 <nowiki /> to suppress. | ||
Line 58: | Line 64: | ||
Here is a <pre>-formatted block. '''Markup is still processed''' and only the first leading space is suppressed. | Here is a <pre>-formatted block. '''Markup is still processed''' and only the first leading space is suppressed. | ||
Use | Use a literal <pre> or the following to suppress wiki markup (HTML still needs to be escaped): | ||
<pre> | <pre> | ||
<nowiki>Start with leading space. | <nowiki>Start with leading space. | ||
Line 65: | Line 71: | ||
will be maintained.</nowiki></pre> | will be maintained.</nowiki></pre> | ||
: <nowiki>: </nowiki>Simply indented text | To wrap to screen width, use <pre style="white-space: pre-wrap">. | ||
: <nowiki>: </nowiki>Simply indented text (or use <blockquote>) | |||
Revision as of 01:21, 5 March 2012
Markup
== Start with 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 {{Path|/a/path/name}}: /a/path/name.
Underlining: use <ins> or <span style="text-decoration: underline;">.
Strikethrough: use <del> or <span style="text-decoration: line-through;">
Here is [[Internal pagetitle|an internal pagetitle]]: an internal pagetitle. Text immediately suffixing the link will be incorporated into the link text, preface with <nowiki /> to suppress.
Here is an Alpine Issue link {{Issue|279}}: #279.
Here is [http://www.example.org/ an external link]: an external link. If no link text is supplied: [1]. Omit brackets for http://www.example.org/ (use <nowiki> to suppress). Same server can be specified using {{SERVERNAME}}.
[mailto:info@example.org?Subject=URL%20Encoded%20Subject&body=Body%20Text info].
-- ~~~~ 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 -->.
HR like this
---
[[File:Alpinelinux 01.png|right|thumb|100px|Caption text]] gives:
Options can appear in any order:
- Caption text defaults to filename; to wholly suppress, use
<span title=""></span>
- alt=text
- Size can be [width][xheight]px
- page=number, 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
<br style="clear: both" />
before the text that should start below the floating image - link=URL|pagetitle|blank, only for inline images
- rendered floating, defaults to right align, Caption displayed below image: thumb, thumb=alternate filename, 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|a command to try}}
.
Here is a <pre>-formatted block. Markup is still processed and only the first leading space is suppressed.
Use a literal <pre> or the following to suppress wiki markup (HTML still needs to be escaped):
<nowiki>Start with leading space. '''Block format''' will be maintained.</nowiki>
To wrap to screen width, use <pre style="white-space: pre-wrap">.
- : Simply indented text (or use <blockquote>)
- 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.
- ;item
- : Body text
produces:
- item
- Body text
Notification boxes
{{Draft|Message.}} produces:
This material is work-in-progress ... Message. |
{{Obsolete|Message.}} produces:
This material is obsolete ... Message. (Discuss) |
#REDIRECT [[pagename]]
[[Category:Category name]]
To link to a Category page without adding the page to the category: [[:Category:Not in this category]]
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.
|
|
|
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>