Difference between revisions of "Help:Wiki Editing Syntax Guide/fr"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
imported>Plplecuyer
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{PageTitle|Aide : Guide de syntaxe de l'éditeur Wiki}}
#REDIRECT [[Help:Guide de syntaxe de l'éditeur Wiki/fr]]
 
{{Languages/fr|Help:Wiki Editing Syntax Guide}}
C'est là que vous apprendrez à modifier un article dans le wiki! La syntaxe wiki n'est pas trop compliqué ou difficile, mais elle '''est''' unique, et c'est pourquoi nous avons consacré cet article pour l'enseigner, quoique brièvement. Pour plus d'informations, consultez la liste des liens à la page [[Help:Contents/fr|Aide]]. N'oubliez pas que la page d'aide est dans votre boîte de navigation en haut à gauche, elle est très utile.
 
C'est un guide assez long, utilisez la table des matières pour aller à la section qui vous intéresse, ou si vous êtes totalement nouveau et que vous voulez tout apprendre, lisez-le complètement.
 
==Modification d'une page==
 
Donc, vous voulez changer quelque chose dans un article du Wiki, hein? Eh bien, la première question est de savoir si vous devez ou non consulter notre [[Help: Welcome to the Wiki/fr|Welcome to the Wiki]] et [[Help: Wiki Editing Style Guide/fr|Guide de style]] si vous ne les avez pas encore lu. Vous êtes invités à contribuer, et à bien contribuer. Avec ces deux guides, nous allons vous montrer comment.
 
Bon, il y a quelque chose dans un article qui a besoin d'une correction. C'est peut-être une faute de frappe, ou peut-être qu'une partie du formatage a foiré. Peut-être que vous aimeriez ajouter votre avis à une discussion. Dans tous ces cas, il y a deux endroits pour chercher à modifier la page.
 
Tout d'abord, il y a le bouton Modifier en haut de l'article. Il est assez difficile à rater, donc la plupart des gens savent qu'il est là. Il est idéal pour changer le paragraphe d'introduction d'une page, ou pour modifier plusieurs sections.
 
À côté il y a un bouton +. C'est pour ajouter une nouvelle section, qui formate automatiquement le "sujet" de la section comme rubrique "secondaire" (plus sur les rubriques ci-dessous). Cela peut être utile aussi, mais n'apparaît pas toujours sur une page. Si elle n'est pas là, vous pouvez créer une nouvelle section à l'aide de Modifier et des [[Help: Wiki Editing Syntax Guide/fr#Headings|rubriques]].
 
Enfin, il y a aussi un lien [modifier] à côté de chaque titre d'une section. Ceci est utile car elle vous montre seulement le texte de cet article pour l'édition, donc il y a moins de défilement et de recherche pour le texte que vous souhaitez modifier.
 
==Créer une nouvelle page==
 
Sans aucun doute la question la plus fréquemment posée sur le Wiki: Comment puis-je créer une nouvelle page?
 
La réponse commence par la recherche de la page. Assurez-vous que la page n'existe pas déjà - les pages redondantes causent de la confusion sur le Wiki! Si votre recherche ne donne rien, notez que sur le haut de la page, il y a une ligne qui dit ceci:
 
:'''Créer la page «''' <span style="color: #CC2200; font-weight: bold;">votre page</span>'''» sur ce Wiki.'''
 
La section rouge est un lien vers la page que vous voulez créer - cliquez sur le lien et commencez à éditer!
 
==Creating a New Category==
 
Categories are special pages on the Wiki that have links to other pages in a list at the end of them. These pages are automatically added to the list by putting a [[Help: Wiki Editing Syntax Guide/fr#Categorizing|special code]] at the end of each page in the category. This makes it easy to add new pages to the category.
 
A new category is created by adding "Category:" to the beginning of the article's name. All articles that start with "Category:" will be categories - be careful, unnecessary categories are annoyances here at the Wiki. Only make a new category when it is warranted.
 
==Moving Pages==
 
On the top of an article is the Move button. This will prompt you for a new name for the article, and gives the equivalent of a [[Help: Wiki Editing Style Guide/fr#The Summary Bar, Minor & Major Edits|summary bar]] to explain why. Note that you cannot move Categories, and you cannot move an article to a category. In these cases, you'll simply have to Edit the page, copy all of it, and Paste it into a [[Help: Wiki Editing Syntax Guide/fr#Creating a New Category|newly created Category]] or [[Help: Wiki Editing Syntax Guide/fr#Creating a New Page|newly created Page]], depending on which way you're going with that. Be sure to set up appropriate [[Help: Wiki Editing Syntax Guide/fr#Redirects|redirects]], fix links, and most of all, please leave a thorough note about the Edit History of the original page.
 
===Redirects===
 
Moving a page automatically creates what is called a Redirect - all links going to the old page will be forwarded to the new one. However, the Wiki will only send people to the next page - a Redirect to another Redirect won't work. Therefore, it is advised that you fix any links you can find to the new page after moving, and update any Redirects to the page.
 
You can create your own Redirect without moving a page with the following code:
 
<nowiki>#REDIRECT [[Correct Article Name]]</nowiki>
 
This is great for things that have different names, like an abbreviation, to make sure people are going to the right place. Note that the bit after the #REDIRECT is an [[Help: Wiki Editing Syntax Guide/fr#Internal|Internal Link]], and it must be coded like one (specifically, Categories require the leading colon).
 
It would also be wise to use "What links here" in your Toolbox to find what links to the article, and edit those [[Help: Wiki Editing Syntax Guide/fr#Internal|internal links]] to point to the category.
 
==Deleting Pages==
 
For obvious reasons, you can't fully delete an article as a wiki user. However if you want to get rid of an entire page (e.g. one you accidentally created),  you can move it into the "Articles for Deletion" category by adding the following category link to the article: <nowiki>{{afd}}</nowiki> where it's stowed safely, out of the way, and can eventually be deleted by administrators. Also remove any other categories from the page, since the article should no longer be listed on those categories.
 
==Links==
 
Wikis are all about links. They're what make Wikis great. A good article ''needs'' links.
 
There are two types of links - internal, and external. Internal links point to another article on this Wiki; external links point to another website. Each has its own formatting.
 
===Internal===
 
To write an internal link, use double brackets, like so:
 
<nowiki>[[Article Name]]</nowiki>
 
For, example, <nowiki>[[Help: Wiki Editing Style Guide/fr]]</nowiki> creates this: [[Help: Wiki Editing Style Guide/fr]]. Notice that even though the URL of the article contains underscores, your link doesn't have to (it will work with underscores, but not look as nice). By the same token, special characters do not need to use their
 
To make a link use a text other than the article's name, use the vertical bar symbol, |. For example, <nowiki>[[Help: Wiki Editing Style Guide/fr|Wiki Editing Style Guide]]</nowiki> makes this: [[Help: Wiki Editing Style Guide/fr|Wiki Editing Style Guide]].
 
If you want to link to a specific section of an article, use the pound sign, #. <nowiki>[[Help: Wiki Editing Syntax Guide/fr#Internal|Internal Links]]</nowiki> makes this link: [[Help: Wiki Editing Syntax Guide/fr#Internal|Internal Links]]. Note that the part after the pound sign is identical to the [[Help: Wiki Editing Syntax Guide/fr|Header]] of the section you are linking to.
 
[[Help: Wiki Editing Syntax Guide/fr#Creating a New Category|Categories]] are special pages on the Wiki, and they get a somewhat special formatting - you put a colon, :, before their name, like so:
 
<nowiki>[[:Category: Category's Name]]</nowiki>
 
For example, <nowiki>[[:Category: Getting Started/fr|Getting Started]]</nowiki> gives us this link: [[:Category: Getting Started/fr|Getting Started]]. The vertical bar and the pound symbol both work for categories as well as regular articles.
 
If your link appears in all caps and red, like [[broken link|this]], that means you are pointing to a page that does not exist. This can be a useful way to create a page, since you can click on the link and create the page, and it's also useful for seeing that you've made a typo in a link.
 
This is also why your username will appear red and in all caps when you first sign up for the Wiki. Write something in your User Page to fix it. Adding yourself to [[:Category: User Categories|User Lists]] is a great way to start, and solve the weird names.
 
===External===
 
When possible, it is preferable to link to an article in the Wiki rather than link to another website, but there are certainly numerous situations where an external link is applicable. They use single brackets, like so:
 
<nowiki>[URL text]</nowiki>
 
Note that there is no vertical bar or any other symbol between the URL and the text of the link, just a space. For example, linking to the Official Elder Scrolls Site would be done like this: <nowiki>[http://www.elderscrolls.com/ The Elder Scrolls]</nowiki>, [http://www.elderscrolls.com/ The Elder Scrolls].
 
==Categorizing==
 
Categories are another integral part of Wikis, and after creating a new page, "how do I add an article to a category" is the most commonly asked question there is. The answer is to add the following code to the article:
 
<nowiki>[[Category: Getting Started/fr]]</nowiki>
 
This will add the article to the [[:Category: Getting Started/fr|Getting Started category]]. Note that while it will work no matter where it is on a page, it is best to put it on the bottom, where the category links actually appear on a page, or else it will be quite difficult for the next person to find. Also, remember, this is the same formatting used for an [[Help: Welcome to Wiki Syntax#Internal|internal (non-category) link]], you need special formatting to actually link to a category rather than add the article to it.
 
Also, the vertical bar may be used to with the category tag, but it has quite a different effect than the vertical bar does in normal internal links - it does not change the text of the link to the category, or even the name of the article as it appears in the category. What it does is change the alphabetization of the article in the category's list. For example:
 
<nowiki>[[Category: Getting Started|Aardvark]]</nowiki>
 
will cause the article to be listed under A in the category's list, as if the title of the article was Aardvark, even though the actual title of the article will appear in the list. Be aware that using capitals can confuse the Wiki - capitalize only the first letter of the first word of the new title, even if the article has more capitals than that.
 
==Headings==
 
Headings are larger, bolder, and often underlined text that denotes the beginning of a section. They use equal signs, =, around the heading text. There is a hierarchy of headings, as follows:
 
* <nowiki>= Primary Heading - Big, bold, underlined - often unused =</nowiki>
* <nowiki>== Secondary Heading - not as big, bold, and underlined - usually the biggest heading used in an article ==</nowiki>
* <nowiki>=== Tertiary Heading - big and bold, but not underlined - sub-sections of a secondary heading ===</nowiki>
* <nowiki>==== Minor Heading - bolded, but regular size and no underline - rarely used, a sub-section of a sub-section ====</nowiki>
 
Headings are strongly encouraged when writing an article. They automatically create a Table of Contents for a page, and they make the layout very easy to follow. They can also be linked to directly by other pages.
 
===Horizontal Rule===
 
Wikis can also create a line across a page using four dashes, <nowiki>----</nowiki>. In general, it's better to create a new section with its own heading, for the sake of the Table of Contents and links, but sometimes it is preferable to simply use the line to divide sections of the page.
 
Example:
----
And some more text afterwards to show what it's like.
 
===Table of Contents===
A Table of Contents is automatically created when you use 4 or more headings. If the page doesn't need one, place <nowiki>__NOTOC__</nowiki> at the top of the page. To force one, use <nowiki>__TOC__</nowiki> - also note that it appears where you place this tag, so you can change where the Table of Contents appears on the page. You can also use <nowiki>{{TOCright}}</nowiki> to place the table on the right side of the page, which can be desirable if the page has a lot of headings and the table takes up a lot of space.
 
==Paragraphs==
 
A new paragraph is started each time you skip a line. A single Return will not affect the article's text - you need to actually skip a line in between paragraphs.
 
To force a Return or Line Break without skipping a line, use the HTML code, <nowiki><br /></nowiki>.
 
===Indentation===
 
Paragraphs are generally indented in Talk pages, for clarity's sake. There may also be cases where indentation would be useful in an article. To do so, start the first line of a paragraph with a colon, :, like so:
 
<nowiki>:This is an indented paragraph. This is just extra text to show what happens when the paragraph is longer than one line. We have enough text now.</nowiki>
 
:This is an indented paragraph. This is just extra text to show what happens when the paragraph is longer than one line. We have enough text now.
 
The entire paragraph will be indented, and multiple colons may be used to indent further.
 
==Text Formatting==
 
Text formatting in Wiki uses apostrophes or single quotes, '. These are the possibilities:
 
* <nowiki>''italics''</nowiki> - ''italics''
* <nowiki>'''bold'''</nowiki> - '''bold'''
* <nowiki>'''''bold-italics'''''</nowiki> - '''''bold-italics'''''
 
Other types of formatting can be done using standard HTML tags:
 
* <nowiki><s>strikethrough</s></nowiki> - <s>strikethrough</s>
* <nowiki><u>underlined</u></nowiki> - <u>underlined</u>
 
==Code Boxes==
 
(this section can be confusing if you don't look at the plaintext version - click the [edit] link to the left of the header to see it)
 
Script code, and other types of specialized text, require monospace fonts and no margins. There are two ways to format a section of text as code. First, start each line with a space
 
ScriptName ShowOffMyTextBox
Begin GameMode
  MessageBox, "Look at me!"
End
 
First, note that even the blank lines start with a space - if you don't, the Wiki will assume your box is done, and then start another box with the next line. See this example, which is the same as the above except that the blank lines don't have spaces:
 
ScriptName ShowOffMyTextBox
 
Begin GameMode
 
  MessageBox, "Look at me!"
 
End
 
Second, be aware that words will not wrap inside this box - they will continue off to the right, off the paper color of this Wiki, into the black borders, right off the side of the page. This makes them unreadable and can cause the page to stretch. Avoid this if at all possible.
 
The other way to create a code box is to use the <nowiki><pre></nowiki> tag. This is the same script as above, but there are no spaces starting any of the lines - the code box will not end until you use the <nowiki></pre></nowiki> tag:
 
<pre>ScriptName ShowOffMyTextBox
 
Begin GameMode
 
  MessageBox, "Look at me!"
 
End</pre>
 
To be consistent, tabs for the indentation of script lines are typically typed as two spaces. This is in addition to the space you used to create the code box if you use that format.
 
==Lists==
 
There are two types of Lists - bulleted and numbered.
 
Starting a new paragraph, that is, skipping a line, ends your list. In the case of bulleted lists, you can't tell, but in the case of numbered lists, it restarts your numbering and messes things up.
 
Lists can also be mixed.
 
===Bulleted===
 
A bulleted list is created using asterisks, *. Each list item starts with an asterisk. Multiple asterisks cause indented bullets (sub-points).
 
<nowiki>*Point 1</nowiki><br />
<nowiki>**Sub-Point A</nowiki><br />
<nowiki>**Sub-Point B</nowiki><br />
<nowiki>***Sub-Sub-Point Double-Gamma</nowiki><br />
<nowiki>***Sub-Sub-Point Double-Epsilon</nowiki><br />
<nowiki>**Sub-Point C</nowiki><br />
<nowiki>*Point 2</nowiki>
 
*Point 1
**Sub-Point A
**Sub-Point B
***Sub-Sub-Point Double-Gamma
***Sub-Sub-Point Double-Epsilon
**Sub-Point C
*Point 2
 
===Numbered===
 
A numbered list is created using pound symbols, #. Each list item starts with a pound symbol. Multiple pound symbols cause indented points (sub-points).
 
<nowiki>#Point 1</nowiki><br />
<nowiki>##Sub-Point A</nowiki><br />
<nowiki>##Sub-Point B</nowiki><br />
<nowiki>###Sub-Sub-Point Double-Gamma</nowiki><br />
<nowiki>###Sub-Sub-Point Double-Epsilon</nowiki><br />
<nowiki>##Sub-Point C</nowiki><br />
<nowiki>#Point 2</nowiki>
 
#Point 1
##Sub-Point A
##Sub-Point B
###Sub-Sub-Point Double-Gamma
###Sub-Sub-Point Double-Epsilon
##Sub-Point C
#Point 2
 
===Mixed===
 
Using a combination of asterisks and pound signs is also possible.
 
<nowiki>#Point 1</nowiki><br />
<nowiki>#*Sub-Point A</nowiki><br />
<nowiki>#*Sub-Point B</nowiki><br />
<nowiki>#*#Sub-Sub-Point Double-Gamma</nowiki><br />
<nowiki>#*#Sub-Sub-Point Double-Epsilon</nowiki><br />
<nowiki>#*Sub-Point C</nowiki><br />
<nowiki>#Point 2</nowiki>
 
#Point 1
#*Sub-Point A
#*Sub-Point B
#*#Sub-Sub-Point Double-Gamma
#*#Sub-Sub-Point Double-Epsilon
#*Sub-Point C
#Point 2
 
===Interrupted Lists===
 
With the wiki syntax you can only make a list without interruptions; the list items can't be interrupted by anything. For example,
#Point 1
code
#Point 2
 
 
To make a list with interruptions between the list items you need to use HTML.
 
<nowiki><ol></nowiki><br />
<nowiki><li>Point 1</li></nowiki><br />
<nowiki><li>Point 2<br /></nowiki><br />
<nowiki>More about point 2</li></nowiki><br />
<nowiki><li>Point 3</li></nowiki><br />
<nowiki>#Sub-Point 1</nowiki><br />
<nowiki>#Sub-Point 2</nowiki><br />
<nowiki><li>Point 4</li></nowiki><br />
<nowiki>Point 4.5?</nowiki><br />
<nowiki><li>Point 5</li></nowiki><br />
<nowiki></ol></nowiki>
 
<ol>
<li>Point 1</li>
<li>Point 2<br />
More about point 2</li>
<li>Point 3</li>
#Sub-Point 1
#Sub-Point 2
<li>Point 4</li>
Point 4.5?
<li>Point 5</li>
</ol>
 
Everything between the ordered list tags <nowiki><ol></nowiki> and <nowiki></ol></nowiki> will act like one list and every list item <nowiki><li></nowiki> will have be numbered correctly. As you can see there's no problem starting a list with the wiki syntax inside the HTML list. You can make an unordered list with the <nowiki><ul></nowiki> and <nowiki></ul></nowiki> tags instead of <nowiki><ol></nowiki> and <nowiki></ol></nowiki>.
 
==Signing a Page==
 
Signing a page is very simple, and ''very'' important to discussions. Simply type four tildes, <nowiki>~~~~</nowiki> to insert your name, as a link to your user page, plus the date and time. Three tildes will insert just your name (as a link), but we would prefer you use four so we know when you posted.
 
==Reverting==
If you feel a change to a page was unwarranted or malicious (e.g. spamming or vandalism), you can easily revert to an earlier version of the page. Either in the difference view (via recent changes) or in the history panel, click on the date of the revision of the article you want to revert to. Then edit that page. You will get a warning that you are not editing the most current version. Ignore it and save, noting "revert" on the summary line.
Again, it is in the spirit of the Wiki to edit other peoples contributions and to have your own edited, so use this option sensibly.
 
===Moving===
If a page has been maliciously moved you can return it to its original location with the Move tab (at the very top of the page). Just click on it and follow the (short!) instructions on that page. '''Please make sure to move the page before editing the original page.'''
 
==Conclusion==
 
Well, that's the end of this! The [http://en.wikipedia.org/wiki/Help:Editing Wikipedia help page] has many more useful hints on the Wiki syntax. If you have any questions, please feel free to ask in the [[Help Talk:Wiki Editing Syntax Guide|Talk page]]! And remember to use [[Help: Wiki Editing Syntax Guide/fr#Indentation|indentation]] and to [[Help: Wiki Editing Syntax Guide/fr#Signing a Page|sign your post]]!
 
[[Category: Tutorials/fr|Wiki editing syntax guide]]
[[Category: Getting Started/fr|Wiki editing syntax guide]]

Latest revision as of 13:20, 23 October 2012