User:Dubiousjim/Cheatsheet: Difference between revisions

From Alpine Linux
m (Add pipes to example)
(Miscellany)
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<sup>super</sup> text and<sub>sub</sub> text and <small>small</small> and <large>large</large> and <span style="color:gray">gray</span> and <span style="color:white; background:red;">hilighted</span> and <s>struckthrough</s>.


Here is &lt;code><code>code-style text &amp; stuff; <em>markup is still processed.</em></code>&lt;/code>.
Here is &lt;code><code>code-style text &amp; stuff; <em>markup is still processed.</em></code>&lt;/code>.
Line 27: Line 29:
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" />
References: {{reflist}}
-->
-->


Line 176: Line 179:




<!--
<div style="display:none;">
{{Codeline|text}} ~~]
{{Codeline|text}} ~~]
<span style="font-family: monospace; color: #000055; white-space: nowrap"]{{{1}}}</span]
<span style="font-family: monospace; color: #000055; white-space: nowrap"]{{{1}}}</span]
-->
 
How do I use a template as a signature?
 
When you look at your preferences, you see a check box for "raw signature." But the field will only take a certain number of characters. What if you want more?
 
You will need to create two pages, possibly in your userspace.
 
    Create the first page (FIRST PAGE)
    Go to your preferences, check "raw signature" and put {{FIRST PAGE}} in the signature. Save
    Create a second page (SECOND PAGE) (possibly a sub-page of the first)
    Go back to the first page (FIRST PAGE) and do {{SECOND PAGE}}
    Go to the second page (SECOND PAGE) and place the code you wish to have for your signature.
 
If you don't have this structure, you will still be inserting all your signature code into the raw code wherever your signature is used, because the software will insert "SUBST" in your preferences. You may not mind this, in which case you only need one page. If you want the raw code to only display {{FIRST PAGE}}, which looks a lot cleaner, then you need to use the two-page structure.
 
</div>

Revision as of 03:18, 6 March 2012

Markup

== Start with Heading 2 ==

Here is ''Italic text'' and here is '''Bold text'''.

Here issuper text andsub text and small and <large>large</large> and gray and hilighted and struckthrough.

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;">

HTML Entities

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:

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

.

Contents of /path/to/file

{{Cat|/path/to/file|body}}
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>)


  1. Here is a numbered list item.
    1. Doubly-numbered
  • Here is a bulleted list item.
    • Doubly-bulleted

Blank lines, or non-bulleted/numbered lines, end the lists.

;item
: Body text

or {{Gloss|item|Body text}} produce:

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


text ~~] <span style="font-family: monospace; color: #000055; white-space: nowrap"]{{{1}}}</span]

How do I use a template as a signature?

When you look at your preferences, you see a check box for "raw signature." But the field will only take a certain number of characters. What if you want more?

You will need to create two pages, possibly in your userspace.

   Create the first page (FIRST PAGE)
   Go to your preferences, check "raw signature" and put Template:FIRST PAGE in the signature. Save
   Create a second page (SECOND PAGE) (possibly a sub-page of the first)
   Go back to the first page (FIRST PAGE) and do Template:SECOND PAGE
   Go to the second page (SECOND PAGE) and place the code you wish to have for your signature.

If you don't have this structure, you will still be inserting all your signature code into the raw code wherever your signature is used, because the software will insert "SUBST" in your preferences. You may not mind this, in which case you only need one page. If you want the raw code to only display Template:FIRST PAGE, which looks a lot cleaner, then you need to use the two-page structure.