User:Dick Bos/Templates
Jump to navigation
Jump to search
A list of templates I often use, and some other editing helps.
Editing in the Page namespace
[edit]Editing templates
[edit]- Large initial and
- Bar: short line in text. {{bar}} makes ; {{bar|2}} makes ; {{bar|1}} makes (=mdash);
- there's nothing between {{bar|1}} and {{bar|2}}; so {{bar|1.5}} = {{bar|2}}
- Rule: inserts a horizontal rule: {{rule|10em}} makes:
- Graphic rule: makes
- (with optional parameters)
- also {{custom rule|sp|40|co|6|sp|40}} gives:
- Frame: a frame around text.
- block center: text in the middle, left aligned.
- c: center
- clear: adds html clear:both
- dhr: double height row: two textrows between paragraphs (or more with parms)
- ditto: for aligning text in tables etc. with quotation marks. See e.g. this page
- DJVU page link
- frac: making fractions with 1,2 or 3 parameters! {{frac|a|b|c}} makes ab⁄c; * and sfrac: a (vertical) fraction, like 56.
- gap: to create some space
- hi -> Hanging indent
- hidden text -> for aligning e.g. this (contents) page
- hws: hyphenated word start - syntax: {{hws|differ|differences}} For hws and hwe combined with italics, see: doc on Template (below)
- hwe: hyphenated word end - syntax: {{hwe|ences|differences}}
- left: for aligning left (with a <div>!), like:
{{left|Dit staat links {{lorem ipsum}}}} gives:
Dit staat links Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
en {{left|Dit staat links {{lorem ipsum}}|offset=10em}} gives:
Dit staat links Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- Loop: for repeating a string
- nop: end of paragraph
- nowrap: to avoid wrapping
- rh: RunningHeader - syntax: {{RH|left|center|right}} See also: Template:rvh for easy use on recto-verso pages
- separator - syntax: {{separator|7}} - means: 7 dots
- SIC - mind the capitals! example: {{SIC|taping mistake|typing mistake}} gives: taping mistake. Another example: The Voyage Out (my predecessor used "sic" and the word disappeared completely!)
- Help about sidenotes, with links to different templates
- sc, also Template:Small-caps
- sp, more generally: Template:Letter-spacing
- smallrefs; with optional font size!
- underline - e.g. in: Page:William_Petty_-_Economic_Writings_(1899)_vol_1.djvu/205 (footnote 1), overline - e.g. in: Page:William_Petty_-_Economic_Writings_(1899)_vol_1.djvu/240 (footnote 1) and strikethrough - e.g. in: Page:William_Petty_-_Economic_Writings_(1899)_vol_1.djvu/239 (footnote 5).
- ts: table style - syntax for instance: {{ts|ac|sm}} (in format modifier-section) - means: cell gets centered and small txt (help on tables: mediawiki help-page)
- Dotted TOC page listing (TOC=Table Of Contents); example: The Economic Journal Vol.1. And see Category:TOC templates
- linkable phrase start and linkable phrase end for a link on two pages; compare e.g. Page:The_Economic_Journal_Volume_1.djvu/144 (and the next page, of course); see also: scriptorium: "Link at two pages" (dec. 2013)
- left margin and both margins - example here
- align right - syntax: {{right|'''Example text'''}}; And Template:float right for an element on the same line. See Wikisource:Scriptorium/Help/Archives/2017#lay_out_of_index. Thanx to User:Beleg Tâl.
- Template:User annotation: for footnotes by Wikisource contributor.
- Template:W: short linking to Wikipedia
Rem:
- poem is not a template, but a tag: <poem>....</poem>!
Font size
[edit]- larger - This is larger;
- x-larger - This is x-larger;
- xx-larger - This is xx-larger;
- xxx-larger - This is xxx-larger;
- fine - not as small as smaller, but smaller than normal;
- smaller - This is smaller;
- x-smaller - This is x-smaller;
- xx-smaller - This is xx-smaller
see also:
- smaller block; with smaller block/s and smaller block/e
- fine block: not as small as "smaller"
and:
- Font-size90% (or: fs90) - to slightly reduce the font size in quotes etc.
Special characters
[edit]- mdash: —
—
— nl: gedachtestreepje or kastlijntje - ndash: –
–
— nl: halfkastlijntje
and see also:
- Help on dashes on Wikipedia-en and Wikipedia-en on "Dashes"
- w:nl:Liggend streepje in de Nederlandse spelling
- How to render dashes on a keyboard
For differences between block and inline templates: Help:Block and inline elements
Tables
[edit]- Table-styles: w:Help:Table
- Make a table centered: style="margin: 1em auto 1em auto;" (w:Help:TABLECENTER) - see for instance: Page:The_Economic_Journal_Volume_1.djvu/67
- and centered width 90%: style="width: 90%; margin-left: auto; margin-right: auto; border: none;" - see e.g. Page:PettyWilliam1899EconomicWritingsVol2.djvu/56
- and align right: style="margin-left: auto; margin-right: 1em; border: none;" - see e.g.: Page:Petty_1851_The_Down_Survey.djvu/53
- Help with tables and some styles used in formatting tables
- template Table style
- Tables across page breaks: Help:Page_breaks#Tables_across_page_breaks
- for adjusting line-height: see e.g. Page:The Zoologist, 4th series, vol 1 (1897).djvu/447
Dotted tables (table with leader dots)
[edit]Tables with braces
[edit]- Template:Brace or Template:Brace2 - {{Brace2}} makes: , {{Brace2|2}} makes: , {{Brace2|3|l}} makes: etc.
Footnotes, endnotes and sidenotes
[edit]Footnotes that spread over more than one page
[edit]- Help: footnote over page break; see p. 106 and p. 107 in An_Essay_on_the_Principle_of_Population (1798) by Malthus. And see page 220 of Life of Petty for a footnote over two pages, with a hyphen in it.
- and for a footnote over two pages with a hyphenated word, see: Life_of_Sir_William_Petty_1623_-_1687/Chapter_VII#220 / p. 221 -> footnote 96.
- for a footnote over three pages see Page:Principles_of_Political_Economy_Vol_1.djvu/129 and the following pages. And what it looks like in the main namespace: Principles of Political Economy (J.S. Mill, 1871), vol. 1/Book I, Chapter V.
- And here one over four pages: Page:George Archdall Reid 1896 The present evolution of man.djvu/169
Images
[edit]- missing image: Template:Missing image
- if a raw scan is usable (temporary): Template:Raw image
- see: Help:Adding images
- use: Template:Img float
About removing line breaks
[edit]Colours
[edit]- background: span style to create a background color;
syntax: <span style="background-color:yellow;">span style to create a background color</span> - list of colors in Dutch, in English
Index namespace
[edit]- Help:Index pages
- Example of Index with missing page(s): Index:Petty 1851 The Down Survey.djvu - last two pages; don't forget to transclude them separately into the main namespace!
Main namespace
[edit]- Help:Beginner's guide to transclusion, and
- Help:Transclusion
- Template:anchor to make an anchorpoint for linking; e.g. in Petty's Place in the History of Economic Theory to Contents.
- Help:Redirects and Help:Disambiguation; see e.g. Author:Robert Hall
Author namespace
[edit]- Template:Small scan link - link to Index; examples in: Author:Edmund Selous
- Template:Ext scan link - link to external text; id.
linking to wikidata
[edit]- Template:Wikidata link
- Template:Cite Q now available!
Some special templates
[edit]- Template:Aut from en-wiki
- Template:DNB link for link to DNB
- Template:scan for linking to a work, and its Index
- Template:header for use in the main namespace, at the top of a "Work"
- Template:Page for including a page in the main namespace; example: Political Arithmetick (1899)
- Template:Delete en Template:Sdelete
Some help pages
[edit]- Help:Beginner's guide to typography
- Help with templates
- Help with page breaks, for instance with tables across pages
Sections: when chapters start halfway the page
[edit]When a chapter starts halfway the page, like on Page:Sir William Petty - A Study in English Economic Literature - 1894.djvu/39, use section headers; and link to these headers in the main namespace: Bevan - Sir William Petty (1894)/II and Bevan - Sir William Petty (1894)/III. See: Help:Transclusion#How_to_transclude_a_portion_of_a_page.