Difference between revisions of "Template:G"

From imedwiki
Jump to navigation Jump to search
[checked revision][checked revision]
(translation)
(in case of 4th parameter no link)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<onlyinclude><includeonly><!--
 
<onlyinclude><includeonly><!--
 
-->{{#if: {{{1|}}} |<!--
 
-->{{#if: {{{1|}}} |<!--
   -->{{#ifexpr: {{#invoke:String|len|{{uc:{{{1}}}}}}} = 1 | [http://fvn-archiv.net/PDF/GA/GA00{{{1}}}.pdf | {{#ifexpr: {{#invoke:String|len|{{uc:{{{1}}}}}}} = 2 | {{#iferror: {{#expr: 1*{{{1|}}}}} | [http://fvn-archiv.net/PDF/GA/GA00{{{1}}}.pdf | [http://fvn-archiv.net/PDF/GA/GA0{{{1}}}.pdf }} |<!-- 2-stellige GA-Nummern (z.B. GA 18) mit einer führenden Null ergänzen bzw. mit zwei Nullen, falls die GA-Nummer mit einem Buchstaben endet.
+
   -->{{#if: {{{4|}}}||[}}{{#ifexpr: {{#invoke:String|len|{{uc:{{{1}}}}}}} = 1 | http://fvn-archiv.net/PDF/GA/GA00{{{1}}}.pdf | {{#ifexpr: {{#invoke:String|len|{{uc:{{{1}}}}}}} = 2 | {{#iferror: {{#expr: 1*{{{1|}}}}} | http://fvn-archiv.net/PDF/GA/GA00{{{1}}}.pdf | http://fvn-archiv.net/PDF/GA/GA0{{{1}}}.pdf }} |<!-- 2-stellige GA-Nummern (z.B. GA 18) mit einer führenden Null ergänzen bzw. mit zwei Nullen, falls die GA-Nummer mit einem Buchstaben endet.
 
   -->{{#ifexpr: {{#invoke:String|len|{{uc:{{{1}}}}}}} = 3 | <!-- 3-stellige GA-Nummern nur dann mit einer führenden Null ergänzen, falls sie mit einem Buchstaben endet (z.B. GA 93a).
 
   -->{{#ifexpr: {{#invoke:String|len|{{uc:{{{1}}}}}}} = 3 | <!-- 3-stellige GA-Nummern nur dann mit einer führenden Null ergänzen, falls sie mit einem Buchstaben endet (z.B. GA 93a).
   -->{{#iferror: {{#expr: 1*{{{1|}}}}} | [http://fvn-archiv.net/PDF/GA/GA0{{{1}}}.pdf | {{#ifexpr: {{{1}}} = 245 | [http://www.bdn-steiner.ru/cat/ga/245.pdf | [http://fvn-archiv.net/PDF/GA/GA{{{1}}}.pdf }} }}<!-- Sonderfall GA 245 wird über http://www.bdn-steiner.ru abgerufen
+
   -->{{#iferror: {{#expr: 1*{{{1|}}}}} | [http://fvn-archiv.net/PDF/GA/GA0{{{1}}}.pdf | {{#ifexpr: {{{1}}} = 245 | http://www.bdn-steiner.ru/cat/ga/245.pdf | http://fvn-archiv.net/PDF/GA/GA{{{1}}}.pdf }} }}<!-- Sonderfall GA 245 wird über http://www.bdn-steiner.ru abgerufen
 
   -->|<!--
 
   -->|<!--
   -->[http://fvn-archiv.net/PDF/GA/GA{{{1}}}.pdf }} }}}}<!-- 4-stellige GA-Nummern, die mit einem Buchstaben enden (z.B. GA 324a).
+
   -->http://fvn-archiv.net/PDF/GA/GA{{{1}}}.pdf }} }}}}<!-- 4-stellige GA-Nummern, die mit einem Buchstaben enden (z.B. GA 324a).
 
   -->{{#if: {{{3|}}} |<!-- Seite in URL über 3. Parameter, wenn gesetzt
 
   -->{{#if: {{{3|}}} |<!-- Seite in URL über 3. Parameter, wenn gesetzt
 
     -->{{msgnw:Hash}}page={{{3}}}&view=Fit<!--
 
     -->{{msgnw:Hash}}page={{{3}}}&view=Fit<!--
Line 13: Line 13:
 
     -->}}<!--
 
     -->}}<!--
 
   -->}}<!--
 
   -->}}<!--
   --> GA {{{1}}}<!--
+
   -->{{#if: {{{4|}}}|| GA {{{1}}}<!--
 
   -->{{#if: {{{2|}}} |<!--
 
   -->{{#if: {{{2|}}} |<!--
 
     -->, S. {{{2}}}<!--
 
     -->, S. {{{2}}}<!--
 
   -->}}<!--
 
   -->}}<!--
   -->]<!--
+
   -->}}<!--
 +
  -->{{#if: {{{4|}}}||]}}<!--
 
-->|<!-- Wenn Parameter 1 leer:
 
-->|<!-- Wenn Parameter 1 leer:
 
--><span class="error">Keine GA-Nummer angegeben !</span><!--
 
--><span class="error">Keine GA-Nummer angegeben !</span><!--
Line 23: Line 24:
 
--></includeonly></onlyinclude>
 
--></includeonly></onlyinclude>
  
This template generates a link to a PDF file of the Rudolf Steiner Complete Edition. Text basis are the documents of the "Freien Verwaltung des Nachlasses von Rudolf Steiner" (http://fvn-archiv.net).  
+
This template generates a link to a german PDF file of the Rudolf Steiner Complete Edition. Text basis are the documents of the "Freien Verwaltung des Nachlasses von Rudolf Steiner" (http://fvn-archiv.net).  
 
==Parameter==
 
==Parameter==
 
{| class=wikitable
 
{| class=wikitable
Line 63: Line 64:
 
  <nowiki>{{G|100||4}}</nowiki> becomes {{G|100||4}}, no page number is shown, link leading to page 4: http://fvn-archiv.net/PDF/GA/GA100.pdf#page=4
 
  <nowiki>{{G|100||4}}</nowiki> becomes {{G|100||4}}, no page number is shown, link leading to page 4: http://fvn-archiv.net/PDF/GA/GA100.pdf#page=4
  
[[Categorie:Template:Citation]]
+
[[Category:Template:Citation]]
 
{{SourceAnthrowiki|sourcetitle=Template:G}}
 
{{SourceAnthrowiki|sourcetitle=Template:G}}
 
</noinclude>
 
</noinclude>

Latest revision as of 23:35, 22 September 2021


This template generates a link to a german PDF file of the Rudolf Steiner Complete Edition. Text basis are the documents of the "Freien Verwaltung des Nachlasses von Rudolf Steiner" (http://fvn-archiv.net).

Parameter

Parameter Description
1 Volume of GA
2 Number of pages for the text edition
3 alternative page number for the link

Format

{{G|GA-Volume|Page (i.e. 103ff)|alternative page in pdf (z.e. 102)}}

The alternative page number can be specified as link target in the PDF document if the page in the PDF does not match the page number of the GA.

Some PDF readers cannot handle page numbers like 128f or 103 ff (with or without spaces after the page number), the first page would be called. For the page link therefore "f" or "f." or "ff" or "ff." are removed automatically:

{{G|100|128f.}} becomes 100, S. 128f., link leading to: http://fvn-archiv.net/PDF/GA/GA100.pdf#page=128
{{G|100|103 ff}} becomes ff&view=FitGA 100, S. 103 ff, link leading to: http://fvn-archiv.net/PDF/GA/GA100.pdf#page=103

Beispiele

{{G|100}} becomes 100; {{G|3}} becomes 3
{{G|324a|25f}} becomes 324a, S. 25f; {{G|003|2}} becomes 003, S. 2; {{G|93a|120}} becomes [93a, S. 120 
{{G|245|25f}} becomes 245, S. 25f link leading to: http://www.bdn-steiner.ru/cat/ga/245.pdf#page=25
{{G|100|2 f|4}} becomes 100, S. 2 f, it shows page 2, but the link leads to page 4: http://fvn-archiv.net/PDF/GA/GA100.pdf#page=4
{{G|100||4}} becomes 100, no page number is shown, link leading to page 4: http://fvn-archiv.net/PDF/GA/GA100.pdf#page=4
This template is based (in parts) on the Template:G from Anthrowiki and is licensed under GNU license for free documentation and the Creative Commons Attribution/Share Alike. On Anthrowiki there is a List of authors accessible.