Jump to content

User:Dogears/code snips and style

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Dogears (talk | contribs) at 05:29, 15 February 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Notepad of style notes and code snippets culled from community pages

Style notes

Reliable source

  • Lincoln, Abraham; Grant, U. S.; & Davis, Jefferson (1861). Resolving Family Differences Peacefully (3rd ed.). Gettysburg: Printing Press. ISBN 0-12-345678-9.


Sequence of footers

  1. See also
  2. Notes
  3. References
  4. External links


  • Share the External Links with database
 {{Commons|select category}}
* {{Web reference
 | URL=http://inventors.about.com/library/inventors/blmatch.htm
 | title = The History of Matches 
 | work = Inventors.about.com
 | date = November 11 | year = 2005
 }}
  • Link to your article from other articles


Code snippets


  • Historic preservation
One space before wiki code (or any text) puts it in a teletype box, 
but not html or brackets - (prompt) command parameter-name 
Image parameters
Image:picture.jpg|120px|right/left/none|thumb|Blah blah caption


What it looks like What you type

When there is a need for separating a block of text

the blockquote command will indent both margins when needed instead of the left margin only as the colon does.

This is useful for (as the name says) inserting blocks of quoted (and cited) text.

<blockquote>
The '''blockquote''' command will indent 
both margins when needed instead of the 
left margin only as the colon does.  
</blockquote>
Centered text
<center>Centered text</center>

Template:En icon
Template:It icon

{{en icon}}<br />
{{it icon}}
  • List
  • List
  1. Numbered
  2. List
word
definition
* List
* List
# Numbered
# List
; word : definition

as above


so below

as above
----
so below

San Francisco also has public transportation. (tion ending blended into link)

San Francisco also has [[public transport]]ation.
(tion ending blended into link)

Linking directly to an image without displaying it:

Image of the jigsaw globe logo

or link to description page

Linking directly to an image without displaying it:

[[media:wiki.png|Image of the jigsaw globe logo]]

[[:Image:wiki.png|or link to description page]]

design.[1]

  1. ^ Biography, 9 November 2005.
design.{{ref|rheumatism}}
# {{note|name}} Biography  [[9 November]] [[2005]].

Simple columns

Header1

data

data

data

Header2

data data data

Header3
  • data
  • data
  • data
  • data
  • data
  • data
{| border="0" cellpadding="2" cellspacing="0"
|-
|valign="top"|'''Header1'''
data

data

data
| '''Header2'''
data
data
data
| '''Header3'''
* data
* data
* data
* data
* data
* data
|-
|}

Economics#See also is a link to a section within another page. #Links and URLs is a link to a section on the current page. #example is a link to an anchor that was created using

an id attribute

Automatically hide stuff in parentheses: kingdom.

Linking directly to an image on a (sister site) without displaying it: Image of the jigsaw globe logo


Using the div tag to separate images from text (note that this may allow images to cover text): Using the div tag to separate images from text (note that this may allow images to cover text): Using the div tag to separate images from text (note that this may allow images to cover text): Example:

Place images here

Multicolumns

Aerosol artists

oh yea

Street Art and Post-Graffiti artists

do it again


Also written

Aerosol artists

fghj ghfjfjh gjkjkghkjgk

Street Art and Post-Graffiti artists

ghjkkhgjkgh khgj hfjkghkjgk

But not

Aerosol artists fghj ghfjfjh gjkjkghkjgk

Street Art and Post-Graffiti artists ghjkkhgjkgh khgj hfjkghkjgk