|
|
Line 8: |
Line 8: |
| Simple as that! | | Simple as that! |
|
| |
|
| <languages />
| | For more information, see the official [https://www.mediawiki.org/w/index.php?title=Help:Advanced_editing MediaWiki documentation] |
| {{PD Help Page}}
| |
| {{see also|Help:Formatting|Help:Categories}}
| |
| <translate>
| |
| <!--T:1-->
| |
| <tvar name="1">{{ll|Help:Editing}}</tvar> covers the basics.
| |
| | |
| == [[w:Wikitext|Wikitext]] markup guide – crafting your page's appearance == <!--T:2-->
| |
| </translate>
| |
| * <translate><!--T:3--> You can experiment using the [[<tvar name="1">Project:Sandbox</tvar>|Sandbox]].</translate>
| |
| * <translate><!--T:4--> Details on {{<tvar name=1>ll|Help:HTML in wikitext</tvar>|wikitext's HTML tags}}.</translate>
| |
| | |
| <translate>
| |
| <!--T:5-->
| |
| Use the following Wikitext markup to tailor the appearance of your page:
| |
| | |
| === Arranging your words – lines, lists, paragraphs, and sections === <!--T:6-->
| |
| </translate>
| |
| <section begin="lists" />
| |
| {| class="wikitable"
| |
| |-
| |
| ! <translate><!--T:7--> Rendering</translate>
| |
| ! <translate><!--T:8--> Wikitext</translate>
| |
| |-
| |
| |
| |
| '''<translate><!--T:9--> Drafting sections and subsections</translate>'''
| |
| <translate><!--T:10--> Begin a section with a header line</translate>
| |
| | |
| {{Note|1=<translate><!--T:11--> The top-level heading like the page title is indicated by a single equal (<tvar name=1><code>{{=}}</code></tvar>) sign.</translate>}}
| |
| | |
| <blockquote>
| |
| <!-- This code prevents confusion in the section editing feature -->
| |
| <div class="mw-heading2"><translate><!--T:12--> A section</translate></div>
| |
| <div class="mw-heading3"><translate><!--T:13--> A sub-section</translate></div>
| |
| <div class="mw-heading4"><translate><!--T:14--> Another sub-subsection</translate></div>
| |
| </blockquote>
| |
| | |
| * <translate><!--T:15--> Avoid using first-level headings (<tvar name=1><code>=</code></tvar>); rather, begin with a second-level heading (<tvar name=2><code><nowiki>==</nowiki></code></tvar>).</translate>
| |
| * <translate><!--T:16--> Avoid jumping levels; for example, don't go from second to fourth level.</translate>
| |
| * <translate><!--T:17--> If an article has four or more parts, a {{<tvar name=1>ll|Help:Table of contents#Table of contents (TOC)</tvar>|table of contents}} will be generated automatically.</translate>
| |
| * <translate><!--T:18--> Sort the subsections in an appropriate order.</translate> <translate><!--T:19--> When listing countries, for instance, sort them alphabetically as opposed to, say, according to their respective populations inside the [[w:OECD|OECD]] or in any other [[wikt:haphazard|haphazardous]] order.</translate>
| |
| * <translate><!--T:20--> Use HTML heading tags and close headings without slashes, if you wish to keep them out of the TOC.</translate> <translate><!--T:21--> For example:</translate> <syntaxhighlight lang="html"><h4><translate nowrap><!--T:22--> Subsection with heading too low level to be in the TOC</translate><h4></syntaxhighlight>
| |
| | <syntaxhighlight lang="wikitext">
| |
| <translate nowrap>
| |
| == A section == <!--T:23-->
| |
| | |
| === A sub-section === <!--T:24-->
| |
| | |
| ==== Another sub-subsection ==== <!--T:25-->
| |
| </translate>
| |
| </syntaxhighlight>
| |
| |-
| |
| | '''<translate><!--T:26--> [[w:Newline|Newline]]:</translate>'''
| |
| | |
| * <translate><!--T:27--> Adding a new line has no effect.</translate>
| |
| | |
| <blockquote>
| |
| <translate><!--T:28--> This is a line.</translate>
| |
| <translate><!--T:29--> This is still part of the same paragraph.</translate>
| |
| </blockquote>
| |
| | |
| * <translate><!--T:30--> An empty line starts a new paragraph or ends a list or indented part.</translate> <translate><!--T:31--> The <tvar name=1>{{tag|p|open}}</tvar> tag can disable a paragraph until <tvar name="2">{{tag|p|close}}</tvar> or the end of the section.</translate>
| |
| | |
| <blockquote>
| |
| <translate><!--T:32--> This is a paragraph.</translate>
| |
| <p>
| |
| <translate><!--T:33--> This is a continuation of the paragraph.</translate>
| |
| <translate><!--T:34--> But it appears after an empty line due to the <tvar name="1">{{tag|p|open}}</tvar> and <tvar name="2">{{tag|p|close}}</tvar> tags.</translate>
| |
| </p>
| |
| </blockquote>
| |
| | |
| <blockquote>
| |
| <translate><!--T:35--> This is a line.</translate>
| |
| <div>
| |
| <translate><!--T:36--> This is another line appearing as a second new paragraph instead of a third paragraph due to the <tvar name=1>{{tag|div|open}}</tvar> and <tvar name="2">{{tag|div|close}}</tvar> tags.</translate>
| |
| </div>
| |
| </blockquote>
| |
| | |
| * <translate><!--T:37--> In a list, a newline is used to separate individual items and subitems, enhancing the visual structure and readability of the list content in MediaWiki syntax.</translate> <translate><!--T:38--> See <tvar name="1">{{ll|Help:List}}</tvar> for examples.</translate>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| <translate nowrap><!--T:39--> This is a line.</translate>
| |
| <translate nowrap><!--T:40--> This is still part of the same paragraph.</translate>
| |
| | |
| <translate nowrap><!--T:41--> This is a paragraph.</translate><p><translate nowrap><!--T:42--> This is a continuation of the paragraph.</translate> <translate nowrap><!--T:43--> But it appears after an empty line due to the <tvar name="1"><p></tvar> and <tvar name="2"></p></tvar> tags.</translate></p>
| |
| | |
| <translate nowrap><!--T:44--> This is a line.</translate><div><translate nowrap><!--T:45--> This is another line appearing as a second new paragraph instead of a third paragraph due to the <tvar name=1><div></tvar> and <tvar name=2></div></tvar> tags.</translate></div>
| |
| </syntaxhighlight>
| |
| |-
| |
| | <blockquote><translate><!--T:46--> Lines can be broken <tvar name="1"><br/></tvar> without beginning another paragraph.</translate></blockquote>
| |
| | |
| * <translate><!--T:47--> Kindly don't overuse this.</translate>
| |
| * <translate><!--T:48--> Don't begin a {{<tvar name="1">ll|Help:link</tvar>|link}}, ''italics'' or '''bold''' on one line and end it on the next; instead, close markup per line.</translate>
| |
| | |
| | <syntaxhighlight lang="wikitext"><translate nowrap><!--T:49--> Lines can be broken <tvar name="1"><br/></tvar> without beginning another paragraph.</translate></syntaxhighlight>
| |
| |-
| |
| | {{ll|Help:List|2=<translate><!--T:50--> Unordered Lists</translate>}}
| |
| | |
| * <translate><!--T:51--> Start a line with asterisks (<tvar name=1><code>*</code></tvar>) to create the first item in an unordered list.</translate>
| |
| ** <translate><!--T:52--> Use two asterisks for a sub-item.</translate>
| |
| *** <translate><!--T:53--> Increase the number of asterisks for deeper levels.</translate>
| |
| * <translate><!--T:54--> Each line break signifies a new item in the list.</translate>
| |
| <translate><!--T:55--> A line starting without a star marks the end of the list.</translate>
| |
| * <translate><!--T:56--> You can start over with a new list</translate>
| |
| | |
| <translate><!--T:57--> Now you are ready to create well-structured unordered lists.</translate>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| * <translate nowrap><!--T:58--> Start a line with asterisks (<tvar name=1><code>*</code></tvar>) to create the first item in an unordered list.</translate>
| |
| ** <translate nowrap><!--T:59--> Use two asterisks for a sub-item.</translate>
| |
| *** <translate nowrap><!--T:60--> Increase the number of asterisks for deeper levels.</translate>
| |
| * <translate nowrap><!--T:61--> Each line break signifies a new item in the list.</translate>
| |
| <translate nowrap><!--T:62--> A line starting without a star marks the end of the list.</translate>
| |
| * <translate nowrap><!--T:63--> You can start over with a new list</translate>
| |
| | |
| <translate nowrap><!--T:64--> Now you are ready to create well-structured unordered lists.</translate>
| |
| </syntaxhighlight>
| |
| |-
| |
| | {{ll|Help:List|2=<translate><!--T:65--> Ordered Lists</translate>}}
| |
| | |
| # <translate><!--T:66--> Use a hashtag (<tvar name=1><code>#</code></tvar>) at the beginning of each line to signify the order.</translate>
| |
| ## <translate><!--T:67--> Use two hashtags (<tvar name=1><code>##</code></tvar>) for a sub-item.</translate>
| |
| ## <translate><!--T:68--> Continue numbering to maintain the sequence and logical flow of information.</translate>
| |
| # <translate><!--T:69--> Add a new line between each item for improved readability.</translate>
| |
| <translate><!--T:70--> A line starting without a hashtag marks the end of the list.</translate>
| |
| # <translate><!--T:71--> An ordered list starts with 1.</translate>
| |
| # <translate><!--T:72--> Then 2, etc.</translate>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| # <translate nowrap><!--T:73--> Use a hashtag (<tvar name=1><code>#</code></tvar>) at the beginning of each line to signify the order.</translate>
| |
| ## <translate nowrap><!--T:74--> Use two hashtags (<tvar name=1><code>##</code></tvar>) for a sub-item.</translate>
| |
| ## <translate nowrap><!--T:75--> Continue numbering to maintain the sequence and logical flow of information.</translate>
| |
| # <translate nowrap><!--T:76--> Add a new line between each item for improved readability.</translate>
| |
| <translate nowrap><!--T:77--> A line starting without a hashtag marks the end of the list.</translate>
| |
| # <translate nowrap><!--T:78--> An ordered list starts with 1.</translate>
| |
| # <translate nowrap><!--T:79--> Then 2, etc.</translate>
| |
| </syntaxhighlight>
| |
| |-
| |
| | {{ll|Help:List|2=<translate><!--T:80--> Mixed Lists</translate>}}
| |
| * <translate><!--T:81--> This mixed list begins with an unordered list (<tvar name=1><code>*</code></tvar>).</translate>
| |
| *# <translate><!--T:82--> To create a subitem of an ordered list under an unordered list use an asterisk and a hashtag (<tvar name=1><code>*#</code></tvar>).</translate>
| |
| *#* <translate><!--T:83--> To create a deeper sub-item of an unordered list within an ordered list, add another asterisk (<tvar name=1><code>*#*</code></tvar>).</translate>
| |
| *#* <translate><!--T:84--> You can also break <tvar name="1"><br/></tvar> lines in a list.</translate>
| |
| | |
| |<syntaxhighlight lang="wikitext">
| |
| * <translate nowrap><!--T:85--> This mixed list begins with an unordered list (<tvar name=1><code>*</code></tvar>).</translate>
| |
| *# <translate nowrap><!--T:86--> To create a subitem of an ordered list under an unordered list use an asterisk and a hashtag (<tvar name=1><code>*#</code></tvar>).</translate>
| |
| *#* <translate nowrap><!--T:87--> To create a deeper sub-item of an unordered list within an ordered list, add another asterisk (<tvar name=1><code>*#*</code></tvar>).</translate>
| |
| *#* <translate nowrap><!--T:88--> You can also break <tvar name="1"><br/></tvar> lines in a list.</translate>
| |
| </syntaxhighlight>
| |
| |-
| |
| | {{ll|Help:List|2=<translate><!--T:89--> Definition Lists</translate>}}
| |
| | |
| <translate><!--T:90--> A definition list consists of a series of term-definition pairs.</translate>
| |
| | |
| * <translate><!--T:91--> Use a semicolon (<tvar name=1><code>;</code></tvar>) to indicate the start of a term.</translate>
| |
| * <translate><!--T:92--> Place the term immediately after the semicolon.</translate>
| |
| * <translate><!--T:93--> Use a colon (<tvar name=1><code>:</code></tvar>) to introduce the definition associated with the term.</translate>
| |
| * <translate><!--T:94--> Place the definition on the line following the colon.</translate>
| |
| | |
| <blockquote>
| |
| ; <translate><!--T:95--> Wiki</translate>
| |
| : <translate><!--T:96--> A wiki (/ˈwɪki/ ⓘ WI-kee) is a form of online hypertext publication that is collaboratively edited and managed by its own audience directly through a web browser.</translate> <translate><!--T:97--> See [[w:Wiki]].</translate>
| |
| ; <translate><!--T:98--> Web Browser</translate>
| |
| : <translate><!--T:99--> A web browser is an application for accessing websites.</translate> <translate><!--T:100--> See [[w:Web browser]]</translate>
| |
| </blockquote>
| |
| | |
| <translate><!--T:101--> Signifying one item per line is most suitable, rather than adding a new line before the colon (<tvar name=1><code>:</code></tvar>).</translate>
| |
| | |
| | <syntaxhighlight lang="tid">
| |
| ; <translate nowrap><!--T:102--> Wiki</translate>
| |
| : <translate nowrap><!--T:103--> A wiki (/ˈwɪki/ ⓘ WI-kee) is a form of online hypertext publication that is collaboratively edited and managed by its own audience directly through a web browser.</translate> <translate><!--T:104--> See [[w:Wiki]].</translate>
| |
| ; <translate nowrap><!--T:105--> Web Browser</translate>
| |
| : <translate nowrap><!--T:106--> A web browser is an application for accessing websites.</translate> <translate><!--T:107--> See [[w:Web browser]]</translate>
| |
| </syntaxhighlight>
| |
| |-
| |
| | '''<translate><!--T:108--> Indentation</translate>'''
| |
| | |
| <translate><!--T:109--> A paragraph is indented when a colon (<tvar name=1><code>:</code></tvar>) is specified at the beginning of a line, as explained in {{<tvar name=2>ll|Help:List</tvar>|Definition Lists}}.</translate>
| |
| | |
| <blockquote>
| |
| : <translate><!--T:110--> An indented line.</translate>
| |
| <translate><!--T:111--> A new line starts a new non-indented paragraph.</translate>
| |
| </blockquote>
| |
| | |
| * <translate><!--T:112--> This is frequently utilized for discussing on {{<tvar name="1">ll|Help:Talk page</tvar>|talk pages}}.</translate>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| : <translate nowrap><!--T:113--> An indented line.</translate>
| |
| <translate nowrap><!--T:114--> A new line starts a new non-indented paragraph.</translate>
| |
| </syntaxhighlight>
| |
| |-
| |
| | '''<translate><!--T:115--> A blockquote</translate>'''
| |
| | |
| <translate><!--T:116--> A blockquote style is used to highlight a specific section of text from an external source or to distinguish it from the surrounding content.</translate>
| |
| | |
| <blockquote>
| |
| <translate><!--T:117--> This is a blockquote.</translate> <translate><!--T:118--> It is used to highlight quoted text or separate specific content.</translate>
| |
| </blockquote>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| <blockquote>
| |
| <translate nowrap><!--T:119--> This is a blockquote.</translate> <translate nowrap><!--T:120--> It is used to highlight quoted text or separate specific content.</translate>
| |
| </blockquote>
| |
| </syntaxhighlight>
| |
| |-
| |
| | '''<translate><!--T:121--> Horizontal dividing line</translate>'''
| |
| | |
| <translate><!--T:122--> The horizontal dividing line on a wiki page is represented by four or more consecutive hyphens (<tvar name="1"><code><nowiki>----</nowiki></code></tvar>), enhancing visual organization between sections.</translate>
| |
| | |
| <blockquote>
| |
| <translate><!--T:123--> Text above</translate>
| |
| ----
| |
| <translate><!--T:124--> Text below</translate>
| |
| </blockquote>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| <translate nowrap><!--T:125--> Text above</translate>
| |
| ----
| |
| <translate nowrap><!--T:126--> Text below</translate>
| |
| </syntaxhighlight>
| |
| |}
| |
| <section end="lists" />
| |
| <translate>
| |
| === Links === <!--T:127-->
| |
| | |
| <!--T:128-->
| |
| For more details, see <tvar name="1">{{ll|Help:Links}}</tvar>.
| |
| | |
| <!--T:130-->
| |
| General information:
| |
| </translate>
| |
| | |
| * <translate><!--T:131--> Place double square brackets around the '''target name'''</translate> – <code>{{!((}}</code> {{int|and}} <code>{{))!}}</code>
| |
| * <translate><!--T:132--> On a new page, the target name's first letter is automatically capitalized after clicking on it.</translate>
| |
| * <translate><!--T:133--> Underscores are used to represent spaces. Avoid using underscores.</translate>
| |
| * <translate><!--T:136--> When you hover over a link, it shows a preview of the linked page without you needing to click on it.</translate>
| |
| <section begin="linkstable" />
| |
| {| class="wikitable"
| |
| |-
| |
| ! <translate><!--T:137--> Rendering</translate>
| |
| ! <translate><!--T:138--> Wikitext</translate>
| |
| |-
| |
| | '''<translate><!--T:139--> Basics</translate>'''
| |
| | |
| <translate><!--T:140--> You are reading the <tvar name=1>{{ll|documentation}}</tvar>.</translate>
| |
| | |
| | <syntaxhighlight lang="wikitext"><translate nowrap><!--T:141--> You are reading the <tvar name=1>{{ll|documentation}}</tvar>.</translate></syntaxhighlight>
| |
| |-
| |
| | '''<translate><!--T:142--> Basics + {{<tvar name="1">ll|Help:Formatting</tvar>|Text formatting}}</translate>'''
| |
| | |
| <translate><!--T:143--> Links can be ''italicized'' e.g.:</translate>
| |
| | |
| <blockquote>''[[MediaWiki]]''</blockquote>
| |
| | |
| | <syntaxhighlight lang="wikitext">''[[MediaWiki]]''</syntaxhighlight>
| |
| |-
| |
| | '''<translate><!--T:144--> Interwiki links</translate>'''
| |
| | |
| <translate><!--T:145--> These link to another wiki that covers related or similar topics.</translate>
| |
| | |
| <blockquote>
| |
| <translate>
| |
| <!--T:146-->
| |
| This interwiki link points to <tvar name="1">[[w:Documentation]]</tvar> on Wikipedia.
| |
| | |
| <!--T:147-->
| |
| Its Esperanto word equivalent is <tvar name=1>[[:eo:Dokumentaro]]</tvar>.
| |
| </translate>
| |
| </blockquote>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| <translate nowrap>
| |
| <!--T:148-->
| |
| This interwiki link points to <tvar name="1">[[w:Documentation]]</tvar> on Wikipedia.
| |
| | |
| <!--T:149-->
| |
| Its Esperanto word equivalent is <tvar name=1>[[:eo:Dokumentaro]]</tvar>.
| |
| </translate>
| |
| </syntaxhighlight>
| |
| |-
| |
| | '''<translate><!--T:150--> Links to sections</translate>'''
| |
| | |
| <translate><!--T:151--> You can link to a specific section of an existing page by adding a pound (<tvar name=1><code>#</code></tvar>) and section title after specifying the page name.</translate>
| |
| | |
| <blockquote>
| |
| [[Help:Special pages#Editing Special namespace pages]]
| |
| </blockquote>
| |
| | |
| <translate><!--T:152--> If no such section exists then the link points to the beginning of the page.</translate>
| |
| <translate><!--T:153--> If a page has multiple sections with the same name, specifying the rank of the section with a number at the end.</translate>
| |
| {{tmpl|0=<translate><!--T:154--> (e.g., if there are three sections titled "<tvar name=1>$1</tvar>" and you want to link to the third, use <tvar name=2><nowiki>[[#</nowiki>$1 3<nowiki>]]</nowiki></tvar>).</translate>
| |
| |1=<translate><!--T:155--> Section title</translate>
| |
| }}
| |
| | |
| | |
| <translate><!--T:156--> See {{<tvar name=1>ll|Help:Editing FAQ#Q: Is it possible to link to a specific section header if there are multiple sections with the same name? If so, how?</tvar>|Help:Editing FAQ}}.</translate>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| [[Help:Special pages#Editing Special namespace pages|Help:Special pages]]
| |
| </syntaxhighlight>
| |
| |-
| |
| | '''{{ll|Help:Piped link|2=<translate><!--T:157--> Piped links</translate>}}'''
| |
| | |
| <translate><!--T:158--> Create a '''link label''' using a pipe symbol (<tvar name=1><code>|</code></tvar>):</translate>
| |
| | |
| <blockquote>
| |
| * [[Help:Link|<translate><!--T:159--> About links</translate>]]
| |
| </blockquote>
| |
| | |
| <translate><!--T:160--> The above produces '''About links''', linked to the article <tvar name="1">[[Help:Link]]</tvar>.</translate>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| * [[Help:Link|<translate nowrap><!--T:161--> About links</translate>]]
| |
| </syntaxhighlight>
| |
| |-
| |
| | <translate><!--T:162--> Using a '''blank link label''' will automatically fill in an appropriate link label.</translate> {{tmpl|0=<translate><!--T:163--> I.e. <tvar name=1>$1</tvar> will be replaced with <tvar name=2>$2</tvar></translate>
| |
| |1=<syntaxhighlight lang="wikitext" inline>[[Kingdom (biology)|Kingdom]]</syntaxhighlight>
| |
| |2=<syntaxhighlight lang="wikitext" inline>[[Kingdom (biology)|Kingdom]]</syntaxhighlight>
| |
| }}
| |
| | |
| <blockquote>
| |
| * <translate><!--T:164--> Parentheses:</translate> [[kingdom (biology)|kingdom]].
| |
| * <translate><!--T:165--> Colon:</translate> [[Help:Pipe|Pipe]].
| |
| </blockquote>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| * <translate><!--T:166--> Parentheses:</translate> [[kingdom (biology)|kingdom]].
| |
| * <translate><!--T:167--> Colon:</translate> [[Help:Pipe|Pipe]].
| |
| </syntaxhighlight>
| |
| |-
| |
| |
| |
| '''<translate><!--T:168--> Links to pages that don't exist</translate>'''
| |
| | |
| <blockquote><translate><!--T:169--> A link to a page which does not exist (like [[Foo|this one]]) is colored in red.</translate></blockquote>
| |
| | |
| <translate><!--T:170--> To create the page, you can click on the link.</translate> <translate><!--T:171--> See <tvar name="1">{{ll|Help:starting a new page}}</tvar> (and the naming conventions of your project, if there are).</translate>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| <translate nowrap><!--T:172--> A link to a page which does not exist (like [[Foo|this one]]) is colored in red.</translate>
| |
| </syntaxhighlight>
| |
| |-
| |
| | '''<translate><!--T:370--> Redirects</translate>'''
| |
| <translate><!--T:182--> You can create a redirect by adding the wikitext at the beginning of the page.</translate> <translate><!--T:183--> See <tvar name="1">{{ll|Help:Redirect}}</tvar>.</translate>
| |
| | |
| <syntaxhighlight lang="wikitext">#REDIRECT [[<translate nowrap><!--T:184--> United States of America</translate>]]</syntaxhighlight>
| |
| | |
| | <syntaxhighlight lang="tid">#REDIRECT [[<translate nowrap><!--T:185--> United States of America</translate>]]</syntaxhighlight>
| |
| |-
| |
| | '''<translate><!--T:186--> Magic links</translate>'''
| |
| | |
| <translate><!--T:187--> {{<tvar name=1>ll|Help:Magic links</tvar>|Magic links}} enable users to generate links automatically by typing specific keywords.</translate>
| |
| | |
| * <translate><!--T:188--> [[w:ISBN|ISBN]] book links:</translate> ISBN 0131103629 <translate><!--T:189--> (see <tvar name="1">{{ll|Help:Magic links}}</tvar>)</translate>
| |
| * <translate><!--T:190--> [[w:Request for Comments|Request for Comments]] links:</translate> RFC 234 <translate><!--T:191--> (see <tvar name="1">{{ll|rfcurl}}</tvar>)</translate>
| |
| | |
| <blockquote>
| |
| * ISBN 0131103629
| |
| * RFC 234
| |
| </blockquote>
| |
| | |
| <translate><!--T:192--> These are deprecated and generally should not be used.</translate>
| |
| | |
| | <pre><nowiki>
| |
| * ISBN 0131103629
| |
| * RFC 234</nowiki></pre>
| |
| |-
| |
| | '''<translate><!--T:193--> <tvar name=1><code>Media:</code></tvar> links</translate>'''
| |
| | |
| <translate><!--T:194--> Media links are used to reference a page containing media files.</translate>
| |
| <translate><!--T:195--> They are accessed through the <tvar name=1><code>Media</code></tvar> namespace.</translate>
| |
| | |
| <blockquote>[[Media:Test.ogg|<translate><!--T:196--> Audio</translate>]]</blockquote>
| |
| | |
| | <syntaxhighlight lang="wikitext">[[media:Test.ogg|<translate nowrap><!--T:197--> Audio</translate>]]</syntaxhighlight>
| |
| |-
| |
| | '''<translate><!--T:371--> Category links</translate>'''
| |
| | |
| <translate>
| |
| <!--T:204-->
| |
| Category links direct users to a specific category page (without categorizing the page into that category).
| |
| | |
| <!--T:205-->
| |
| To achieve this, a syntax similar to that of links is used, but with a colon (<tvar name=1><code>:</code></tvar>) added before the namespace.
| |
| </translate>
| |
| | |
| <blockquote>[[:Category:Documentation]]</blockquote>
| |
| | |
| | <pre><nowiki>[[:Category:Documentation]]</nowiki></pre>
| |
| |-
| |
| | '''<translate><!--T:206--> Special pages</translate>'''
| |
| | |
| <translate><!--T:207--> Special pages are created by the wiki software.</translate>
| |
| <translate><!--T:208--> They are accessed through the '''Special''' namespace.</translate>
| |
| | |
| <translate><!--T:209--> You can create links to special pages like "What links here" using the following format:</translate>
| |
| | |
| <blockquote>[[Special:Whatlinkshere/Help:Editing]]</blockquote>
| |
| | |
| <translate><!--T:210--> See <tvar name=1>{{ll|Help:Special pages}}</tvar> for other special pages.</translate>
| |
| | |
| | <pre>[[Special:Whatlinkshere/Help:Editing]]</pre>
| |
| |-
| |
| | '''<translate><!--T:211--> Links to previous revisions of a page, differences (diffs), and particular history pages</translate>'''
| |
| | |
| {{tmpl|0=<translate><!--T:212--> To link to an old revision, diff, or particular history pages, avoid using the standard wiki-link syntax like $1.</translate>
| |
| |1=<syntaxhighlight lang="wikitext" inline>[[<translate nowrap><!--T:213--> page</translate>]]</syntaxhighlight>
| |
| }}
| |
| <translate><!--T:214--> Instead, utilize the external link function or copy and paste the provided URLs directly.</translate>
| |
| | |
| '''<translate><!--T:215--> Linking to previous revisions of a page</translate>''' –
| |
| <translate><!--T:216--> To share an old page version of a wiki, copy the URL from the page's history and paste it where you want to share it.</translate>
| |
| | |
| <blockquote>https://www.mediawiki.org/w/index.php?title=Help:Cite&oldid=6364084</blockquote>
| |
| | |
| <translate><!--T:217--> You can also use <tvar name="1">[[Special:PermaLink]]</tvar> to do this, i.e <tvar name="2">[[Special:PermaLink/6364084]]</tvar></translate>
| |
| | |
| '''<translate><!--T:218--> Linking to Diffs:</translate>''' –
| |
| <translate><!--T:219--> To link to page differences between two revisions, copy and paste the specific URL of the page containing the diff of the compared pages.</translate>
| |
| | |
| <blockquote>https://www.mediawiki.org/w/index.php?title=Help%3ACite&diff=6364333&oldid=6364084</blockquote>
| |
| | |
| <translate><!--T:220--> You can also use <tvar name="1">[[Special:Diff]]</tvar> to do this, i.e <tvar name="2">[[Special:Diff/6364333/6364084]]</tvar></translate>
| |
| | |
| '''<translate><!--T:221--> Linking to a Specific Page from Edit History</translate>''' –
| |
| <translate><!--T:222--> Navigate to the edit history and select the "(older)" or "(earliest)" buttons to reach a particular page history, then copy the URL and paste it where you want to share it.</translate>
| |
| | |
| <blockquote>https://www.mediawiki.org/w/index.php?title=Help:Cite&action=history&offset=20170210105218%7C2391706&limit=100</blockquote>
| |
| | |
| | <pre>
| |
| https://www.mediawiki.org/w/index.php?title=Help:Cite&oldid=6364084
| |
| | |
| https://www.mediawiki.org/w/index.php?title=Help%3ACite&diff=6364333&oldid=6364084
| |
| | |
| https://www.mediawiki.org/w/index.php?title=Help:Cite&action=history&offset=20170210105218%7C2391706&limit=100
| |
| </pre>
| |
| |}
| |
| <section end="linkstable" />
| |
| <translate>
| |
| ==== External links ==== <!--T:223-->
| |
| </translate>
| |
| <translate><!--T:372--> External links do not open in a new browser window/tab in MediaWiki's default configuration.</translate><ref>{{ll|Manual:$wgExternalLinkTarget}}</ref>
| |
| | |
| {| class="wikitable"
| |
| |-
| |
| | [http://www.google.com Google], [http://www.google.com]
| |
| | <pre><nowiki>
| |
| [http://www.google.com Google],
| |
| [http://www.google.com]</nowiki></pre>
| |
| |-
| |
| | [mailto:email@example.com <translate><!--T:373--> Example of an email</translate>],
| |
| [mailto:email@example.com]
| |
| | <pre><nowiki>[mailto:email@example.com </nowiki><translate><!--T:374--> Example of an email</translate><nowiki>],
| |
| [mailto:email@example.com]</nowiki></pre>
| |
| |-
| |
| | <translate><!--T:349--> Or just provide <tvar name=1>http://www.google.com</tvar> as the URL.</translate>
| |
| * <translate><!--T:350--> Every symbol in the [[<tvar name=1>Special:MyLanguage/Help:URL</tvar>|UTF-8]] code.</translate> <translate><!--T:351--> For example:</translate>
| |
| ** <code>^</code> → <code>%5e</code>
| |
| ** <code>ā</code> (<translate><!--T:352--> LATIN SMALL LETTER A WITH MACRON</translate>) → <code>%c4%81</code>
| |
| * <translate><!--T:353--> You can also turn a blank space into an underscore.</translate>
| |
| | <syntaxhighlight lang="wikitext"><translate nowrap><!--T:369--> Or just provide <tvar name=1>http://www.google.com</tvar> as the URL.</translate></syntaxhighlight>
| |
| |}
| |
| | |
| <translate>
| |
| | |
| === Formatting texts – customizing the way it looks === <!--T:354-->
| |
| </translate>
| |
| <section begin="formatting" />
| |
| {| class="wikitable"
| |
| |-
| |
| ! <translate><!--T:226--> Rendering</translate>
| |
| ! <translate><!--T:227--> Wikitext</translate>
| |
| |- valign="top"
| |
| | ''<translate><!--T:228--> Emphasize</translate>'' (<translate><!--T:229--> italics</translate>), '''<translate><!--T:230--> strongly</translate>''' (<translate><!--T:231--> bold</translate>), '''''<translate><!--T:232--> very strongly</translate>''''' (<translate><!--T:233--> bold italics</translate>).
| |
| (<translate><!--T:234--> These are double and triple apostrophes, not double quotes.</translate>)
| |
| | |
| <small><translate><!--T:235--> Note: this can also be applied to links (e.g., <tvar name="1">''[[Wikipedia]]''</tvar></translate>).</small>
| |
| | |
| | valign="bottom | <syntaxhighlight lang="wikitext">
| |
| ''<translate nowrap><!--T:236--> Emphasize</translate>'', '''<translate nowrap><!--T:237--> strongly</translate>''',
| |
| '''''<translate nowrap><!--T:238--> very strongly</translate>'''''.
| |
| | |
| ''[[Wikipedia]]''
| |
| </syntaxhighlight>
| |
| |- valign="top"
| |
| | <translate><!--T:239--> The use of <i>italic</i> and <b>bold</b> fonts is beneficial in mathematical calculations where specific font styles are needed instead of emphasis.</translate>
| |
| : <b>F</b> = <i>m</i><b>a</b>
| |
| (<translate><!--T:240--> Most people disregard the fact that these two approaches differ in a way that is not particularly significant for graphical browsers.</translate>)
| |
| <translate><!--T:241--> However, it can have a significant impact on those who are blind.</translate>
| |
| | |
| | <syntaxhighlight lang="html">
| |
| <translate nowrap><!--T:242--> The use of <i>italic</i> and <b>bold</b> fonts is beneficial in mathematical calculations where specific font styles are needed instead of emphasis.</translate>
| |
| : <b>F</b> = <i>m</i><b>a</b>
| |
| </syntaxhighlight>
| |
| |-
| |
| | valign="top" | <translate><!--T:243--> You can write {{<tvar name=1>tmpl|0=<span style="font-variant:small-caps">$1</span></tvar>|in small caps}}</translate>
| |
| | |
| | {{#tag:syntaxhighlight|
| |
| <translate nowrap><!--T:244--> You can write {{<tvar name=1>tmpl|0=<span style="font-variant:small-caps">$1</span></tvar>|in small caps}}</translate>
| |
| |lang=wikitext}}
| |
| |- valign="top"
| |
| | <translate><!--T:245--> The typewriter font that is occasionally used for {{<tvar name="1">#tag:kbd</tvar>|technical terms}} and {{<tvar name="2">#tag:code</tvar>|computer code}}.</translate>
| |
| | |
| | {{#tag:syntaxhighlight|
| |
| <translate nowrap><!--T:246--> The typewriter font that is occasionally used for {{<tvar name="1">#tag:kbd</tvar>|technical terms}} and {{<tvar name="2">#tag:code</tvar>|computer code}}.</translate>
| |
| |lang=html}}
| |
| |- valign="top"
| |
| | <translate><!--T:247--> For captions, you can use {{<tvar name="1">#tag:small</tvar>|small text}}.</translate>
| |
| | |
| | {{#tag:syntaxhighlight|
| |
| <translate nowrap><!--T:248--> For captions, you can use {{<tvar name="1">#tag:small</tvar>|small text}}.</translate>
| |
| |lang=html}}
| |
| |- valign="top"
| |
| | <translate>
| |
| <!--T:249-->
| |
| Deleted materials can be <s>striked out</s> and new materials can be <u>underlined</u>.
| |
| | |
| <!--T:250-->
| |
| You can also denote <del>deleted material</del> and <ins>inserted material</ins> with the respective tags, preserving their semantic meaning, rather than relying solely on visual cues like strikethrough and underline.
| |
| </translate>
| |
| | |
| * <translate><!--T:251--> Editing regular articles can be done directly without using special markup to indicate deletions or insertions.</translate>
| |
| * <translate><!--T:252--> Markup can be used to indicate deleted or inserted material when revising previous remarks on talk pages.</translate>
| |
| | |
| | <syntaxhighlight lang="html">
| |
| <translate nowrap><!--T:253-->
| |
| Deleted materials can be <s>striked out</s> and new materials can be <u>underlined</u>.
| |
| | |
| <!--T:254-->
| |
| You can also denote <del>deleted material</del> and <ins>inserted material</ins> with the respective tags, preserving their semantic meaning, rather than relying solely on visual cues like strikethrough and underline.</translate>
| |
| </syntaxhighlight>
| |
| |- valign="bottom" id="subscript"
| |
| | <translate><!--T:255--> Subscript:</translate> m<sub>2</sub><br />
| |
| <translate><!--T:256--> Superscript: <tvar name="1">m<sup>2</sup></tvar> or <tvar name="2">m²</tvar></translate>
| |
| | |
| <translate><!--T:257--> Many browsers find it simpler to format lines containing the HTML entity <tvar name="1">&sup2; (²)</tvar> rather than using the <tvar name="2"><sup>2</sup></tvar> HTML tag for representing superscripted text.</translate>
| |
| | |
| ε<sub>0</sub> =
| |
| 8.85 × 10<sup>−12</sup>
| |
| C² / J m.
| |
| <br /><br />
| |
| 1 [[hectare]] = [[1 E4 m²]]
| |
| | |
| | valign="bottom" | <syntaxhighlight lang="tid">
| |
| <translate nowrap><!--T:258--> Subscript:</translate> m<sub>2</sub><br />
| |
| <translate nowrap><!--T:259--> Superscript: <tvar name="1">m<sup>2</sup></tvar> or <tvar name="2">m²</tvar></translate>
| |
| | |
| ε<sub>0</sub> =
| |
| 8.85 × 10<sup>−12</sup>
| |
| C² / J m.
| |
| <br /><br />
| |
| 1 [[hectare]] = [[1 E4 m²]]
| |
| </syntaxhighlight>
| |
| |}
| |
| <section end="formatting" />
| |
| <translate>
| |
| === Reformatting and/or disabling wikitext interpretation === <!--T:260-->
| |
| | |
| <!--T:261-->
| |
| The following provides methods for managing formatting and processing.</translate> <translate><!--T:262--> Please refer to <tvar name="1">[[Template:Tc]]</tvar> for the code <tvar name="2"><code><nowiki>{{tc}}</nowiki></code></tvar> used in the examples (see <tvar name="3">{{ll|Help:Template}}</tvar>).</translate>
| |
| | |
| {| class="wikitable"
| |
| ! <translate><!--T:263--> default</translate>
| |
| |
| |
| * <translate><!--T:264--> Interpret [[w:HTML entity|HTML entities]]</translate>
| |
| * <translate><!--T:265--> Interpret wiki markup like bolding, or italicizing text, etc.</translate>
| |
| * <translate><!--T:266--> Format text (Delete single newlines, multiple spaces, and wrap text automatically)</translate>
| |
| * <translate><!--T:267--> Create new paragraphs with double newlines</translate>
| |
| ----
| |
| <translate><!--T:268--> arrow</translate> → {{tc}}<br /><br />''<translate><!--T:269--> italics</translate>'' [[Special:MyLanguage/help:Link|<translate><!--T:270--> link</translate>]]
| |
| | valign="bottom" | <syntaxhighlight lang="tid"><translate nowrap><!--T:271--> arrow</translate> → {{tc}}
| |
| | |
| ''<translate nowrap><!--T:272--> italics</translate>''
| |
| [[help:Link|<translate nowrap><!--T:273--> link</translate>]]</syntaxhighlight>
| |
| |-
| |
| ! <translate><!--T:274--> The poem tag is used to preserve single newlines.</translate>
| |
| |
| |
| * <translate><!--T:275--> Interpret HTML entities</translate>
| |
| * <translate><!--T:276--> Interpret wiki markup like bolding, or italicizing text, etc.</translate>
| |
| * <translate><!--T:277--> Reformat text partially (Don't remove newlines, but remove multiple spaces, and wrap text automatically)</translate>
| |
| ----
| |
| <poem><translate><!--T:278--> arrow</translate> → {{tc}}<br /><br />''<translate><!--T:279--> italics</translate>''<br />[[Special:MyLanguage/help:Link|<translate><!--T:280--> link</translate>]]</poem>
| |
| | valign="bottom" | <syntaxhighlight lang="tid">
| |
| <poem><translate><!--T:281--> arrow</translate> → {{tc}}
| |
| | |
| ''<translate nowrap><!--T:282--> italics</translate>''
| |
| [[help:Link|<translate nowrap><!--T:283--> link</translate>]]</poem></syntaxhighlight>
| |
| |-
| |
| ! <nowiki>
| |
| |
| |
| * <translate><!--T:284--> Interpret HTML entities.</translate>
| |
| * <translate><!--T:285--> Don't process special wiki markup like bolding, or italicizing text, etc.</translate>
| |
| * <translate><!--T:286--> Reformat text</translate>
| |
| * <translate><!--T:287--> Ignore double newlines to avoid creating a new paragraph; hence, each paragraph must have its application.</translate>
| |
| ----
| |
| ''<translate><!--T:288--> can be applied in-line:</translate>'' <nowiki>
| |
| arrow → {{tc}}
| |
| | |
| ''italics''
| |
| [[help:Link|link]]
| |
| </nowiki> ''[[normal]] again''
| |
| | valign="bottom" | <syntaxhighlight lang="tid">
| |
| ''<translate nowrap><!--T:289--> can be applied in-line:</translate>'' <nowiki>
| |
| arrow → {{tc}}
| |
| | |
| ''italics''
| |
| [[help:Link|link]]
| |
| </nowiki>''[[normal]] again''</syntaxhighlight>
| |
| |-
| |
| ! <pre>
| |
| |
| |
| * <translate><!--T:290--> Process HTML entities</translate>
| |
| * <translate><!--T:291--> Avoid interpreting or processing any special wiki markup like bolding, or italicizing text, etc.</translate>
| |
| * <translate><!--T:292--> No text wrapping</translate>
| |
| * <translate><!--T:293--> As instructed by the browser's settings, use a fixed-width font.</translate>
| |
| ----
| |
| <pre>arrow → {{tc}}
| |
| | |
| ''italics''
| |
| [[help:Link|link]]
| |
| </pre>
| |
| | valign="bottom" | <syntaxhighlight lang="tid"><pre>arrow → {{tc}}
| |
| | |
| ''italics''
| |
| [[help:Link|link]]
| |
| </pre></syntaxhighlight>
| |
| |-
| |
| ! <translate><!--T:294--> A leading space</translate>
| |
| |
| |
| * <translate><!--T:295--> Process HTML entities</translate>
| |
| * <translate><!--T:296--> Interpret wiki markup like bolding, or italicizing text, etc.</translate>
| |
| * <translate><!--T:297--> No text wrapping</translate>
| |
| * <translate><!--T:298--> Creates a <tvar name="1">{{tag|pre|open}}</tvar> HTML element</translate>
| |
| * <translate><!--T:299--> The pre element ends with a blank line, and if there are more lines with leading spaces, a new pre element begins.</translate>
| |
| ----
| |
| <pre>
| |
| <translate><!--T:300--> arrow</translate> → {{tc}}
| |
| | |
| ''italics''
| |
| [[help:Link|link]]
| |
| | |
| | |
| IF a line of plain text begins with a space
| |
| it will be displayed exactly
| |
| as entered
| |
| in a fixed-width font
| |
| inside a grey dotted-outline box
| |
| with no line breaks
| |
| END
| |
| <translate><!--T:301--> This is handy for:</translate>
| |
| * <translate><!--T:302--> inserting preformatted text;</translate>
| |
| * <translate><!--T:303--> algorithm descriptions;</translate>
| |
| * <translate><!--T:304--> showcasing code snippets;</translate>
| |
| * <translate><!--T:305--> displaying ASCII art;</translate>
| |
| * <translate><!--T:306--> presenting chemical diagrams</translate>;
| |
| * <translate><!--T:307--> formatting poetry</translate>
| |
| </pre>
| |
| ----
| |
| {{warning|1=<translate><!--T:308--> When you make it wide, you [[w:page widening|make the entire page wide]] and hence less readable.</translate> <translate><!--T:309--> Don't begin ordinary lines with spaces.</translate>}}
| |
| {{center|1=(<translate><!--T:310--> see also hereafter</translate>)}}
| |
| | <br /><syntaxhighlight lang="wikitext">
| |
| <translate nowrap><!--T:311--> arrow</translate> → {{tc}}
| |
|
| |
| ''<translate nowrap><!--T:312--> italics</translate>''
| |
| [[help:Link|<translate nowrap><!--T:313--> link</translate>]]</syntaxhighlight><br /><br /><syntaxhighlight lang="wikitext">
| |
| If a line of plain text starts with a space
| |
| it will be displayed exactly
| |
| as entered
| |
| in a fixed-width font
| |
| inside a grey dotted-outline box
| |
| with no line breaks
| |
| END
| |
| <translate nowrap><!--T:314--> This feature is handy for:</translate>
| |
| * <translate nowrap><!--T:315--> inserting preformatted text;</translate>
| |
| * <translate nowrap><!--T:316--> explaining algorithms;</translate>
| |
| * <translate nowrap><!--T:317--> showcasing code snippets;</translate>
| |
| * <translate nowrap><!--T:318--> displaying ASCII art;</translate>
| |
| * <translate nowrap><!--T:319--> presenting chemical diagrams;</translate>
| |
| * <translate nowrap><!--T:320--> formatting poetry</translate>
| |
| </syntaxhighlight>
| |
| |-
| |
| ! <translate><!--T:375--> Literal character references</translate>
| |
| | <samp>&rarr;</samp>
| |
| | valign="bottom" | <syntaxhighlight lang="html">&rarr;</syntaxhighlight>
| |
| |}
| |
| | |
| {{tmpl|0=<translate><!--T:327--> When using {{<tvar name=1>ll|Manual:Template expansion process</tvar>|expandable wikitext}} like <tvar name="2">$1</tvar>, using <tvar name="3">$2</tvar> will display the wikitext as it is.</translate>
| |
| |1=<code><nowiki>{{t1demo|p ''q'' r}}</nowiki></code>
| |
| |2=<code><nowiki><nowiki>{{t1demo|p ''q'' r}}</nowiki></nowiki></code>
| |
| }}
| |
| {{tmpl|0=<translate><!--T:328--> However, when using the <tvar name=1>{{ll|Help:Magic words#Miscellaneous|2=<nowiki>#</nowiki>tag}}</tvar> magic word, <tvar name=2>$1</tvar> will show the expanded wikitext <tvar name=3>$2</tvar>.</translate>
| |
| |1=<code><nowiki>{{#tag:nowiki|{{t1demo|p ''q'' r}}}}</nowiki></code>
| |
| |2=<code>{{#tag:nowiki|{{t1demo|p ''q'' r}}}}</code>
| |
| }}
| |
| | |
| <translate>
| |
| === Miscellaneous === <!--T:376-->
| |
| </translate>
| |
| {| class="wikitable"
| |
| |-
| |
| | '''<translate><!--T:173--> Signatures</translate>'''
| |
| | |
| <translate><!--T:174--> Don't forget to "sign" your comments on talk pages using tildes (<tvar name=1><code>~</code></tvar>).</translate>
| |
| | |
| <blockquote>
| |
| : <translate><!--T:175--> Three tildes adds your username:</translate> [[User:Example|Example]]
| |
| : <translate><!--T:176--> Four tildes adds your username and a timestamp:</translate> [[User:Example|Example]] 09:20, Mar 14 2024 (UTC)
| |
| : <translate><!--T:177--> Five tildes adds a timestamp:</translate> 09:20, Mar 14 2024 (UTC)
| |
| </blockquote>
| |
| | |
| <translate><!--T:178--> The server will add the link when you save.</translate>
| |
| | |
| | <syntaxhighlight lang="wikitext">
| |
| : <translate nowrap><!--T:179--> Three tildes adds your username:</translate> [[User:Wikiadmin|Wikiadmin]] ([[User talk:Wikiadmin|talk]])
| |
| : <translate nowrap><!--T:180--> Four tildes adds your username and timestamp:</translate> [[User:Wikiadmin|Wikiadmin]] ([[User talk:Wikiadmin|talk]]) 13:54, 27 October 2024 (EDT)
| |
| : <translate><!--T:181--> Five tildes adds only a timestamp:</translate> 13:54, 27 October 2024 (EDT)
| |
| </syntaxhighlight>
| |
| |-
| |
| ! [[Help:Comment tags|<translate><!--T:377--> Comments</translate>]]
| |
| | <translate><!--T:322--> Text between '''here'''</translate><br /><!-- comment here --><br /><translate><!--T:323--> '''and here''' won't be rendered.</translate>
| |
| | <syntaxhighlight lang="wikitext">
| |
| <translate nowrap><!--T:324--> Text between '''here'''</translate>
| |
| <!-- <translate nowrap><!--T:325--> comment here</translate> -->
| |
| <translate nowrap><!--T:326--> '''and here''' won't be rendered.</translate>
| |
| </syntaxhighlight>
| |
| |}
| |
| <translate>
| |
| === Adding another page – transclusion and templates === <!--T:329-->
| |
| | |
| <!--T:330-->
| |
| Modifying a {{<tvar name="1">ll|Help:Transclusion</tvar>|transcluded}} page will modify every file that transcludes it.
| |
| </translate>
| |
| | |
| {| border="1" cellpadding="2" cellspacing="0"
| |
| |- valign="bottom"
| |
| | '''{{ll|Help:Template|2=<translate><!--T:331--> Template</translate>}}'''
| |
| | |
| <translate><!--T:332--> A unique type of page designed for transclusion.</translate>
| |
| <translate><!--T:333--> They are found in the '''Template:''' {{<tvar name="1">ll|Help:namespace</tvar>|namespace}}.</translate>
| |
| <translate><!--T:334--> These templates can take parameters.</translate>
| |
| <translate><!--T:335--> All the templates that are used on a page are listed after the edit box when you update it.</translate>
| |
| | |
| <translate><!--T:336--> In this example, '''Quote''' is a template page designed to display a quote.</translate>
| |
| | |
| | <pre>{{<nowiki>Template:Quote</nowiki>}}</pre>
| |
| |- valign="bottom"
| |
| | '''<translate><!--T:337--> Transclusion</translate>'''
| |
| | |
| <translate><!--T:338--> Combining another page's contents into the current page.</translate>
| |
| <translate><!--T:339--> The below example uses a '''Quote''' template page to perform transclusion.</translate>
| |
| | |
| <div style="border:1pt dashed blue; background:grey; padding:1em 1em">
| |
| {{Quote|quote=<translate><!--T:340--> This is a parameter for a transcluded quote.</translate>}}</div>
| |
| | |
| | <pre><nowiki>{{</nowiki>Quote|quote=<translate><!--T:341--> This is a parameter for a transcluded quote.</translate><nowiki>}}</nowiki></pre>
| |
| |}
| |
| | |
| <translate>
| |
| == Database records related to edits == <!--T:342-->
| |
| | |
| <!--T:343-->
| |
| Both the <tvar name=1>{{ll|Manual:revision table|revision}}</tvar> table and the <tvar name=2>{{ll|Manual:recentchanges table|recentchanges}}</tvar> table of the database contain records of edits.
| |
| | |
| <!--T:344-->
| |
| The <tvar name=1><code>revision</code></tvar> table stores page histories and user contribution lists, while the <tvar name=2><code>recentchanges</code></tvar> table manages recent changes, watchlists, and new page creation lists.
| |
| | |
| <!--T:345-->
| |
| If older edits are removed from the <tvar name=1><code>recentchanges</code></tvar> table while nothing is deleted from the <tvar name=2><code>revision</code></tvar> table, older edits remain visible in page histories and user contribution lists but not in recent changes, related changes watchlists, or the list of new pages.
| |
| </translate>
| |
| | |
| <translate><!--T:346--> When {{<tvar name=1>ll|Help:Import</tvar>|importing}} page revisions, the changes are recorded in the <tvar name=2><code>revision</code></tvar> table but not in the <tvar name=3><code>recentchanges</code></tvar> table.</translate>
| |
| <translate><!--T:347--> This means that while the revisions will show up in the page histories and user contribution lists, they won't appear in recent changes, watchlists, or lists of new pages.</translate>
| |
| | |
| <translate>
| |
| == References == <!--T:378-->
| |
| </translate>
| |
| <references />
| |
| | |
| [[Category:Help{{#translation:}}]]
| |
| | |
|
| |
|
| =Starting a new page= | | =Starting a new page= |