User:Dogears/code snips and style

From Wikipedia, the free encyclopedia

Post new code snippets at the bottom of the page


Contents

User pages
Photo contributions
Tools: Info links + Sandbox
Categories Categories of interest
Wikicode: Code snips and style
Templates: Template samples
Info: Wiki Template documentation
(edit) Wiki projects


[edit] (Cross) referencing

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


[edit] Code snippets

<noinclude>used on Template_talk: pages 
           so the template does not call the function in the rendered preview/page. 
<nowiki> used to display the guts (also use: teletype box)

And the {{tl|example}} tag to render {{example}} 
Versus  {{example}} rendering meta things {{{1}}} → {{{1}}}) 
  • <!--comment-->
  • <br> use sparingly
  • Wold hunger
  • <center></center>
  • <blockquote></blockquote>
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

[edit] What it looks like

What it looks like What you type
  • 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
|-
|}


[edit] Misc

[edit] div tag

Example:

<div style="float:right;margin-left:0.9em"> [[Image:St Basils Cathedral closeup.jpg|thumb]]</div>

[edit] 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

[edit] Harvard references

The example in this section (a mockup sort of article) uses harvard references with wikipedia:footnote3 template layout, combined with numbered footnotes, realised with wikipedia:footnotes tags. It is an imaginary extract from an article on Foo (the "Notes" and "References" sections are of "===" level in this example, in a real article they'd be of "==" level):


[...]

Foo was invented by Nescio Nomen[1] in the 17th century.

A century later, Foo was refined by Negidius Numerius (Blue 2003).

It was also Negidius Numerius who established that N. Nomen was the original inventor of Foo (Blue 2003, p. 17-18).

[...]

[edit] Notes

  1. ^ Not to be confounded with his nephew Nexio Nomen, see: Adam Adams, The Nomen Dynasty in Eastern Europe, Academia Press, 1903, p. 227, footnote 7

[edit] References

  • ^ ^^  Baby Blue, Negidius Numerius' reinvention of Foo, Wikidemia Press, 2003, ISBN 000000000000
  • C. Coda, An overview of the publications on Foo, Wackademia journal, October 2004 issue, p. 12-13

Here's how this looks like in wiki-script:



[...]

Foo was invented by Nescio Nomen<ref>Not to be confounded with his nephew Nexio Nomen, see: Adam Adams, ''The Nomen Dynasty in Eastern Europe'', Academia Press, 1903, p. 227, footnote 7</ref> in the 17th century.

A century later, Foo was refined by Negidius Numerius {{ref_harvard|Blue1|Blue 2003|none}}.

It was also Negidius Numerius who established that N. Nomen was the original inventor of Foo {{ref_harvard|Blue1|Blue 2003, p. 17-18|^^}}.

[...]

===Notes===
<references/>

===References===
*{{note_label|Blue1|Blue 2003|none}}{{note_label|Blue1|Blue 2003, p. 17-18|^^}} Baby Blue, ''Negidius Numerius' reinvention of Foo'', Wikidemia Press, 2003, ISBN 000000000000
*C. Coda, ''An overview of the publications on Foo'', Wackademia journal, October 2004 issue, p. 12-13



[edit] div style

[Please click here to leave me a new message.]


[edit] double table

Double table for User:Dogears/code snips and style:

edit - history - watch - purge

hello

this

is there is no place

like vacation

This table is informative


dude this rules

2nd column in rowspan=2, right justify

tables rule

but then

so do templates

This table is informative

big chunk flesh stab

[edit] References

<div class="references-small">
First: <ref name="name"> ... </ref>
Nth: <ref name="name"/>

[edit] Timeline

[edit] caption and no border

<div style="float:right;margin-left:0.9em">
[[Image:Castle Neuschwanstein.jpg|none|200px]]
<center><small>[[Neuschwanstein]]</small></center>
</div>