User:Dubiousjim/Cheatsheet: Difference between revisions
Dubiousjim (talk | contribs) (Markup results can't be in box) |
Dubiousjim (talk | contribs) (Tweaks) |
||
Line 1: | Line 1: | ||
= Markup = | = Markup = | ||
< | Here is <nowiki>''</nowiki>''Italic text''<nowiki>''</nowiki> and here is <nowiki>'''</nowiki>'''Bold text'''<nowiki>'''</nowiki>. | ||
''Italic text'' | |||
Here is <code><code>code-style <em>text</em> & stuff</code></code>. | |||
Here is one line, followed by <br /><br /> | |||
and another line. | |||
Here is <!-- a comment -->. | |||
=== <nowiki>=== Heading 3 ===</nowiki> === | |||
<pre> | |||
Normal text: {{Cmd|apk add -U}} text continues. | Normal text: {{Cmd|apk add -U}} text continues. | ||
Normal text: | Normal text: {{File|/etc/network/interfaces}} text continues. | ||
* Bulleted list item | |||
# Numbered list item. | |||
{{Gloss|item|Body text}} | |||
<pre>Pre-formatted text & stuff</pre> | <pre>Pre-formatted text & stuff</pre> | ||
Pre-formatted block & stuff. Markup is processed; only first leading space is suppressed. | Pre-formatted block & stuff. Markup is processed; only first leading space is suppressed. | ||
[[Internal pagetitle|Label text]] | [[Internal pagetitle|Label text]] |
Revision as of 09:33, 4 March 2012
Markup
Here is ''Italic text'' and here is '''Bold text'''.
Here is <code>code-style text & stuff
</code>.
Here is one line, followed by <br />
and another line.
Here is <!-- a comment -->.
=== Heading 3 ===
Normal text: {{Cmd|apk add -U}} text continues. Normal text: {{File|/etc/network/interfaces}} text continues. * Bulleted list item # Numbered list item. {{Gloss|item|Body text}} <pre>Pre-formatted text & stuff</pre> Pre-formatted block & stuff. Markup is processed; only first leading space is suppressed. [[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
Will produce:
Italic text
Bold text
- Bulleted list item
- Numbered list item.
Continues. More.
- item
- Body text
Normal text:
apk add -U
text continues.
Normal text: just code & stuff
text continues.
Normal text: Template:File text continues.
One line
Another line.
Pre-formatted text & stuff
Pre-formatted block & stuff. Markup is processed; only first leading space is suppressed.
Heading 3
<ref>Insert footnote text here.</ref>
<ref name="foo">Recallable footnote.</ref> ... <ref name="foo" /> ...
--Dubiousjim 09:21, 4 March 2012 (UTC) // signature and timestamp
- Indented text
- Doubly-indented text
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.}}
{{Note|Write Your Note Here.}}
{{Warning|Write Your Warning Here.}}
Todo box
{{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. |
Example:
Typing...
{{Draft|Alternate message.}}
Will produce:
This material is work-in-progress ... Alternate message. |
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
|
|
|
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
You can include a download box entering {{Download|mini}}
You can include a download box entering {{DownloadDev|mini}}
New Download Box
You can include a download box entering {{Download|alpine}}
Old Download Box
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>