QED:Templates
From QED
To review or search all templates, visit Special:Prefixindex and select the Template namespace, or go there now.
For a list of copyright notices defined as templates, visit Template:Copyright.
For Dublin Core templates, see Dublin Core.
The following tables provides a guide to generic or frequently-used templates.
Contents |
Viewing Uploaded Files
| Template:Audio | Display the link to an uploaded audio clip | like so (help·info)
|
| Template:GoogleEarth | View a geographical data file using Google Earth | Trade Routes (help · info)
|
| Template:GoogleEarthMaps | View a geographical data file using Google Earth or Google Maps | |
| Template:GoogleMaps | View a geographical data file using Google Maps | |
| Template:msword | E.g. {{msword|xyz.doc|XYZ Documentation}} produces: | XYZ Documentation (help · info) |
| Template:pdf | E.g. {{pdf|xyz.pdf|XYZ Documentation}} produces: | XYZ Documentation (help · info) |
Template:pdflink can be used for hyperlinks to pdf files in general, e.g. {{pdflink|http://no.where.org/example.pdf|example.pdf}} produces example.pdf
For files that have been uploaded to Webshare, see Template:webshare.
For .djvu files, see Template:djvu.
See also Help:Video and Help:Flash.
Cataloging Templates
- Template:Creator — see also Category:Creator
- Template:Dublin Core
- Template:Dublin_Core_With_Qualifiers
- Template:Dublin Core Extensions
Signs and Symbols
| Template:* | {{*}} | • |
| Template:blackbox | {{blackbox}} | ∎ |
| Template:ck | Check marks, ballot Xs, empty ballot box | ✓ ✔ ✗ ✘ ☐ |
| Template:favicon | {{favicon|http://qed.princeton.edu}} | |
| Template:graybox | {{graybox}} | ∎ |
| Template:gt | a{{gt}}b | a b
|
| Template:P | Resizable orange | |
| Template:permalink | E.g. This is a DOI permalink |
|
| Template:TM | TradeMark symbol TM | Compare XyzzyTM with Xyzzy™ |
Separators
These symbols also serve as paragraph separators.
| Template:graybox | {{graybox}} | ∎ |
| Template:halfline | {{halfline}} | _________________________________ |
Quotations
Template:cquote produces formatted text with quotation marks like this:
| “ | And this is what he said. | ” |
| —Aaron Copland, Lincoln Portrait | ||
Template:quotation produces a box like this. See also Template:Quote.
Template:quote produces formatted text like this. Optionally, source information may also be specified. See also Template:Quotation.
—Wiki Guy
Text Boxes
<?php echo "Hello world.\n"; ?>
This text box uses Template:code, which is a variant of Template:File.
| This text box uses Template:box, which allows the text to wrap dynamically depending on the size of the browser window. One can also optionally specify the width of the box and other parameters. |
| This text box uses Template:pre, which produces similar results to the HTML <pre> tag, except that the text will wrap dynamically depending on the size of the browser window. This template is identical to Template:box except that the text in the box is embedded within <tt> and </tt> tags. |
- Examples:
See also Help:Boxed text.
Templates for Tables and Templates
Template:bgc, Template:rh, and Template:table illustrate how templates can be used to specify style in a table.
The bgc template can be used anywhere that the CSS attribute "background-color" is used. For example, it makes it easy to create a table with alternating row colors, though such tables can often be created more simply using the zebra class.
The rh template is mainly intended to simplify creating row-wise style specifications.
The first of the following two tables uses {{table}}, and the second uses class=wikitable:
| Glyph | Entity Name |
|---|---|
| © | © |
| Glyph | Entity Name |
|---|---|
| © | © |
Special Characters
The following can be used in contexts where a literal | is desired:
- {{vbar}} is equivalent to | and produces |
- {{abs|X}} is equivalent to |X| and produces |X|
Miscellaneous
| Template:archive | Manage link rot by using web.archive.org | http://infoshare1.princeton.edu/katmandu/electronic/ejpage.html | |
| Template:Click | Specify the hyperlink for a small image | ||
| Template:Clr | Force a break across the entire page (useful e.g. with tables) | ||
| Template:Co | Generate a text box with foreground and background colors |
| |
| Template:Color | Specify text color | Blue | |
| Template:DOI | E.g. {{DOI|10.1038/35057062|example}} produces: | exampleDOI
| |
| Template:ExternalAudio | Display the link to an external audio recording |
| |
| Template:fs | Change the fontsize e.g. {{fs|4|This is size 4}} | This is size 4 | |
| Template:h:title | Add hovertext and optionally underline with dots | Hover here | |
| Template:legend | Create a color legend | The color black | |
| Template:ls | Include a list of the subpages of a top-level page. (Ardvaark/xyzzy is a subpage of Ardvaark.) | ||
| Template:pdflink | Link to an external pdf file | WorldHaplogroupsMaps.pdf | |
| Template:period color | Map names for geological time periods to color specifications |
| |
| Template:repeat | Repeat TEXT COUNT number of times | ∎∎∎∎∎∎∎∎∎∎ | |
| Template:RestartTheAnimation | Provides a button for reloading the first image on the page | ||
| Template:target | Specify that a link should open in a new tab or window | Princeton University | |
| Template:Titled-click | Specify the hyperlink and hover text for a small image | ||
| Template:Top | Insert a hyperlink to the top of the page. The label can be customized | ||
| Template:Valid XML | Use the W3C Valid XML logo to advertise and/or to facilitate testing | ||
| Template:wp | Useful when a link to wikipedia and to another page are both wanted e.g. [http://dspace.mit.edu DSpace]{{wp|DSpace}} | DSpacewp |
Other Examples
On this page, {{ls}} produces: This page doesn't have any sub-pages
See also
- Help:Calendar
- Help:iPaper
- Help:Navigational Templates
- Help:Restricted:Princeton — how to restrict access so that only logged-in users can view a specific page
- Help:Restricted:User — how to make one or more of your pages in the User: namespace private
- Table-Related Templates
- Help:Timeline
- Help:Transclusion — templates for transcluding images from other web sites
- Folder-based Customization — templates of the form Folder:NAME
- http://meta.wikimedia.org/wiki/Template

b













