Template:EB1922set/doc

From Wikisource
Jump to navigation Jump to search

Usage

[edit]

Template, by default, used to apply {{EB1922}} and typeset pages in a standard fashion utilising partial or full transclusion from the Page: namespace.

Ideally, copy and paste the text between and including the curly brackets {{EB1922set}} (below) as it is, complete the required detail and save.

Note that this template needs to be substituted for full effect, as shown.

For this to work the article subpage under 1922 Encyclopædia Britannica must have the same name as the translucent tags in the Page: namespace.

The from= and to= fields contain the page image location numbers and not the page numbers that appear in the image. In the Abingdon, William Leper example below: the page image location number is "31" while the page number that appears in the image is "1" (The output is automagically adjusted to display the page numbers that appear in the image which in this example is "1" — if the page numbers are not what are expected then please ask for help at Wikisource:Scriptorium‎ or Wikisource talk:WikiProject 1922 Encyclopædia Britannica)

Where start and finish <section>s are given the same id
{{subst:EB1922set
 |volume=
 |previous= 
 |next= 
 |wikipedia = 
 |extra_notes= 
 |from=
 |to= 
}}
Where start and finish <section>s are given different id names.
{{subst:EB1922set
 |volume=
 |previous= 
 |next= 
 |wikipedia = 
 |extra_notes= 
 |from=        
 |to=
 |fromsection=  
 |tosection= 
}}

Example

[edit]

In this example the article name that is to be used is "Abingdon, William Leper"

so to work correctly with these parameters the subst:EB1922set...
must be placed in 1922 Encyclopædia Britannica/Abingdon, William Leper
and the markup in page space must be ## Abingdon, William Leper ##

The output section below means what is seen when the template {{subst:EB1922set... is placed on the article page, the [save page] button is pressed to save the edit and then another edit is made to the page to see the result.

Code

[edit]
{{subst:EB1922set
 |volume    = 30
 |previous  = Aberdeen and Temair, John Campbell Gordon, 1st Marquess of
 |next      = Abney, Sir William de Wiveleslie
 |wikipedia = William Leper Abingdon
 |extra_notes=
 |from=31
 |to=32
}}

Output

[edit]
{{EB1922
 |volume=30
 |previous=Aberdeen and Temair, John Campbell Gordon, 1st Marquess of
 |next= Abney, Sir William de Wiveleslie
 |contributor = 
 |override_contributor = 
 |wikipedia = William Leper Abingdon
 |wikipedia2 = 
 |other_projects = 
 |extra_notes= 
}}

<pages index="EB1922 - Volume 30.djvu" from="31" to="32" fromsection="Abingdon, William Leper" tosection="Abingdon, William Leper">
</pages>
{{smallrefs}}

In the wild

[edit]

Known problems

[edit]

Some titles may cause problems if they have characters in them that confused the script language. For example there is a article called Annunzio, Gabriele D' and the single quite confuses the {{EB1922set}} script. The simple work around is use the parameters fromsection= and tosection= like this:

{{subst:EB1922set
 |volume    = 30
 |previous  = Angola
 |next      = Anson, Sir William Reynell
 |wikipedia = Gabriele d'annunzio 
 |extra_notes=
 |from=173
 |to=173
 |fromsection=Annunzio, Gabriele D'
 |tosection=Annunzio, Gabriele D'
}}

This will not work if there are double quotes in the name — to work around that use the html code &quot; or &#34;, this method can be used for any character for which the first solution does not work (external link: "HTML Codes for punctuation and other characters").