User:Fix Bayonets!//Help/Editing template
From Wikipedia, the free encyclopedia
- GO BACK to Expanded Help
- Test Sandbox, (OR Alterate Test Sandbox).
Contents |
[edit] USEFUL CODE
[edit] 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.
[edit] 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
[edit] Breaks
To force a new line without creating a blank line, type:
<br />
[edit] 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==
[edit] 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]
[edit] Text
[edit] 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> {{-}}
--- 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:
type:
-
- <center>Centered text inserted here</center>
---
[edit] 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 size="1">Font size "1" text inserted here</font>
<font color="red">Font color "red" text inserted here</font>
<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>
[edit] 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
[edit] 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>
[edit] 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
[edit] 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>
[edit] 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.
[edit] Tags
-
- {{Disputed-section}}
- {{Disputed-section}}
-
- {{noncompliant}}
- {{noncompliant}}
---
To say “[citations needed]”, type:
-
- {{fact}}
---
To assign User Name to an UNSIGNED post, type:
-
- {{unsigned|INSERT_USER_NAME}}
[edit] 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]
[edit] 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:
[edit] uncategorized
#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=" ">
[edit] See also
GO BACK to Expanded Help