Help:Cheatsheet: Difference between revisions
Prabuanand (talk | contribs) m (replaced the link) |
Prabuanand (talk | contribs) No edit summary |
||
| Line 210: | Line 210: | ||
{{ic|1=echo =}}<br/> | {{ic|1=echo =}}<br/> | ||
{{ic|echo {{=}}}} | {{ic|echo {{=}}}} | ||
|- style="border-top:1px solid #aaaaaa;" | |||
|Block of code | |||
<div style="padding-left:.5em; font-size:0.9em;">''Use <p> </p> based on HTML <Pre> /<Pre>.''</div> | |||
| | |||
{{ic|<nowiki><p> | |||
block | |||
code</p></nowiki>}} | |||
| | |||
<p> | |||
block | |||
code</p> | |||
|- style="border-top:1px solid #aaaaaa;" | |- style="border-top:1px solid #aaaaaa;" | ||
|Display File Contents | |Display File Contents | ||
| Line 255: | Line 266: | ||
{{Note|This text should be noted.}} | {{Note|This text should be noted.}} | ||
|- style="border-top:1px solid #aaaaaa;" | |- style="border-top:1px solid #aaaaaa;" | ||
| | |Tip | ||
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Tip]].''</div> | <div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Tip]].''</div> | ||
| | | | ||
| Line 281: | Line 292: | ||
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Pkg]].''</div> | <div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Pkg]].''</div> | ||
| | | | ||
{{ic|<nowiki>{{Pkg|linux}}</nowiki>}} | {{ic|<nowiki>{{Pkg|linux-lts}}</nowiki>}} | ||
| | | | ||
{{Pkg|linux}} | {{Pkg|linux-lts}} | ||
|- style="border-top:1px solid #aaaaaa;" | |- style="border-top:1px solid #aaaaaa;" | ||
|Refer Issue or Bugs | |Refer Issue or Bugs | ||
Revision as of 09:22, 14 October 2024
For a full list of editing commands, see Help:Editing. To experiment with editing, use the sandbox.
| Works anywhere in the text (wikitext) | ||
| Description | You type | You get |
| Italic text |
|
italic |
| Bold text |
|
bold |
| Bold and italic text |
|
bold & italic |
| Link to another Wiki page |
|
Name of page |
| Link to section on same page |
|
|
| External link |
|
|
| Add a page to a category Categories should be placed at the bottom of pages.
|
[[Category:Category name]]
|
The category name will display in a bar at the bottom when the page is previewed or saved. |
| Signature
Sign your contributions when posting to a Talk page. Do not sign when contributing to an article. See also Help:Signature. |
|
Username, 05:17, 26 November 2025 (UTC) |
| Works anywhere in the text (HTML) | ||
| Description | You type | You get |
| Strikethrough |
|
|
| Underline |
|
underline |
| Subscripts and superscripts |
|
regularsub sup |
| Works only at the beginning of lines | ||
| Description | You type | You get |
| Code
Start code lines with one or more spaces. |
|
$ echo Hello World |
| Section headings
A Table of Contents will automatically be generated for articles with four or more headings. =Level 1= should not be used. |
|
Level 2Level 3Level 4Level 5Level 6 |
| Horizontal rule |
|
|
| Bulleted list |
|
|
| Numbered list |
|
|
| Definition list |
|
|
| Indenting text
This is generally used when replying on a Talk page, as it keeps conversations easy to browse.
|
|
no indent (normal)
|
| Templates | ||
| Description | You type | You get |
| Inline code
Use Template:ic.
|
|
|
| Character escape |
|
|
| Block of code
Use
based on HTML /. |
<p>
block
code</p>
|
block code |
| Display File Contents
Use Template:Cat.
|
{{Cat|/path/file|Body '''text'''
|
Contents of /path/file Body '''text'''
Second line. |
| Command
Use Template:Cmd.
|
{{Cmd|apk add package}}
|
apk add package |
| Codeline
Use Template:codeline.
|
Use
{{Codeline|apk upgrade -U}} to upgrade
|
Use apk upgrade -U to upgrade. |
| Display Path
Use Template:Path.
|
{{Path|/etc/network/interfaces}}
|
/etc/network/interfaces |
| Note
Use Template:Note.
|
{{Note|This text should be noted.}}
|
Note: This text should be noted.
|
| Tip
Use Template:Tip.
|
{{Tip|This text should be considered.}}
|
Tip: This text should be considered.
|
| Warning
Use Template:Warning.
|
{{Warning|This text should be heeded.}}
|
Warning: This text should be heeded. |
| Refer Packages
Use Template:Pkg.
|
{{Pkg|linux-lts}}
|
linux-lts |
| Refer Issue or Bugs
Use Template:Issue.
|
{{Issue|279}}
|
#279 |
| Refer Another Article
Use Template:Main or Template:Seealso.Placed immediately under section headings to point to a main page or additional reference page
|
{{Main|IRC}}{{Seealso|IRC}}
|
|
