User:Ewfwiki

From Wikipedia, the free encyclopedia

This is a Wikipedia user page.

This is not an encyclopedia article. If you find this page on any site other than Wikipedia, you are viewing a mirror site. Be aware that the page may be outdated and that the user to whom this page belongs may have no personal affiliation with any site other than Wikipedia itself. The original page is located at http://en.wikipedia.org/wiki/User:Ewfwiki.

Summary on Wiki Source Code Editing

Subpages

  • /Sandbox The full name of it is actually User:Ewfwiki/Sandbox

Creating a subpage

Except in "main" namespace (="article namespace"), where the subpage feature has been disabled !

  • You can have sub-subpages too.

Wikipedia:User page Why? Create your article in a subpage of your user page, take as long as you need to make it a good article, then move it to the main article space.New editors and experienced Wikipedians can use subpages to their user page to develop templates and articles, test wikitext markup, and create new articles before moving them to the main Wikipedia space. If you need more pages, you can create subpages. More or less, you can have anything here that you might have on your user or user talk page. Examples:

  • A work in progress, until it is ready to be released. This is typically not necessary, though some people do this especially for WP:COI compliance or drafts of a page whose title is protected. See also: #Copies of other pages
  • Archives of user talk
  • Tests; for testing a template, make it a separate subpage.
  • Sections of your user page that are big enough to require their own page, e.g. a page of awards you have received or pictures you have taken.
There are several common uses for user subpages:
  • 1. To place user page-appropriate content on a separate page in order to avoid having a large user page or merely not to conspicuously display it (for example, an awards page).
  • 2. To plan large changes to articles, new articles, or allow Wikipedians to draft graphical layout overhauls.
  • 3. To delineate views on Wikipedia, its functioning, or behavior of Wikipedians in general.
  • 4. To test wikimarkup or LaTeX. User pages and user subpages can be transcluded and substituted, so they behave like templates, and can be tested as such. Pages meant for arbitrary testing are called sandboxes.

To link to a user subpage called "Sandbox" from your main user page, place the text [[/Sandbox]] on your page, or use a piped link with the same source. Here it is with a pipe so it says My sandbox on the page eventhough it's really named Sandbox: My Sandbox .You can add an infobox named {{User Sandbox}} to your sandbox. The infobox notes that the sandbox is used to make tests.

Redirects

read about it here Wikipedia:Redirect

Misc

The magic word __NOEDITSECTION__ suppresses the [Edit] links at the right of each section.
Table of contents can be positioned with the magic word __TOC__
or alteratively made floating and the number of subsections displayed controlled {{TOCright}} {{TOClimit|limit=2}}

Contents

The following uses an internal link to the section "Compact TOC" in the page named "Section" in the "Help:" namespace.

note the double brackets and pipe

The following uses an external link to the section "Compact TOC" in the page named "Section" in the "Help:" namespace.

  • The space between the words in the section (the Compact and the TOC) must be replaced by an underbar _ character
  • [http://en.wikipedia.org/wiki/Help:Section#Compact_TOC] gives [1]
  • [http://en.wikipedia.org/wiki/Help:Section#Compact_TOC Help on Compact Table of Contents] gives Help on Compact Table of Contents
note the single brackets and space instead of a pipe, and the underbar in the section name

Formatting

Help:Wikitext examples

Unformatting

  • Comment: <!--A comment starts with these 4 symbols and ends with these 3 symbols-->
  • The pre tag displays text in a box just as it appears in the source file. Assumes you preformatted it.
  1. Your code
  2. goes here
#Your '''code''' 
#goes here
  • nowiki is similar to pre but works inline. Here the nowiki tag is used to show the code of the pre tag in the above example: <pre width=40>#Your '''code''' #goes here</pre>
Note that if the first char on the line is a space the nowiki does not work

The code tag works inline giving fixed font, but rendering Wiki and HTML formatting. There a tool for it below the editor window.
this text is
in the code area

  1. newlines in the source file are ignored
  2. This tag seems to be nearly useless, except to change to courier font

blockquote

What does blockquote do? It just ignores newlines in the source and indents the lines.

Span and Div

Where is there any documentation on these or any HTML tag parameters???
The span tag works inline, and has styles

<span style="color:red">Some text</span>is in color.
Produces: Some textis in color.

The div tag is a block container. <div> and </div>should be on their own lines above and below the text to be affected by the div block.

Somethings in the div

something
something
something

Something after the div.

<div style="color:green">
Somethings in the div
:something
::something
:::something
</div>
Something after the div. 

Incidentally note in the above div code, the use of the colons : in the leftmost part of the line to make an indented newline. You can also use the * for bullets or the # for numbers

Links

  • HTML tags allow an id (e.g. id="price" )that can be referenced by one's user style CSS and allows the tag to be used as a link target.

Internal Links

Double brackets with a pipe symbol between the address and the text to be displayed

  • A link to My favorite liquid propellant
    [[hydrazine|My favorite liquid propellant]]
    
  • A link to hydrazines. Note the s is not the link the but automatically formatted so it looks like it is.
    • [[hydrazine]]s

You can make a link point to a different place with a piped link. Put the link target first, then the pipe character "|", then the link text.

Or you can use the "pipe trick" so that a title that contains disambiguation text will appear with more concise link text.

* [[Help:Link|About Links]]
* [[List of cities by country#Morocco|Cities in Morocco]]

Or you can use the "pipe trick" so that a title that
contains disambiguation text will appear with more concise
link text.

* [[Spinning (textiles)|]]
* [[Boston, Massachusetts|]]

Section linking looks like this: [[Help:Section#Section_linking|Section linking]] To link to a section in the same page you can use [[#section name|displayed text]], and to link to a section in another page [[page name#section name|displayed text]] Try this goto Unformatting

External links

Single brackets with no pipe symbol between the address and the text to be displayed

  1. A link to The Google Site
[http://www.google.com The Google Site]
  1. A link with no text after the URL automatically gets numbered [2]
    • [http://www.google.com]
      

Image

Help:Images and other uploaded files

Upload

File names are case-sensitive (even the file name extension). Upload the file under a suitable name, because renaming after uploading is not possible. But you can easily rename it during the upload, so you dont need to change the name on your hard disk.

An image page (aka "image description page") will be associated with the uploaded image. The page name will be the file name with extension, prefixed with "Image:" (or in general the value of variable Image).

To upload a file, go to Commons(free content only, no "fair use"), log in there, and upload the file using the upload link commons:Special:Upload

When a file is uploaded with the same name as an existing one, the old one is replaced. Check in advance that the same name does not exist yet, because there is no warning against overwriting. For example, click on http://meta.wikipedia.org/wiki/Image:A and replace the A in the address bar of the browser with the file name. Alternatively use the search feature in Special:Imagelist.

What is LocalSettings.php???

Link

[[Image: image name including extension|right |thumb|caption]]

Misc

Colors

List of colors A website with color codes

References (footnotes)

Use the ref tag in your text where you want the footnote. The world is round[1] A is for apple.[2] Then at the end insert the {{reflist}} template to automatically create a listing in small font.

  1. ^ Magellan, Life of a Sailor, Woodblock Press, Rome, June 2,1556
  2. ^ Book of Rhymes, New York Press 1934.


Catagories

Creating a category page

To create a category page, one can e.g:

  • follow an automatically created link to the category page. Putting this code on any page creates the link.
[[Category:Category name]]

or:

  • add a colon in front of the Category tag when you set up the page-creation link, to prevent the software from thinking you merely want to add the page you are working from to the category:
[[:Category:Category name]]

Placing the above text on working page will create the link you can use to edit your category page, and will display the link text as a normal wiki link without adding the page to the category.

Subcategories

Creating subcategories takes only a few additional steps. Adding a category tag to a category page makes the edited category a subcategory of the category specified in the tag.

  1. First create a new category page for the subcategory the same way you would make a regular category.
    1. For example, create [[Category:Soccer]].
  2. Then go to the newly created category page and edit it.
  3. Add the category tag for the parent category (e.g. [[Category:Sports]]) to the page. In this example, the Soccer category would then be a subcategory of the Sports category.

For a live example see Category:Demo_1 which is a subcategory of Category:Demo.


Templates

What are they how do they work? Sort of like #include files in C-language. Seems like you call them by putting two curly braces around their name, {{nameottemplatehere}}.

Case sensitivity of template name The template name is case sensitive except for the first letter, and a blank space is equivalent with an underscore.
Case sensitivity of parameter names They are case-sensitive, even with respect to the first letter, and spaces are distinguished from underscores.

The syntax for insertion of the page "Template:name" is {{name}}. This is called a template tag two instances of the "brace" at either side of the template page name, excluding the "Template:" prefix because that is the default namespace. If you want to explicitly callout the namespace put a colon {{:Template:name}}. This would also clarify that you did or didnt mean {{:User_talk:name}} or {{:MediaWiki:name}}. but you will just want to always use the default {{name}} for simplicity and because thats where the templates are supposed to be.

Inside the template page the parameters are in triple braces {{{1}}} or {{{firstName}}}.
Inside the template page {{{1|pqr}}} would declare that parameter 1 has a default value pqr

If you see triple braces on your page it means you did not pass the parameter or the value (or you did it wrong). Pass it like this, with pipe introducing the parameter and = assigning the value {{thetemplatename | firstName=John | lastName=Smith}} or if it doesnt require values just substitution {{tmpltname|abc}}


What does this mean???inclusion of pages in other pages in the same namespace, e.g. having an extra page associated with each page, such as a to-do list, with a simple name correspondence; it can be created and included with {{{{NAMESPACE}}:{{PAGENAME}}/todo}} A variable in a template which depends on the page, e.g. {{PAGENAME}}, is expanded based on the referring page, not on the template.


The best approach seems to be to SEARCH if you know the name: But make sure you are searching in the right space!! http://en.wikipedia.org Not wikimedia or somthing.

Userbox

there is often some cryptic statment like: This documentation is transcluded from Template:Userbox/doc


subst:

A template with subst: actually modifies your source file!! Leaving it out makes the template fail. Putting "subst:" after the double opening braces causes an automatic conversion of wikitext when the referring page(your page) is saved: the subst tag is replaced by the wikitext of the template, with the parameter values substituted for the parameters.
The call typed in: {{subst:userbox}}
The change to my source code generated by the subst:

id info
Your name here The info field is where you put your info to be displayed



Navbox

Template:Navbox Template:Navbox
Note that parameters are changed by a line like this

|bodystyle = background:white; width:100%; vertical-align:middle;

| parametername = subname : value ; with additional subname : value ;
pipesign parametername equalsign subname colon value semicolon with additional subname colon value semicolon

Here is a Navbox