User:Dubiousjim/Cheatsheet: Difference between revisions

From Alpine Linux
(→‎== Start with Heading 2 ==: rework image info)
Line 34: Line 34:


Options can appear in any order:
Options can appear in any order:
* Caption defaults to filename; to wholly suppress, use <span title=""></span>
* <i>Caption text</i> defaults to filename; to wholly suppress, use <code>&lt;span title="">&lt;/span></code>
* alt=text
* '''alt='''<i>text</i>
* Size can be [width][xheight]px
* Size can be [<i>width</i>][<b>x</b><i>height</i>]<b>px</b>
* page=<i>number</i>, for PDF images
* '''page='''<i>number</i>, for PDF images
* rendered inline, Caption shows as hover text: frameless, and/or border
* rendered inline, Caption shows as hover text: '''frameless''', and/or '''border'''
** rendered inline, on separate line: none
** rendered inline, on separate line: '''none'''
** Valign for inline images, defaults to middle: middle|baseline|sub|super|top|text-top|bottom|text-bottom
** 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
** 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 or pagetitle or blank</i>, only for inline images
** '''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 right align, Caption displayed below image: '''thumb''', '''thumb='''<i>alternate filename</i>, '''frame''' (ignores size options)
** rendered floating, defaults to thumb: left|right|center
** rendered floating, defaults to thumb: '''left|right|center'''


To instead link to the file, you need to add a colon: [[:File:Alpinelinux 01.png]].
To instead link to the file, you need to add a colon: [[:File:Alpinelinux 01.png]].

Revision as of 00:47, 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.

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



[[File:Alpinelinux 01.png|right|thumb|100px|Caption text]] gives:

Caption text

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

.

: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

Help on tables

Notification boxes

Heading: {{Box|Heading:|Body}}
Heading: {{Box|Heading:|Body then border-color then background-color|#DF0000|#FFDFDF}}
Tip: {{Tip|Write your Tip here.}}
Note: {{Note|Write your Note here.}}
Warning: {{Warning|Write your Warning here.}}


Todo: {{Todo|Write your Todo here.}}



{{Draft|Message.}} produces:

This material is work-in-progress ...

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

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

{{Download|alpine}}

For standard

{{Download|alpine-mini}}

For mini

{{DownloadDev|alpine}}

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

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>