Help:Editing FAQ
From Wikibooks, the open-content textbooks collection
| Wikibooks FAQ |
| This article is part of the Wikibooks FAQ |
| FAQ pages... |
|
Overview |
| See also... |
This page is meant to accompany Help:Editing.
These questions and answers have been culled from some of the talk pages of the various editing-related Help: pages. If you see a useful answer there or anywhere else, please add it here.
[edit] Editing
[edit] Q: Can I link to a specific section header if there are multiple section headers of the same name? If so, how?
A: Yes, you can. Each section header, regardless of size or depth, has a number corresponding to how many times that header's name has already appeared on the page. The number is "1" for the very first instance, "2" for the next, "3" for the next, and so on. You can link to each header just like a normal header, but using that number after the header's name (i.e. if there are three headers named "Foo," then the first can be linked to like so: [[#Foo 1]], the second. [[#Foo 2]], and the third, [[#Foo 3]]). Using the number "1" for the first header is generally superfluous, as the software will automatically link to the first header without using the number (i.e. [[#Foo]]). If you don't want the number to show, then you have to use a piped link (e.g. [[#Foo 2|Foo]]).
If you don't know how many times a given header has already appeared on a page (and thus the number to use), there are two ways to find out.
- Use the table of contents.
- If a table of contents appears on the page, click on the header whom you wish to link to. The page will jump to that header. Now, look at the URL. At the end, it will show the ID of the header in question. An example of a URL who has just been linked to a header, whose name has already appeared twice (and so is the third instance), and whose name is "Foo:"
- http://meta.wikimedia.org/wiki/Example_article#Foo_3
- The header link at the end of the URL shows that to link to this header, you would use [[#Foo 3]].
- If a table of contents appears on the page, click on the header whom you wish to link to. The page will jump to that header. Now, look at the URL. At the end, it will show the ID of the header in question. An example of a URL who has just been linked to a header, whose name has already appeared twice (and so is the third instance), and whose name is "Foo:"
- Look at the source.
- While looking at the source, first find the section you're looking for, and then look at its ID tags. It will show the number in that tag. An example for a header, whose name has already appeared once (and so is the second instance), and whose name is "Foo:"
- <p><a name="Foo_2" id="Foo_2"></a></p>
- <h3>Foo</h3>
- The ID and name tags (the ones that say "a name=" and "id=") show that this header can be linked to with [[#Foo 2]].
- While looking at the source, first find the section you're looking for, and then look at its ID tags. It will show the number in that tag. An example for a header, whose name has already appeared once (and so is the second instance), and whose name is "Foo:"
[edit] Q: How do I get a page deleted?
For example, if I'm done fooling around with some sandbox pages created as sub-pages of my Wikibooks user page, how do I get them deleted?
A: Read the deletion policy. In the case of your user page add {{delete|your reason}} to your sub-pages.
[edit] Q: How can I easily change the title of a book?
I keep browsing around in the help section but I can't seem to find a way to change the title of my book. Can anyone help?
A: Use the MOVE button on top of the page to change the title of your book
[edit] Q: How do I archive my User Page?
A: Four possibilities are:
- move talk page to page like User:a/b (history is now in this archive)
- move page contents to such a page (history is still in the regular talk page)
- just delete content (it is still in the history, but one can less easily search in that text)
- Use a link to an earlier version of the page in its history. It does not require creating "sub pages" for archives. You can see an example at Wikijunior talk:Solar System/Solar System.
- Click on the history tab
- Click on the first version listed there
- Copy the URL from the address bar. Let's say it is http://en.wikibooks.org/w/index.php?User_talk:a&oldid=12345
- Edit your talk page.
- Delete all the stuff you want to remove from the current version of your talk page.
- Link to the archive version as [http://en.wikibooks.org/w/index.php?User_talk:a&oldid=12345 Sept 2005 archive]
- Save the new version of your page.
- Click on the history tab
[edit] Q: Can I put preformatted text inside a numbered list?
A: Yes, if you use the HTML <ol> and <li> tags and the <pre> tag like this:
<ol> <li>one</li> <li>two <pre> here are a couple lines of preformatted text </pre> </li> <li>and the numbering</li> <li>does not start over</li> </ol> |
|
[edit] Q: Can I use transparent borders on a table?
A: Yes. The easiest way to write this is using wiki table notation with a different background for the table and for each row.
{| style="background:transparent;"
|- style="background:#0075ff;"
| abc || def ||ghi
|- style="background:#0075ff;"
| jkl || mno || pqr
|}
|
|
[edit] Q: Can I change the style of something throughout a page without having to repeat the style?
A. There are two ways this can be done.
Method 1: This can be done by using a template and using the template repeatedly on the page instead. For example add <pre style="border:pink; ...">{{{1}}}</pre> to Template:Template sandbox and use {{template sandbox|some text}} throughout the Wikibooks:Sandbox page. Everyone will see what you see.
Method 2: You can set this up once using CSS on your User Style. Then every "pre" tag will have the same pink-on-yellow style. However, every person that wants to see that style will need to set it up in their own personal "User style". That allows people to see a yellow-on-pink style (-: the barbarians! :-) if they want, without messing up your pink-on-yellow view. --DavidCary 14:29, 12 July 2007 (UTC)

