Difference between revisions of "Template:JAH/doc"

From blackwiki
Jump to navigation Jump to search
imported>Headbomb
m (→‎top: ce)
imported>Headbomb
(→‎Mode 1: You can then click on the relevant redirect creation link.)
 
(9 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
== Usage ==
 
== Usage ==
The template has two parameters, the first one is for the journal name or abbreviation, the second one for the 'issn'. The ISSN is optional, and will make a few more search link work.
 
*<code><nowiki>{{JAH|JOURNALNAME|ISSN}}</nowiki></code>
 
  
To use the template, put say <code><nowiki>{{JAH|Journal of Foobar|0123-4567}}</nowiki></code> in the edit window, and click on [[Help:Preview|{{button|Show preview}}]].
+
===Mode 1===
 +
In the first mode, the template supports up to 10 parameters, for 10 different journal names.
 +
*<code><nowiki>{{JAH|JOURNALNAME1|JOURNALNAME2|...|JOURNALNAME10}}</nowiki></code>
 +
 
 +
To use the template, put say <code><nowiki>{{JAH|Journal of Foobar}}</nowiki></code> in the edit window, and click on [[Help:Preview|{{button|Show preview}}]].
  
 
If ''JOURNALNAME'' exist, you will be presented with something like this
 
If ''JOURNALNAME'' exist, you will be presented with something like this
{{JAH|Journal of Physics A|1751-8113}}
+
{{JAH|Journal of Physics}}
 
which can then be used to search for abbreviations.
 
which can then be used to search for abbreviations.
  
 
If ''JOURNALNAME'' does ''not'' exist, you will then be presented with something like
 
If ''JOURNALNAME'' does ''not'' exist, you will then be presented with something like
{{JAH|Journal of Foobar|0123-4567}}
+
{{JAH|Journal of Foobar}}
 
The redirect creation links will pre-load a page that can then be saved to create redirects from ''JOURNALNAME'' to the page the template is previewed on. For instance if ''JOURNALNAME'' is a former name of the journal, click on "former name", to create a redirect tagged with {{tl|R from former name}}.
 
The redirect creation links will pre-load a page that can then be saved to create redirects from ''JOURNALNAME'' to the page the template is previewed on. For instance if ''JOURNALNAME'' is a former name of the journal, click on "former name", to create a redirect tagged with {{tl|R from former name}}.
  
However, to create a redirect from an abbreviation, you need to first find the abbreviation (e.g. ''J. Foobar''), and preview the page again
+
However, to create a redirect from an abbreviation, you first need to find the abbreviation (e.g. ''J. Foobar''), and preview the page again to get
{{JAH|J. Foobar|0123-4567}}
+
{{JAH|J. Foobar}}
and then click on the appropriate link (e.g. 'ISO 4 abbreviation' for an [[ISO 4]] abbreviation).
+
You can then click on the appropriate link (e.g. 'ISO 4 abbreviation' for an [[ISO 4]] abbreviation) to pre-load a page that can then be saved.
 +
 
 +
If you can include multiple former names and abbreviations at once, e.g.
 +
:<code><nowiki>{{JAH|Proceedings of the Foobar Society|Proceedings of the Foobar Society of London|Proc. Foobar Soc.|Proc. Foobar Soc. Lond.}}</nowiki></code>
 +
which will give something like
 +
{{JAH|Proceedings of the Foobar Society|Proceedings of the Foobar Society of London|Proc. Foobar Soc.|Proc. Foobar Soc. Lond.}}
 +
You can then click on the relevant redirect creation link.
 +
 
 +
===Mode 2===
 +
In the second mode, the template supports two parameters. The first for the journal name, the second for the [[ISSN]].
 +
 
 +
Put say <code><nowiki>{{JAH|Journal of Foobar|0123-4567}}</nowiki></code> in the edit window, and click on [[Help:Preview|{{button|Show preview}}]].
 +
 
 +
You will be then be presented with something like this
 +
{{JAH|Journal of Foobar|0123-4567}}
 +
which includes extra 'alt' search links for NLM and MathSciNet.
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
  
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 18:42, 20 June 2019

This is a preview template, designed to facilitate the finding of abbreviations, and creation of various redirects for academic journals and similar publications. JAH stands for Journal Abbreviations Helper.

Usage

Mode 1

In the first mode, the template supports up to 10 parameters, for 10 different journal names.

  • {{JAH|JOURNALNAME1|JOURNALNAME2|...|JOURNALNAME10}}

To use the template, put say {{JAH|Journal of Foobar}} in the edit window, and click on Show preview.

If JOURNALNAME exist, you will be presented with something like this

which can then be used to search for abbreviations.

If JOURNALNAME does not exist, you will then be presented with something like

The redirect creation links will pre-load a page that can then be saved to create redirects from JOURNALNAME to the page the template is previewed on. For instance if JOURNALNAME is a former name of the journal, click on "former name", to create a redirect tagged with {{R from former name}}.

However, to create a redirect from an abbreviation, you first need to find the abbreviation (e.g. J. Foobar), and preview the page again to get

You can then click on the appropriate link (e.g. 'ISO 4 abbreviation' for an ISO 4 abbreviation) to pre-load a page that can then be saved.

If you can include multiple former names and abbreviations at once, e.g.

{{JAH|Proceedings of the Foobar Society|Proceedings of the Foobar Society of London|Proc. Foobar Soc.|Proc. Foobar Soc. Lond.}}

which will give something like

You can then click on the relevant redirect creation link.

Mode 2

In the second mode, the template supports two parameters. The first for the journal name, the second for the ISSN.

Put say {{JAH|Journal of Foobar|0123-4567}} in the edit window, and click on Show preview.

You will be then be presented with something like this

which includes extra 'alt' search links for NLM and MathSciNet.