User:Dubiousjim/Cheatsheet: Difference between revisions

From Alpine Linux
(→‎Entities: delete)
(Make redirect)
Line 1: Line 1:
== <nowiki>== Start with Heading 2 ==</nowiki> ==
#REDIRECT [[Project:Markup syntax]]
 
=== Inline elements ===
 
* '''<nowiki>'''bold'''</nowiki>'''; or use <b>b</b> or <strong>strong</strong> or {font-weight:bold}
* ''<nowiki>''italic''</nowiki>''; or use <i>i</i> or <em>em</em> or {font-style:italic}
 
* <small>small</small> or {font-size:smaller}
* <big>big</big> or {font-size:larger} (invalid in 5)
* <sup>sup</sup> or {vertical-align:super}
* <sub>sub</sub> or {vertical-align:sub}
<!--
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" />
References: {{reflist}}
-->
 
* &lt;font> deprecated, use {font-size:10pt; color:red; font-family:"Courier"}
* <nowiki><span style="</nowiki><span style="color:gray">color:gray</span>"&gt;
* <nowiki><span style="</nowiki><span style="color:white; background:red;">color:white; background:red</span>"&gt;
* <u>u</u> or <ins>ins</ins> or {text-decoration:underline} (&lt;u> valid in 5 but not 4 strict; &lt;ins> can also be a block element)
* <s>s</s> or <del>del</del> or {text-decoration:line-through} (&lt;s> valid in 5 but not 4 strict; &lt;del> can also be a block element)
<!-- <strike> also works, but is deprecated -->
 
* <code>code</code> uses {font-family:monospace;} (&lt;tt> invalid in 5)
*: <code><var>markup</var> and &rarr; entities are still honored</code>
* {{Lb}}Key| {{Key|Ctrl}}{{Rb}}+{{Lb}}Key| {{Key|C}}{{Rb}}
* <kbd> and <samp> and <q> and <dfn> are ignored
 
* <var>var</var>
* <cite>cite</cite>
* <nowiki>{{Hint|</nowiki>{{Hint|term|explanation}}<nowiki>|explanation}}</nowiki>
* <nowiki>{{Path|</nowiki>{{Path|/a/path/name}}<nowiki>}}</nowiki>
 
 
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 &lt;nowiki /> to suppress.
 
Here is an [http://bugs.alpinelinux.org/ Alpine Issue] link <nowiki>{{Issue|279}}</nowiki>: {{Issue|279}}.
 
Here is <nowiki>[http://www.example.org/ an external link]</nowiki>: [http://www.example.org/ an external link]. If no link text is supplied: [http:///www.example.org]. Omit brackets for http://www.example.org/<nowiki /> (use &lt;nowiki> to suppress). Same server can be specified using <nowiki>{{SERVERNAME}}</nowiki>.
 
<nowiki>[mailto:</nowiki>[mailto:info@example.org info@example.org]<nowiki>?Subject=URL%20Encoded%20Subject&body=Body%20Text info]</nowiki>.
 
<nowiki>-- ~~~~</nowiki> gives a signature and timestamp: -- [[User:Dubiousjim|Dubiousjim]] 10:00, 4 March 2012 (UTC)
 
 
Here is one line, followed by &lt;br /><br />
and another line.
 
Here is &lt;!-- a comment -->.
 
HR like this<br />
<nowiki>----</nowiki>
----
&nbsp;
 
=== Block elements ===
 
{{Cmd|{{lb}}[[Template:Cmd|Cmd]]{{!}}a &lt;var><var>command</var>&lt;/var> to try{{rb}}
--- essentially, this is block-level <kbd> (which is ignored) }}
 
 
{{Cat|/path/file|{{lb}}Cat{{!}}/path/file{{!}}body{{rb}} '''text''' <br /> more
Second line.
 
You must escape characters as follows:
  {{=}} not inside [[..]] use &amp;#61; or {{lb}}{{=}}{{rb}}
  {{!}} not inside [[..]] use &amp;#124; or {{lb}}!{{rb}}
  {{lb}}                  use &amp;#123; twice or {{lb}}lb{{rb}}
  {{rb}}                  use &amp;#125; twice or {{lb}}rb{{rb}}
  unmatched &#91;&#91;        use &amp;#91; twice
  unmatched &#93;&#93;        use &amp;#93; twice
}}
 
 
 
&lt;nowiki> <nowiki> converts &rarr; entities and collapses whitespace </nowiki>(even multiple <code>\n</code>s),<nowiki>
but ignores all '''wiki''' and <span style="color:green">HTML</span> [[markup]]</nowiki>.
 
<div style="white-space:pre; font-family:monospace;">
HTML's &lt;pre> uses {white-space:pre; font-family:monospace;}
To wrap to screen width, use &lt;pre style="white-space:pre-wrap">
</div>
 
In wiki, one leading space displays as block element, in monospace, doesn't collapse whitespace.
Converts &rarr; entities and honors '''wiki''' and <span style="color:green">HTML</span> [[markup]].
? Can contain any inline element except: IMG OBJECT BIG SMALL SUP SUB
--- essentially, this and &lt;pre> are block-level <samp> (which is ignored), or a &lt;code> snippet
whereas {{lb}}Cat{{rb}} is mainly intended to display a whole file.
A session script, with prompts and stdout, should be formatted like this (or with &lt;pre>) instead of
using {{lb}}Cmd{{rb}}.
 
<pre>
In wiki, <pre> displays as block element, in monospace, doesn't collapse whitespace.
Otherwise like &lt;nowiki>: it converts &rarr; entities, but ignores '''wiki''' and <span style="color:green">HTML</span> [[markup]].
One leading space plus <nowiki> is same as <pre> (in this case, subsequent lines should not be space-prefixed; block will extend to closing &lt;/nowiki>)
</pre>
 
: <nowiki>: </nowiki>Simply indented text (on left side only).
 
<blockquote>This is &lt;blockquote>.
Collapses whitespace, and indents on both sides.</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.
 
<p style="white-space:pre; font-family:monospace;">
<nowiki>;item : Body text</nowiki>
</p>
or <nowiki>{{Define|item|Body text}}</nowiki> produce:
;item : Body text
 
 
<!--
    <center> deprecated
    use <div class="center" style="width:auto; margin-left:auto; margin-right:auto;">Centered text</div>
-->
 
<!-- this extension not present
<math>
\sum_{n=0}\infty\frac{x^n}{n!}
</math>
-->
 
=== Tables ===
 
<pre>
{|  border="1" style="width:75%; height:200px"  <!-- align=right makes table float -->
|+ The table's caption
|-
! width=100px | columnlabel 1
! columnlabel 2 !! columnlabel 3
|-
! rowlabel1
| Cell 1 || Cell 2 || Cell 3
|- style="height:100px; background:none" <!-- or style="background:transparent" -->
| align=right style="width:200px" | Cell A
| style="background:red; color:white" | Cell B
| colspan=2 align=center | Cell C
|- valign=top <!-- have to be applied to every row, default is valign=middle; or use style="vertical-align:top;" -->
| rowspan=2 Cell D
| ...
|}
</pre>
 
 
* http://www.mediawiki.org/wiki/Help:Tables
* http://meta.wikimedia.org/wiki/Help:Table
 
<!--
    <table>
        <caption>
        <th>
        <tr>
        <td>
-->
 
== Images ==
 
<nowiki>[[File:Alpinelinux 01.png|right|thumb|100px|Caption text]]</nowiki> gives:
 
[[File:Alpinelinux 01.png|right|thumb|100px|Caption text]]
 
Options can appear in any order:
* <i>Caption text</i> defaults to filename; to wholly suppress, use <code>&lt;span title="">&lt;/span></code>
* '''alt='''<i>text</i>
* Size can be [<i>width</i>][<b>x</b><i>height</i>]<b>px</b>
* '''page='''<i>number</i>, 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 <nowiki>{{Clear}}</nowiki> <!-- <code>&lt;br style="clear:both" /></code> --> before the text that should start below the floating image
** '''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 thumb: '''left|right|center'''
 
To instead link to the file, you need to add a colon: [[:File:Alpinelinux 01.png]].
 
See also:
* http://meta.wikimedia.org/wiki/Help:Images_and_other_uploaded_files
* http://meta.wikimedia.org/wiki/Help:Image_page
* http://en.wikipedia.org/wiki/Wikipedia:Extended_image_syntax
* http://www.mediawiki.org/wiki/Help:Images
* http://www.mediawiki.org/wiki/Help:Managing_files
* http://meta.wikimedia.org/wiki/Help:Navigational_image
 
== Other Boxes ==
{{Box|Heading:|<nowiki>{{Box|Heading:|Body}}</nowiki>}}
{{Box|Heading:|<nowiki>{{Box|Heading:|Body then border-color then background-color|#DF0000|#FFDFDF}}</nowiki>|#DF0000|#FFDFDF}}
{{Tip|<nowiki>{{Tip|Write your Tip here.}}</nowiki>}}
{{Note|<nowiki>{{Note|Write your Note here.}}</nowiki>}}
{{Warning|<nowiki>{{Warning|Write your Warning here.}}</nowiki>}}
{{Todo|<nowiki>{{Todo|Write your Todo here.}}</nowiki>}}
 
== Downloads ==
In general when pointing to Alpine Linux downloads stick with the '''[[Downloads|Downloads Page]]''', but if you for any reason need to include direct download information, do so by using one of below.
 
{| cellspacing="3"
|- valign="top"
|width="33%" class="ClassForFutureCSS" |
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code><nowiki>{{Download|alpine}}</nowiki></code></p>
For standard</div>
|width="33%" class="ClassForFutureCSS" |
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code><nowiki>{{Download|alpine-mini}}</nowiki></code></p>
For mini</div>
|width="33%" class="ClassForFutureCSS" |
<div style="padding: .4em .9em .1em">
<p style="text-align:center"><code><nowiki>{{DownloadDev|alpine}}</nowiki></code></p>
For standard</div>
|- valign="top"
| <div style="padding: .4em .9em .9em"><center>{{Download|alpine}}</center></div>
| <div style="padding: .4em .9em .9em"><center>{{Download|alpine-mini}}</center></div>
| <div style="padding: .4em .9em .9em"><center>{{DownloadDev|alpine}}</center></div>
|}
=== Links ===
*<code><nowiki>{{#latestalp:alpine|url}}</nowiki></code> will give you latest download url for Alpine Linux Standard:<br/>
:{{#latestalp:alpine|url}}
*<code><nowiki>{{#latestalp:alpine-mini|url}}</nowiki></code> will give you latest download url for Alpine Linux mini:<br/>
:{{#latestalp:alpine|url}}
<big>'''Example:'''</big><br/>
Start from <nowiki>[{{#latestalp:alpine|url}}</nowiki> Downloading latest Alpine Linux Standard], than continue ...
'''produces:'''<br/>
Start from [{{#latestalp:alpine|url}} Downloading latest Alpine Linux Standard], than continue ...
 
 
 
== Advanced ==
<nowiki>#REDIRECT [[pagename]]</nowiki>
 
<nowiki>[[Category:Category name]]</nowiki>
 
To link to a Category page without adding the page to the category: <nowiki>[[:Category:Not in this category]]</nowiki>
 
 
<nowiki>{{Delete|Message.}}</nowiki> produces:
<center>
{|style="width: 48em; padding:2px; margin:0; margin-bottom:10px; background-color:#f1f1de; border:1px solid #cc9; -moz-border-radius-bottomright: 0.5em; -moz-border-radius-bottomleft: 1em; border-radius-bottomright: 0.5em; border-radius-bottomleft: 1em; -webkit-border-bottom-right-radius: 0.5em; -webkit-border-bottom-left-radius: 1em;"
|<div style="font-size: 1.5em; font-weight:bold; text-align:center;"> [[Image:Tango-user-trash-full.png|48px|left|link=]] This material is proposed for deletion ... </div><p style="text-align: center; font-size: 87%;">Message.
([[{{TALKPAGENAME}}|Discuss]]) Make sure no other pages link here and check the page's history before deleting.</p>
|}</center>
 
<nowiki>{{Obsolete|Alternate message.}}</nowiki> produces:
<center>
{|style="width: 48em; padding:2px; margin:0; margin-bottom:10px; background-color:#f1f1de; border:1px solid #cc9; -moz-border-radius-bottomright: 0.5em; -moz-border-radius-bottomleft: 1em; border-radius-bottomright: 0.5em; border-radius-bottomleft: 1em; -webkit-border-bottom-right-radius: 0.5em; -webkit-border-bottom-left-radius: 1em;"
|<div style="font-size: 1.5em; font-weight:bold; text-align:center;"> [[Image:Out_of_date_clock_icon.svg‎|54px|left|link=]] This material is obsolete ... </div><p style="text-align: center; font-size: 87%;">Alternate message.
([[{{TALKPAGENAME}}|Discuss]])</p>
|}</center>
 
<nowiki>{{Merge|Page to merge with|Additional message.}}</nowiki> produces:
<center>
{|style="width: 48em; padding:2px; margin:0; margin-bottom:10px; background-color:#f6f6f6; border:1px solid #aaa; -moz-border-radius-bottomright: 0.5em; -moz-border-radius-bottomleft: 1em; border-radius-bottomright: 0.5em; border-radius-bottomleft: 1em; -webkit-border-bottom-right-radius: 0.5em; -webkit-border-bottom-left-radius: 1em;"
|<div style="font-size: 1.5em; font-weight:bold; text-align:center;"> [[Image:Tango-two-arrows.png‎|75px|left|link=]] This material is proposed for merging ... </div><p style="text-align: center; font-size: 87%;">It should be merged with [[Page to merge with]].{{Ifn|Additional message.| Additional message.}}
([[{{TALKPAGENAME}}|Discuss]])</p>
|}</center>
 
<nowiki>{{Move|New page name|Reason.}}</nowiki> produces:
<center>
{|style="width: 48em; padding:2px; margin:0; margin-bottom:10px; background-color:#f6f6f6; border:1px solid #aaa; -moz-border-radius-bottomright: 0.5em; -moz-border-radius-bottomleft: 1em; border-radius-bottomright: 0.5em; border-radius-bottomleft: 1em; -webkit-border-bottom-right-radius: 0.5em; -webkit-border-bottom-left-radius: 1em;"
|<div style="font-size: 1.5em; font-weight:bold; text-align:center;"> [[Image:Tango-go-next.png‎|48px|left|link=]] This page is proposed for moving ... </div><p style="text-align: center; font-size: 87%;">It should be renamed to [[New page name]]. Reason.
([[{{TALKPAGENAME}}|Discuss]])</p>
|}</center>
 
<nowiki>{{Draft|Alternate message.}}</nowiki> produces:
<center>
{|style="width: 48em; padding:2px; margin:0; margin-bottom:10px; background-color:#f6f6f6; border:1px solid #aaa; -moz-border-radius-bottomright: 0.5em; -moz-border-radius-bottomleft: 1em; border-radius-bottomright: 0.5em; border-radius-bottomleft: 1em; -webkit-border-bottom-right-radius: 0.5em; -webkit-border-bottom-left-radius: 1em;"
|<div style="font-size: 1.5em; font-weight:bold; text-align:center;"> [[Image:Underconstruction_clock_icon_gray.svg‎|64px|left|link=]] This material is work-in-progress ... </div><p style="text-align: center; font-size: 87%;">Alternate message. <i>(Last edited by
{{REVISIONUSER}} on {{REVISIONDAY}} {{Month|{{REVISIONMONTH}}}} {{REVISIONYEAR}}.)</i></p>
|}</center>
 
<nowiki>{{Expand|Alternate message.}}</nowiki> produces:
<center>
{|style="width: 48em; padding:2px; margin:0; margin-bottom:10px; background-color:#f6f6f6; border:1px solid #aaa; -moz-border-radius-bottomright: 0.5em; -moz-border-radius-bottomleft: 1em; border-radius-bottomright: 0.5em; border-radius-bottomleft: 1em; -webkit-border-bottom-right-radius: 0.5em; -webkit-border-bottom-left-radius: 1em;"
|<div style="font-size: 1.5em; font-weight:bold; text-align:center;"> [[Image:Tango-view-fullscreen.png‎|48px|left|link=]] This material needs expanding ... </div><p style="text-align: center; font-size: 87%;">Alternate message.</p>
|}</center>
 
 
; Including templates/pages
<pre>
{{T}} includes [[Template:T]]
{{:Name}} includes [[Name]]
{{subst:T}} or {{subst::Name}
{{msgnw:T}} includes T in <nowiki> style
</pre>
 
=== Template tools ===
 
<pre>
{{T|1=a=alpha|reason=...}}
  {{{1|default}}}
  {{{reason}}}
 
Explicitly named/numbered args are trimmed, to preserve whitespace have to use implicitly numbered args.
Inside a template, substrings beginning with "*", "#", ":", or ";" are automatically prefixed by a
newline. Use `a{{{dummy|;}}}b` to generate `a;b`. (`dummy` could be the empty string.)
 
Use {{ns:0}} for empty string.
</pre>
 
[[Template:Cat]] uses <nowiki>{{#tag:nowiki|...}}</nowiki> around its <nowiki>{{{2}}}</nowiki>.
 
<nowiki>{{</nowiki>if|<var>value</var>|<var>then</var>|<var>else</var>}} yields <var>then</var> if <var>value</var> isn't blank; otherwise it yields <var>else</var>.
One limitation: <nowiki>{{</nowiki>if|2=<var>then</var>}} yields <var>then</var> (but works properly if <var>value</var> is defined and empty, or <var>else</var> is defined).
 
<nowiki>{{</nowiki>ifz|<var>value</var>|<var>result</var>}} yields <var>result</var> if <var>value</var> is blank.
 
<nowiki>{{</nowiki>ifn|<var>value</var>|<var>result</var>}} yields <var>result</var> if <var>value</var> isn't blank.
One limitation: <nowiki>{{</nowiki>ifn|2=<var>result</var>}} yields <var>result</var> (but works properly if <var>value</var> is defined and empty).
 
<nowiki>{{</nowiki>ifeq|<var>value</var>|<var>test</var>|<var>then</var>|<var>else</var>}} yields <var>then</var> if <var>value</var> equals <var>test</var>; otherwise it yields <var>else</var>.
 
=== Making new '''Template:Foo''' ===
 
<pre><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></pre>
 
== Additional Notes (not displayed) ==
 
<div style="display:none;">
<nowiki>
 
While "display: none" produces nothing, "visibility: hidden" produces blank spaces replacing the content; its opposite is "visibility: visible".
 
 
{| class="collapsible wikitable" style="width:34em"
...
|}
 
Can I make transparent borders and rules on a table?
I think the easiest way to write this is using wiki table notation with a different background for the table and for each row.
 
{|style="background:white"
|- style="background:lightgrey;"
| abc || def ||ghi
|- style="background:lightgrey;"
| jkl || mno || pqr
|}
 
 
<ol style="list-style-type:lower-roman">
 
<pre>
Indented ordered lists:
<ul>
#abc
#def
</ul>
or, to use different starting value:
<ul>
  <ol start=3> <!-- invalid in 4, but works -->
    <li>abc
    <li value=40>def
  </ol>
</ul>
 
</pre>
 
 
{{TALKPAGENAME}}
[[wikipedia:Sunflower]]
{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}|action=raw}}
{{fullurl:pagetitle|action=edit}}
The reserved name [[#top]] always links to the top of a page.
On page A:B/c/d, where A is a namespace with the subpage feature enabled, {{BASEPAGENAME}} gives B/c and {{SUBPAGENAME}} gives d
: [[../]] links to the parent of the current subpage, e.g., on A/b it links to A, on A/b/c it links to A/b
: [[../s]] links to a sibling of the current subpage, e.g., on A/b, it links to A/s
: [[/s]] links to a subpage, e.g. on A it is the same as [[A/s]]. Because of this, linking from a namespace where the subpage feature is enabled to a page in the main namespace with a name starting with "/", requires a workaround: put a colon before the pagename.
: Linking to an anchor of an ancestor in these forms does not work.
The first letter of articles is automatically capitalized, so wikipedia goes to the same place as Wikipedia. Capitalization matters after the first letter.
 
 
Writing a symbol over another one: <span style="position:absolute;">o</span>x
 
before a box?
<div style="clear: both;"></div>
 
{{localurl:foo|printable=yes}} ~~> /w/index.php?title=foo&printable=yes
{{fullurl:...}} includes http://{{SERVERNAME}}{{localurl:...}
 
{{urlencode:string|WIKI}} (uses _ and %C3) or |QUERY (uses + and %C3) or |PATH (uses %20); default was WIKI, became QUERY
{{anchorencode:string}} for #section_anchors
 
{{ns:0}} ~~> ""
{{lc:StRing}}
{{lcfirst:StRing}}
{{plural:2|is|are}}
 
{{nowrap|text}} ~~>
<span style="white-space:nowrap">{{{1}}}</span>
 
{{inlinepre|text}} ~~>
<span style="padding:2px; background:#F9F9F9; border:1px dashed #2F6FAB; font:0.9em monospace;">{{{1}}}</span>
 
{{right|text}} ~~>
<div align="right">{{{1}}}</div>
 
{{rightcolumn|text}} ~~>
<div style="float:right; clear:right;">{{{1}}}</div>
;; stacks with anything else floated in rightcolumn
 
{{border|text}} ~~>
<span style="display:inline"><span style="display:table-cell; border-collapse:collapse; border: solid 1px #ddd;">{{{1}}}</span></span>
 
{{center|text}} ~~>
<div align="center">{{{1}}}</div>
 
{{hidden|header|content|fwl=bold|bg1=transparent|ta1=center|headercss=|fw2=normal|bg2=transparent|ta2=left|contentcss=}} ~~>
<div class="NavFrame" style="border:none;"><!--
--><div class="NavHead" style="font-weight:{{{fw1|bold}}};background-color:{{{bg1|transparent}}};text-align:{{{ta1|center}}};{{{headercss|}}}"><!--
-->{{{header|{{{1}}}}}}<!--
-->&nbsp;</div><!--
--><div class="NavContent" style="display:none;font-weight:{{{fw2|normal}}};background-color:{{{bg2|transparent}}};text-align:{{{ta2|left}}};{{{contentcss|}}}"><!--
-->{{{content|{{{2}}}}}}<!--
--></div></div>
 
{{tag|ref|content=hello}} ~~> <ref>hello</ref>
{{tag|font|open|content=hello}} ~~> <font>hello
{{tag|ref|open|params=group=note}} ~~> <ref group=note>
{{tag|br|single}} ~~> <br />
==>
<code style="white-space:nowrap;">{{#switch:{{{2|pair}}}
|c|close  = <!--nothing-->
|s|single
|o|open
|p|pair  = &lt;{{{1|tag}}}{{#if:{{{params|}}}|&#32;{{{params}}}}}
}}{{#switch:{{{2|pair}}}
|c|close  = {{{content|}}}
|s|single = &#32;&#47;&gt;
|o|open  = &gt;{{{content|}}}
|p|pair  = &gt;{{{content|...}}}
}}{{#switch:{{{2|pair}}}
|s|single
|o|open  = <!--nothing-->
|c|close
|p|pair  = &lt;&#47;{{{1|tag}}}&gt;
}}</code>
 
 
The Table of contents can be forced onto a floating table on the right hand of the screen with the code below:
  {| align="right"
  | __TOC__
  |}
 
 
Search is case-insensitive
 
Search for a phrase by enclosing it in double quotation marks.
 
You can use a wildcard *, at the end of a search term only.
 
If a word appears in a page with single quotes, you can only find it if you search for the word with quotes. Since this is rarely desirable it is better to use double quotes in pages, for which this problem does not arise. An apostrophe is identical to a single quote, therefore Mu'ammar can be found searching for exactly that (and not otherwise). A word with apostrophe s is an exception in that it can be found also searching for the word without the apostrophe and the s.
 
 
PageHistory
-----------
[Compare selected versions]
(<cur> | last)  [x] 11:35, 8 March 2012 Dubiousjim (Talk | contribs) (226 bytes) (Removed A B) (undo)
( cur | last) [x]    11:35, 8 March 2012 Dubiousjim (Talk | contribs) (232 bytes) (added B, removed NavFrame) (undo)
( cur | last) [ ]    11:34, 8 March 2012 Dubiousjim (Talk | contribs) (563 bytes) (Added A) (undo)
( cur | last) [ ]    08:43, 8 March 2012 Dubiousjim (Talk | contribs) (560 bytes) (undo)
 
"last" shows diff between that edit and the one preceding it.
"cur" shows diff between that edit and the current page (which may be newer than any edit shown, if the displayed history is stale).
 
 
The "cur" and "last" features are similar to those in Enhanced Recent Changes, except for "cur" in the first line: it is not linked in the revision history, while in the Enhanced Recent Changes it gives the differences corresponding to the last edit.
 
RecentChanges
-------------
8 March 2012
  m  11:37 Contribute‎ (diff | hist) . . (-5) . . Fab (Talk | contribs)
> N    11:35 User:Dubiousjim/Sandbox‎‎ (18 changes | hist) . . (+226) . . [Dubiousjim‎ (18×)]
v N    10:43 Talk:Site improvements‎‎ (7 changes | hist) . . (+4,062) . . [Dubiousjim‎ (7×)]
              10:43 (cur | last) . . (+129) . . Dubiousjim (Talk | contribs) (Suggest more editing help links)
              10:39 (cur | last) . . (+62) . . Dubiousjim (Talk | contribs) (Privacy policy/copyright link)
              10:37 (cur | last) . . (+124) . . Dubiousjim (Talk | contribs) (suggest link to Special:Version)
              10:35 (cur | last) . . (+230) . . Dubiousjim (Talk | contribs) (Add some more wiki suggestions)
          m  10:32 (cur | last) . . (-33) . . Dubiousjim (Talk | contribs) (markup error)
              10:31 (cur | last) . . (+857) . . Dubiousjim (Talk | contribs) (Add some more wiki suggestions)
          N    10:19 (cur | last) . . (+2,693) . . Dubiousjim (Talk | contribs) (Create page)
The "diff" and "last" links here works like "last" in PageHistory. The "cur" links work like "cur" in PageHistory, except that in RecentChanges it's also enabled for the topmost edit. The "n changes" link (for non-New pages) shows a diff of original state vs all the grouped changes together.
 
 
 
 
 
 
 
 
 
{{Codeline|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 {{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.
 
 
How to move a page (Wikipedia)
 
A common example: moving a userspace draft into place. The intended article name is entered without any prefixes.
 
A move will fail if a page already exists at the target name, unless it is simply a redirect to the present name that has never been modified (check the edit history). The steps for moving a page are as follows:
 
    With the page to be moved displayed, choose the "move" option near the top of the page. In the default Vector skin, this is in a drop-down menu to the right of the screen, after "History" and the "Watchlist" star (see picture). In the Monobook skin, it is a tab at the top. You'll be asked for a new name for the page, and given the option to also move the page's talk page (this box should usually be left checked). Complete the "Reason for move" field (which is like an edit summary). Although filling out the "Reason" field isn't required, you should state a reason for the page move.
    When ready, click the move button and, if successful, the page will be renamed to the new title. The old title will become a redirect page, so any links to the old title will still go to the new page. However, note that double redirects (pages that redirect to the original page), will not automatically follow to the new page, so you will have to refer them manually (as explained at How to fix a double redirect and Checking for double redirects). However, if you're an administrator, you can move pages without leaving a redirect behind.
    Open the what-links-here for that page (there may be a shortcut link on the page-moved summary screen to let you do this, but the what-links-here link will in any case be in the toolbox, which is near the bottom of the sidebar unless you've customized your skin away from the default Vector).
    In the section of that page marked filters, click on the button labeled "Hide links". This will result in the page only showing redirects to the prior name. Open each of the redirect pages (best to do so in new tabs), click edit this page for each one, and change their target to the name of the page to which you have moved the page. Though this is an important cleanup step, if you miss some, they will normally be fixed by a bot shortly afterwards.
    If there are more than 50 redirects listed (rare) on the "what links here" page, don't forget to navigate to all parts of the list using the "next 50" or other links available.
    Since the article name is reflected in the lead section, that section may need to be updated to be consistent with the new name.
    If you moved an article which contains any non-free content (such as images or sound clips), you will need to edit the files' own Wikipedia page, changing the non-free use rationale to refer to the new article title. This is to ensure continued compliance with the non-free content criteria (part 10c), which if not followed, may result in the file's speedy deletion.
 
Once the page has been moved, this will be recorded in the Move Log and a "move has succeeded" message will be displayed.
 
 
Console and Text browsers
 
Warning: Many console browsers will convert text in edit boxes to the encoding in use by your terminal (or what the browser thinks is your terminal's encoding which may not be the same thing) either at page load time (links and lynx) or when editing a field (w3m). If your terminal encoding is UTF-8 this is not a problem but if your terminal is using a legacy encoding (or is using UTF-8 but your browser thinks it's using a legacy encoding) then this is likely to destroy characters that are not present in the encoding your terminal is using when you save the page after editing.
 
 
ELinks
 
    Text only, but renders tables and frames.
    Supports HTTP authentication.
    Users can use their text editor of choice to edit textarea fields.
    Problems with editing UTF-8; set "User-agent identification" (in setup->option manager->protocols->http) to something like "Lynx/elinks/%v (textmode; %s; %t-%b)" to get non-ascii characters as hex codes.
    View is enhanced (especially of diffs) by using the following user.css and lua hook file (place in ${HOME}/.elinks and enable via option manager)
 
 
user.css:
 
/*
1. place in ~/.elinks
2. set user css to be "user.css" (no path, relative to ~/.elinks)
3. use document colors: use 1 or 2
*/
 
.diffchange {
        color: red;
        font-weight: bold;
}
 
.diff-deletedline {
        color: green;
}
 
.diff-addedline {
        color: cyan;
}
 
a.new {
        color: cyan;
        font-weight: bold;
}
 
 
 
hooks.lua:
 
--[[
lua preformatting function
 
1. lua has to be installed before compiling elinks; if this
  is the case, it is used by default
2. place this file in ~/.elinks
 
this file does:
 
show <del> and <ins> element, make <s> more evident
 
preformatting for wikipedia pages: since elinks ignores the
class attribute of <td> tags, we move it into the inner
<div> element
 
]]
 
testing=false
 
function pre_format_html_hook (url, html)
  -- formatting for <s> <del> <ins>
  html = string.gsub(html, '<[sS]>', '<s>[S:')
  html = string.gsub(html, '</[sS]>', ':S]</s>')
  html = string.gsub(html, '<[dD][eE][lL]>', '<s>[DEL:')
  html = string.gsub(html, '</[dD][eE][lL]>', ':DEL]</s>')
  html = string.gsub(html, '<[iI][nN][sS]>', '<s>[INS:')
  html = string.gsub(html, '</[iI][nN][sS]>', ':INS]</s>')
 
  -- diff-addedline and diff-deletedline classes
  if string.find(url, "diff=", 1, 1) or testing then
    html = string.gsub(html, '<td class="diff[-]addedline"><div>',
                            '<td><div class="diff-addedline">')
    html = string.gsub(html, '<td class="diff[-]deletedline"><div>',
                            '<td><div class="diff-deletedline">')
  end
 
  return html
end
 
Links
 
    In old versions the login may be broken. (Try to check referrer sending and cookie handling. If everything fails try to use ELinks, and check the same settings.)
 
Lynx
 
    Users can use their text editor of choice to edit textarea fields (this feature needs to be enabled at compile time)
    Forces wrapping of very long lines in a textarea, which is a problem in editing some articles.
    Display options for non-ASCII characters affect editing.
    Most tables are rendered as simple text.
    Viewing of diffs and redlinks can be improved by adding the following to the lynx.lss configuration file:
 
            span.diffchange:bold:brightred
            td.diff-deletedline:bold:green
            td.diff-addedline:bold:cyan
            a.new:bold:cyan
 
 
</nowiki>
</div>

Revision as of 07:30, 24 March 2012