User:Fix Bayonets!//Help/Editing template
GO BACK to Expanded Help
USEFUL CODE
TOC
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
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
To force a new line without creating a blank line, type:
<br />
References
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/>
-
==References==
Link to a website
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
Alignment
To force text right, such as this:
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> {{-}}
Font size, style, and color
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: strike-through or underline
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
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
To make text super or sub-script like this:
X2, H2O
type:
- X<sup>2</sup>, H<sub>2</sub>O
Previewing code
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
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
- {{Disputed-section}}
- {{Disputed-section}}
- {{noncompliant}}
- {{noncompliant}}
To say “[citations needed]”, type:
- {{fact}}
Search a User's contribution list
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
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:
See also
GO BACK to Expanded Help