Difference between revisions of "Wiki Guide"
Tanklovesyou (talk | contribs) |
Tanklovesyou (talk | contribs) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | On this page you will find guidelines for page creation and Wiki syntax. | + | On this page you will find guidelines for page creation and Wiki syntax. (Please note, this is still under construction) |
− | == | + | ==Text formatting== |
To ''italicize text'', put two consecutive apostrophes on each side of it. | To ''italicize text'', put two consecutive apostrophes on each side of it. | ||
Line 11: | Line 11: | ||
'''''Italic and bold formatting''''' works correctly only within a single line. | '''''Italic and bold formatting''''' works correctly only within a single line. | ||
− | + | ==Headers== | |
− | Subheadings should be created with the <h5> and </h5> tags | + | All headings within pages are created as ==Heading==, with 2 equal signs on each side |
+ | |||
+ | Subheadings should be created with the < h5 > and < /h5 > tags | ||
==Lists== | ==Lists== | ||
Line 25: | Line 27: | ||
**** Sub-item 4 a) 1. i) | **** Sub-item 4 a) 1. i) | ||
**** Sub-item 4 a) 1. ii) | **** Sub-item 4 a) 1. ii) | ||
+ | |||
+ | ==Links== | ||
+ | |||
+ | Wikilinks | ||
+ | Wikilinks are used in wikitext markup to produce internal links between pages. You create wikilinks by putting double square brackets around text designating the title of the page you want to link to. Thus, [[Texas]] will be rendered as Texas. Optionally, you can use a vertical bar (|) to customize the link title. For example, typing [[Texas|Lone Star State]] will produce Lone Star State, a link that is displayed as "Lone Star State" but in fact links to Texas. | ||
+ | |||
+ | Link to another wiki article | ||
+ | Internally, the first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link has the same effect as typing a space, but is not recommended). | ||
+ | Thus the link hereafter is to the Web address en.wikipedia.org/wiki/Public_transport, which is the Wikipedia article with the name "Public transport". See also Canonicalization. | ||
+ | A red link is a page that doesn't exist yet; it can be created by clicking on the link. | ||
+ | A link to its own page will appear only as bold text. | ||
+ | Markup Renders as | ||
+ | London has [[public transport]]. | ||
+ | London has public transport. | ||
+ | |||
+ | Link to this page: "[[Help:Wikitext]]" will appear only as bold text. | ||
+ | Link to this page: "Help:Wikitext" will appear only as bold text. | ||
+ | |||
+ | Renamed link | ||
+ | Same target, different name. | ||
+ | The target ("piped") text must be placed first, then the text to be displayed second. | ||
+ | What you type What it looks like | ||
+ | New York also has [[public transport|public transportation]]. | ||
+ | |||
+ | New York also has public transportation. | ||
+ | |||
+ | Automatically rename links | ||
+ | Simply typing the pipe character | after a link will automatically rename the link in certain circumstances. The next time you open the edit box you will see the expanded piped link. When previewing your edits, you will not see the expanded form until you press Save and Edit again. The same applies to links to sections within the same page. | ||
+ | See Pipe trick for details. | ||
+ | Description What you type What it looks like | ||
+ | Automatically hide stuff in parentheses | ||
+ | |||
+ | [[kingdom (biology)|kingdom]] | ||
+ | |||
+ | kingdom | ||
+ | |||
+ | Automatically hide the comma and following text [[Seattle, Washington|Seattle]] Seattle | ||
+ | Automatically hide namespace | ||
+ | |||
+ | [[Wikipedia:Village pump|Village pump]] | ||
+ | |||
+ | Village pump | ||
+ | |||
+ | Or both | ||
+ | |||
+ | [[Wikipedia:Manual of Style (headings)|Manual of Style]] | ||
+ | |||
+ | Manual of Style | ||
+ | |||
+ | But this doesn't work for section links | ||
+ | |||
+ | [[Wikipedia:Manual of Style#Links|]] | ||
+ | |||
+ | [[Wikipedia:Manual of Style#Links|]] | ||
+ | |||
+ | Blend link | ||
+ | Endings are blended into the link. | ||
+ | Exception: a trailing apostrophe (') and any characters following the apostrophe are not blended. | ||
+ | Preferred style is to use this instead of a piped link, if possible. | ||
+ | Blending can be suppressed by using the <nowiki /> tag, which may be desirable in some instances. | ||
+ | Description What you type What it looks like | ||
+ | Blending active | ||
+ | San Francisco also has [[public transport]]ation. Examples include [[bus]]es, [[taxicab]]s, and [[tram]]s. | ||
+ | |||
+ | San Francisco also has public transportation. Examples include buses, taxicabs, and trams. | ||
+ | A [[micro-]]second A micro-second | ||
+ | Blending suppressed | ||
+ | |||
+ | A [[micro-]]<nowiki />second. | ||
+ | |||
+ | A micro-second | ||
+ | |||
+ | Link to a section of a page | ||
+ | The part after the hash sign (#) must match a section heading on the page. Matches must be exact in terms of spelling, case, and punctuation. Links to non-existent sections are not broken; they are treated as links to the beginning of the page. | ||
+ | Include "| link title" to create a stylish (piped) link title. | ||
+ | If sections have the same title, add a number to link to any but the first. #Example section 3 goes to the third section named "Example section". You can use the pipe and retype the section title to display the text without the # symbol. | ||
+ | What you type What it looks like | ||
+ | [[Wikipedia:Manual of Style#Italics]] is a link to a section within another page. | ||
+ | |||
+ | Wikipedia:Manual of Style#Italics is a link to a section within another page. | ||
+ | |||
+ | [[#Links and URLs]] is a link to another section on the current page. [[#Links and URLs|Links and URLs]] is a link to the same section without showing the # symbol. | ||
+ | |||
+ | #Links and URLs is a link to another section on the current page. Links and URLs is a link to the same section without showing the # symbol. | ||
+ | |||
+ | [[Wikipedia:Manual of Style#Italics|Italics]] is a piped link to a section within another page. | ||
+ | |||
+ | Italics is a piped link to a section within another page. | ||
+ | |||
+ | Create a page link | ||
+ | To create a new page: | ||
+ | Create a link to it on some other (related) page. | ||
+ | Save that page. | ||
+ | Click on the link you just made. The new page will open for editing. | ||
+ | For more information, see starting an article and check out Wikipedia's naming conventions. | ||
+ | Please do not create a new article without linking to it from at least one other article. | ||
+ | Description What you type What it looks like | ||
+ | Links to pages that don't exist yet look red. | ||
+ | |||
+ | The article about [[cardboard sandwiches]] doesn't exist yet. | ||
+ | |||
+ | The article about cardboard sandwiches doesn't exist yet. | ||
+ | |||
+ | <h5>External Links</h5> | ||
+ | |||
+ | Named link with an external link icon | ||
+ | |||
+ | [https://www.wikipedia.org Wikipedia] | ||
+ | |||
+ | Wikipedia | ||
+ | |||
+ | ==Redirects== | ||
+ | Redirect one article title to another by placing a directive like the one shown to the right on the first line of the article (such as at a page titled "US"). | ||
+ | It is possible to redirect to a section. For example, a redirect to United States#History will redirect to the History section of the United States page, if it exists. | ||
+ | Description What you type | ||
+ | Redirect to an article | ||
+ | |||
+ | #REDIRECT [[United States]] | ||
+ | |||
+ | Redirect to a section | ||
+ | |||
+ | #REDIRECT [[United States#History]] | ||
+ | |||
+ | ==Categories== | ||
+ | To put an article in a category, place a link like [[Category:Example]] into the article. As with interlanguage links, placing these links at the end of the article is recommended. | ||
+ | To link to a category page without putting the article into the category, use a colon prefix (":Category") in the link. | ||
+ | Description What you type What it looks like | ||
+ | Categorize an article. | ||
+ | |||
+ | [[Category:Character sets]] | ||
+ | |||
+ | Link to a category. | ||
+ | |||
+ | [[:Category:Character sets]] | ||
+ | |||
+ | Category:Character sets | ||
+ | |||
+ | Without prefix. | ||
+ | |||
+ | [[:Category:Character sets|Character sets]] | ||
+ | |||
+ | Character sets | ||
+ | |||
+ | ==Nav Boxes== | ||
+ | |||
+ | ==Info Boxes== |
Latest revision as of 13:22, 19 October 2022
On this page you will find guidelines for page creation and Wiki syntax. (Please note, this is still under construction)
Text formatting
To italicize text, put two consecutive apostrophes on each side of it.
Three apostrophes each side will bold the text.
Five consecutive apostrophes on each side (two for italics plus three for bold) produces bold italics.
Italic and bold formatting works correctly only within a single line.
Headers
All headings within pages are created as ==Heading==, with 2 equal signs on each side
Subheadings should be created with the < h5 > and < /h5 > tags
Lists
Markup Renders as
- Item1
- Item2
- Item3
- Item4
- Sub-item 4 a)
- Sub-item 4 a) 1.
- Sub-item 4 a) 1. i)
- Sub-item 4 a) 1. ii)
- Sub-item 4 a) 1.
- Sub-item 4 a)
Links
Wikilinks Wikilinks are used in wikitext markup to produce internal links between pages. You create wikilinks by putting double square brackets around text designating the title of the page you want to link to. Thus, Texas will be rendered as Texas. Optionally, you can use a vertical bar (|) to customize the link title. For example, typing Lone Star State will produce Lone Star State, a link that is displayed as "Lone Star State" but in fact links to Texas.
Link to another wiki article Internally, the first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link has the same effect as typing a space, but is not recommended). Thus the link hereafter is to the Web address en.wikipedia.org/wiki/Public_transport, which is the Wikipedia article with the name "Public transport". See also Canonicalization. A red link is a page that doesn't exist yet; it can be created by clicking on the link. A link to its own page will appear only as bold text. Markup Renders as London has public transport. London has public transport.
Link to this page: "Help:Wikitext" will appear only as bold text. Link to this page: "Help:Wikitext" will appear only as bold text.
Renamed link Same target, different name. The target ("piped") text must be placed first, then the text to be displayed second. What you type What it looks like New York also has public transportation.
New York also has public transportation.
Automatically rename links Simply typing the pipe character | after a link will automatically rename the link in certain circumstances. The next time you open the edit box you will see the expanded piped link. When previewing your edits, you will not see the expanded form until you press Save and Edit again. The same applies to links to sections within the same page. See Pipe trick for details. Description What you type What it looks like Automatically hide stuff in parentheses
kingdom
Automatically hide the comma and following text Seattle Seattle Automatically hide namespace
Village pump
Or both
Manual of Style
But this doesn't work for section links
[[Wikipedia:Manual of Style#Links|]]
[[Wikipedia:Manual of Style#Links|]]
Blend link Endings are blended into the link. Exception: a trailing apostrophe (') and any characters following the apostrophe are not blended. Preferred style is to use this instead of a piped link, if possible. Blending can be suppressed by using the tag, which may be desirable in some instances. Description What you type What it looks like Blending active San Francisco also has public transportation. Examples include buses, taxicabs, and trams.
San Francisco also has public transportation. Examples include buses, taxicabs, and trams. A micro-second A micro-second Blending suppressed
A micro-second.
A micro-second
Link to a section of a page The part after the hash sign (#) must match a section heading on the page. Matches must be exact in terms of spelling, case, and punctuation. Links to non-existent sections are not broken; they are treated as links to the beginning of the page. Include "| link title" to create a stylish (piped) link title. If sections have the same title, add a number to link to any but the first. #Example section 3 goes to the third section named "Example section". You can use the pipe and retype the section title to display the text without the # symbol. What you type What it looks like Wikipedia:Manual of Style#Italics is a link to a section within another page.
Wikipedia:Manual of Style#Italics is a link to a section within another page.
#Links and URLs is a link to another section on the current page. Links and URLs is a link to the same section without showing the # symbol.
- Links and URLs is a link to another section on the current page. Links and URLs is a link to the same section without showing the # symbol.
Italics is a piped link to a section within another page.
Italics is a piped link to a section within another page.
Create a page link To create a new page: Create a link to it on some other (related) page. Save that page. Click on the link you just made. The new page will open for editing. For more information, see starting an article and check out Wikipedia's naming conventions. Please do not create a new article without linking to it from at least one other article. Description What you type What it looks like Links to pages that don't exist yet look red.
The article about cardboard sandwiches doesn't exist yet.
The article about cardboard sandwiches doesn't exist yet.
External Links
Named link with an external link icon
Wikipedia
Redirects
Redirect one article title to another by placing a directive like the one shown to the right on the first line of the article (such as at a page titled "US"). It is possible to redirect to a section. For example, a redirect to United States#History will redirect to the History section of the United States page, if it exists. Description What you type Redirect to an article
- REDIRECT United States
Redirect to a section
- REDIRECT United States#History
Categories
To put an article in a category, place a link like into the article. As with interlanguage links, placing these links at the end of the article is recommended. To link to a category page without putting the article into the category, use a colon prefix (":Category") in the link. Description What you type What it looks like Categorize an article.
Link to a category.
Category:Character sets
Without prefix.
Character sets