Difference between revisions of "Help:Formatting"
m |
(include {{:Category:Template}}) |
||
Line 114: | Line 114: | ||
Mediawiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a newline with the HTML tag <tt><nowiki><br /></nowiki></tt>. | Mediawiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a newline with the HTML tag <tt><nowiki><br /></nowiki></tt>. | ||
− | + | {{:Category:Template}} | |
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
== More advanced formatting == | == More advanced formatting == |
Revision as of 10:07, 26 June 2007
You can format your text using wiki markup. This consists of normal characters like asterisks, single quotes or equation marks which have a special function in the wiki, sometimes depending on their position. For example, to format a word in italic, you include it in two single quotes like ''this''
Text formatting markup
Description | You type | You get |
applies anywhere | ||
Italic text | ''italic'' | italic |
Bold text | '''bold''' | bold |
Bold and italic | '''''bold & italic''''' | bold & italic |
Escape wiki markup | <nowiki>no ''markup''</nowiki> | no ''markup'' |
only at the beginning of the line | ||
Headings of different sizes |
==level 1== |
Level 1Level 2Level 3Level 4 |
Horizontal rule |
---- |
|
Bullet list |
* one |
|
Numbered list |
# one |
|
Mixture of bulleted and numbered lists |
# one |
|
Definition list |
;Definition |
|
Preformatted text |
preformatted text is done with |
preformatted text is done with a space at the beginning of the line |
Paragraphs
Mediawiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a newline with the HTML tag <br />.
How to make a new Template
For certain purposes like if you want to maintain some works on redundant pages without efforts, you may need to write a Template of your page.
A template is just like a page, so a "make-it-easy" template would reside at the URL: http://wiki.contribs.org/Template:Make-it-easy
Create it and copy and paste the wiki markup for what you have already done relating to "Make-it-easy" into it and save it. Then where you want to include the template on any other page just use {{Make-it-easy}}.
Templates
Templates are great at keeping things looking consistent. If you are new, you may not be ready to create them, but don't worry, they are very easy to use. Just add the contents in the "what to type" column and you will get the text in the "What it looks like" column inserted on the page.
Click on the template name for usage options that may not be apparent, translators should see Languages
What to insert | What it looks like | Where to insert |
---|---|---|
{{Note box|string}} |
|
Anywhere |
{{Tip box|string}} |
|
Anywhere |
{{Warning box|string}} |
|
Anywhere |
{{Level|level|comment}} |
[[Category: {{{1}}}]] |
Under title |
{{Incomplete}} |
|
Anywhere |
{{Cleanup}} |
|
Anywhere |
{{Request_for_deletion}} |
|
Top of Article |
{{Ready_for_deletion}} |
|
Top of Article |
{{Outdated}} |
|
Top of Article |
{{Needs review}} |
|
Top of Article |
{{WIP box}} or
{{WIP box|Username}} |
or |
Top of Article |
{{Languages|pagename of English version}} |
|
Top of Article |
{{Repository|Repositoryname}} |
The following command will configure the snetram repository on SME Server. Snetram After adding it to the database we have to update the changes to the configuration file: signal-event yum-modify |
Anywhere |
{{#smeversion:package|description}} | ||
{{Donate}} |
|
Top of Article |
{{Template:BugzillaFileBug}} |
|
Bottom of Article |
Credits: Some of these templates have been integrally taken from the MythTV wiki others are heavily based on them.
More advanced formatting
Beyond the basic text formatting markup shown above, there are some more advanced formatting tricks: