Jump to content

User:Fix Bayonets!//Help/Editing template

From Wikipedia, the free encyclopedia




USEFUL CODE

[edit]

TOC

[edit]

You can force a table of contents to appear by inserting:

__FORCETOC__

somewhere in the article.

Similarly, by inserting:

__NOTOC__

somewhere in the article, you will disable the TOC. It can also be disabled on a per-user basis through the preferences.

Quotations

[edit]

type:

{{Quotation|"Place the exact quotation here."|John Q. Public|Letter to his wife}}

Produces:

"Place the exact quotation here."

— John Q. Public, Letter to his wife

Breaks

[edit]

To force a new line without creating a blank line, type:

<br />

References

[edit]

For an initial (first) reference to a book, type:

<ref name=LastNameTitleAbbrev>Last Name, First Name, M., ''Title,'' City: Publishing Company, 200__, ISBN 0-123-45678-9, pp. 44-45.</ref>

For subsequent reference to same book, type:

<ref name=LastNameTitleAbbrev/>

For an initial (first) reference to a website, type:

<ref name=Website>[http://website.com/subsection/200605/05092006.html|Treatise on Widgets]</ref>

For subsequent reference to same website, type:

<ref name=Website/>

To ENABLE the above references, type:

==References==
<references/>
[edit]

To leave a note linking to another post on another page, type:

I thought you might be interested in this: [http://website_address/html Nature or Subject of website]

Text

[edit]

Alignment

[edit]

To force text right, such as this:

This text is floated to the right.

type:

<br /> {{-}} <div style='float:right; width:300px;'>This text is floated to the right; if you look at the edit screen (click 'edit' next to the heading of this section) you can see what markup I used.</div> {{-}}

--- To block quote, such as this:

Block-quoted text inserted here

type:

<blockquote>Block-quoted text inserted here</blockquote>

--- To center text, such as this:

Centered text inserted here

type:

<center>Centered text inserted here</center>

---

Font size, style, and color

[edit]

To write larger font, in different color and style, such as this:

Example text inserted here.

type:

<font [font color=#GGBBRR,] [font size=22.0,] [font face=Times New Roman]>Example text inserted here.</font>

---

<font size="1">Font size "1" text inserted here</font>

<font color="red">Font color "red" text inserted here</font>

Color Codes Chart

<font size="4" color="#0000ff" face="comic sans ms">Font size "4" color ="#0000ff" face ="comic sans ms", font size "4" text inserted here</font>

Font: strike-through or underline

[edit]

To strike-through or underline text, such as this:

Strike out or underline text

type:

<strike>Strike out</strike> or <u>underline</u> text


Font: small capital letters

[edit]

To write in small caps, such as this:

write it in small caps.

type:

write it <span style= "font-variant:small-caps"> in small caps</span>

Font: super or sub-script

[edit]

To make text super or sub-script like this:

X2, H2O

type:

X<sup>2</sup>, H<sub>2</sub>O

Previewing code

[edit]

To force code to apppear on a page without running the code itself, type:

::<tt><nowiki>INSERT CODE
</nowiki>

To preview code results, type:

<pre>INSERT CODE</pre>

Using sortkeys

[edit]

To add an infobox, make sure to use a Sort key. For example, when adding Template:Infobox President, one would use the following code:

{| class="infobox"
|...table code...
|}<noinclude>
[[Category:Infobox templates|President]]
</noinclude>

Piping the category with the word "President" ensures the template is inserted into the category under "P".

A <noinclude> tag is required to ensure only the template appears in the category (as opposed to every article the infobox is part of appearing in the category).
Please include the first noinclude tag on the same line as the end of the table. For example
|}<noinclude>
Not doing this may break the formatting on articles using the template.


Tags

[edit]

{{Disputed-section}}

{{noncompliant}}

---

To say “[citations needed]”, type:

{{fact}}

---

To assign User Name to an UNSIGNED post, type:

{{unsigned|INSERT_USER_NAME}}

Search a User's contribution list

[edit]

To search a User's contribution list, type:

[http://en.wikipedia.org/w/index.php?title=Special:Contributions&target=INSERT USER NAME HERE]

Fair Use

[edit]

To produce this:

Used under the fair use policy of the United States copyright law, and under Wikipedia fair use policy

See also: What is "Fair Use" in Copyright Law?; and Fair Use (article at Wikipedia)

...type this:

{| style="margin: 0 2em; background: #fee; border: 1px dotted black;" |- | Used under the [http://www.law.cornell.edu/uscode/html/uscode17/usc_sec_17_00000107----000-.html fair use policy] of the United States copyright law, and under [http://en.wikipedia.org/wiki/Wikipedia:Copyrights#Using_copyrighted_work_from_others Wikipedia fair use policy] See also: [http://web.archive.org/web/20041010022919/http://www.gigalaw.com/articles/2000-all/gall-2000-12-all.html What is "Fair Use" in Copyright Law?]; and [http://en.wikipedia.org/wiki/Wikipedia:Fair_use Fair Use (article at Wikipedia)] |}

---

To produce this:

The original information compiled on this wikisite is free of copyright. See Copyright and U.S. Government works

...type this:

{| style="margin: 0 2em; background: #fee; border: 1px dotted black;" |- | The original information compiled on this wikisite is free of copyright. See [http://en.wikipedia.org/wiki/United_States_copyright_law#U.S._Government_works Copyright and U.S. Government works] |}

---

Great examples of fair use:


uncategorized

[edit]

#REDIRECT [[NAME OF PAGE 2]]

*{{Book reference | Author= | Title= | Publisher= | Year= | ID=ISBN }}

*{{Journal reference | Author= | Title= | Journal= | Year= | Volume= | Issue= | Pages= | URL= }} [4]

{{ref|**}}

# {{note|***}}

# {{gutenberg|no=12328|name=**}}([[year]]; ISBN ***;)

<br style="clear:both" /> (This forces a clean break below an image. It prevents text-wrapping problems in cases where an image is vertically longer than its accompanying paragraph. This forces "white space" at the bottom of the paragaph, so following grafs do not "crush" upwards.)

<a href="#"> </a>

<A NAME=" ">

See also

[edit]





GO BACK to Expanded Help