Difference between pages "Template:Cite web/Swedish" and "Template:Cite web/Swedish/sandbox"

(Difference between pages)
Jump to navigation Jump to search
Page 1
Page 2
imported>Jonesey95
(hyphenated parameters preferred)
 
imported>Buidhe
m (Buidhe moved page Template:Webbref/sandbox to Template:Cite web/Swedish/sandbox: RM closed as move)
 
Line 9: Line 9:
 
-->{{cite web
 
-->{{cite web
 
| url={{{url|}}}
 
| url={{{url|}}}
|url-status={{{deadurl|}}}
+
| deadurl={{{deadurl|}}}
 
| title={{{title|{{{titel|{{{rubrik|<!--
 
| title={{{title|{{{titel|{{{rubrik|<!--
 
   --><noinclude>Titel</noinclude><includeonly><!--
 
   --><noinclude>Titel</noinclude><includeonly><!--
Line 24: Line 24:
 
| last={{{last|{{{efternamn|}}}|}}}
 
| last={{{last|{{{efternamn|}}}|}}}
 
| first={{{first|{{{förnamn|}}}|}}}
 
| first={{{first|{{{förnamn|}}}|}}}
| author-link={{{authorlink|{{{författarlänk|}}}|}}}{{{författarlänk1|}}}
+
| authorlink={{{authorlink|{{{författarlänk|}}}|}}}{{{författarlänk1|}}}
| author-link2={{{authorlink2|{{{författarlänk2|}}}|}}}
+
| authorlink2={{{authorlink2|{{{författarlänk2|}}}|}}}
| author-link3={{{authorlink3|{{{författarlänk3|}}}|}}}
+
| authorlink3={{{authorlink3|{{{författarlänk3|}}}|}}}
| author-link4={{{författarlänk4|}}}
+
| authorlink4={{{författarlänk4|}}}
| author-link5={{{författarlänk5|}}}
+
| authorlink5={{{författarlänk5|}}}
| author-link6={{{författarlänk6|}}}
+
| authorlink6={{{författarlänk6|}}}
 
| others={{{others|}}}{{{other|}}}{{{övriga|}}}
 
| others={{{others|}}}{{{other|}}}{{{övriga|}}}
 
| subscription={{{subscription|{{{suscripción|}}}|}}}
 
| subscription={{{subscription|{{{suscripción|}}}|}}}
Line 49: Line 49:
 
| edition={{{edition|}}}{{{upplaga|}}}{{{utgåva|}}}
 
| edition={{{edition|}}}{{{upplaga|}}}{{{utgåva|}}}
 
| ref={{{ref|{{{odn|}}}|}}}
 
| ref={{{ref|{{{odn|}}}|}}}
| orig-year={{{origyear|}}}{{{origår|}}}{{{origdatum|}}}
+
| origyear={{{origyear|}}}{{{origår|}}}{{{origdatum|}}}
 
| date={{SAFESUBST:<noinclude />#if: {{{date|{{{datum|}}}|}}}{{{publdatum|}}}|{{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{date|{{{datum|}}}|}}}{{{publdatum|}}}}}}}
 
| date={{SAFESUBST:<noinclude />#if: {{{date|{{{datum|}}}|}}}{{{publdatum|}}}|{{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{date|{{{datum|}}}|}}}{{{publdatum|}}}}}}}
 
| year={{SAFESUBST:<noinclude />#if: {{{month|{{{månad|}}}|}}}|{{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{month|{{{månad|}}}|}}}}}}}<!--endif month/månad
 
| year={{SAFESUBST:<noinclude />#if: {{{month|{{{månad|}}}|}}}|{{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{month|{{{månad|}}}|}}}}}}}<!--endif month/månad
 
  plus year--> {{{year|}}}{{{år|}}}
 
  plus year--> {{{year|}}}{{{år|}}}
| access-date={{SAFESUBST:<noinclude />#if: {{{accessdate|{{{hämtdatum|{{{access-date|}}}|}}}|}}}|{{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{accessdate|{{{hämtdatum|{{{access-date|}}}|}}}|}}}}}}}
+
| accessdate={{SAFESUBST:<noinclude />#if: {{{accessdate|{{{hämtdatum|{{{access-date|}}}|}}}|}}}|{{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{accessdate|{{{hämtdatum|{{{access-date|}}}|}}}|}}}}}}}
 
| language={{
 
| language={{
 
   SAFESUBST:<noinclude />#switch: {{{lang|<!--
 
   SAFESUBST:<noinclude />#switch: {{{lang|<!--
Line 64: Line 64:
 
   | bibcode={{{bibcode|}}}
 
   | bibcode={{{bibcode|}}}
 
   | id={{{id|{{{ID|}}}|}}}
 
   | id={{{id|{{{ID|}}}|}}}
   | archive-url={{{archiveurl|{{{archive-url|{{{arkivurl|<!--
+
   | archiveurl={{{archiveurl|{{{archive-url|{{{arkivurl|<!--
 
   -->}}}|}}}|}}}
 
   -->}}}|}}}|}}}
   | archive-date={{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{archivedate|{{{archive-date|{{{arkivdatum|}}}|}}}|}}}}}
+
   | archivedate={{#invoke:month translator|month_xlate|{{{archivedate|{{{archive-date|{{{arkivdatum|}}}|}}}|}}}}}
 
   | quote={{{quote|{{{citat|}}}|}}}
 
   | quote={{{quote|{{{citat|}}}|}}}
 
   | postscript={{SAFESUBST:<noinclude />#if:{{{notas|}}}
 
   | postscript={{SAFESUBST:<noinclude />#if:{{{notas|}}}
Line 80: Line 80:
 
   | first4={{{first4|{{{förnamn4|}}}|}}}
 
   | first4={{{first4|{{{förnamn4|}}}|}}}
 
   | chapter={{{chapter|{{{kapitel|}}}|}}}
 
   | chapter={{{chapter|{{{kapitel|}}}|}}}
   | chapter-url={{{chapterurl|}}}{{{kapitelurl|}}}
+
   | chapterurl={{{chapterurl|}}}{{{kapitelurl|}}}
 
   | issn={{{issn|{{{ISSN|}}}|}}}
 
   | issn={{{issn|{{{ISSN|}}}|}}}
 
   | isbn={{{isbn|{{{ISBN|}}}|}}}
 
   | isbn={{{isbn|{{{ISBN|}}}|}}}
Line 101: Line 101:
 
   |{{SAFESUBST:<noinclude />!}}url={{{url|}}}{{{URL|}}}
 
   |{{SAFESUBST:<noinclude />!}}url={{{url|}}}{{{URL|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{deadurl|{{{deadurl|}}}|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{deadurl|{{{deadurl|}}}|}}}
   |{{SAFESUBST:<noinclude />!}}url-status={{{deadurl|}}}{{{deadurl|}}}
+
   |{{SAFESUBST:<noinclude />!}}deadurl={{{deadurl|}}}{{{deadurl|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{last|}}}{{{efternamn|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{last|}}}{{{efternamn|}}}
 
   |{{SAFESUBST:<noinclude />!}}last={{{last|}}}{{{efternamn|}}}
 
   |{{SAFESUBST:<noinclude />!}}last={{{last|}}}{{{efternamn|}}}
Line 121: Line 121:
 
   |{{SAFESUBST:<noinclude />!}}author={{{author|}}}{{{författare|}}}{{{författare1|}}}
 
   |{{SAFESUBST:<noinclude />!}}author={{{author|}}}{{{författare|}}}{{{författare1|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{authorlink|}}}{{{author-link|}}}{{{författarlänk|}}}{{{författarlänk1|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{authorlink|}}}{{{author-link|}}}{{{författarlänk|}}}{{{författarlänk1|}}}
   |{{SAFESUBST:<noinclude />!}}author-link={{{authorlink|}}}{{{author-link|}}}{{{författarlänk|}}}{{{författarlänk1|}}}
+
   |{{SAFESUBST:<noinclude />!}}authorlink={{{authorlink|}}}{{{author-link|}}}{{{författarlänk|}}}{{{författarlänk1|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{author2|}}}{{{författare2|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{author2|}}}{{{författare2|}}}
 
   |{{SAFESUBST:<noinclude />!}}author2={{{author2|}}}{{{författare2|}}}
 
   |{{SAFESUBST:<noinclude />!}}author2={{{author2|}}}{{{författare2|}}}
Line 133: Line 133:
 
   |{{SAFESUBST:<noinclude />!}}author6={{{author6|}}}{{{författare6|}}}
 
   |{{SAFESUBST:<noinclude />!}}author6={{{author6|}}}{{{författare6|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{authorlink2|}}}{{{author-link2|}}}{{{författarlänk2|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{authorlink2|}}}{{{author-link2|}}}{{{författarlänk2|}}}
   |{{SAFESUBST:<noinclude />!}}author-link2={{{authorlink2|}}}{{{author-link2|}}}{{{författarlänk2|}}}
+
   |{{SAFESUBST:<noinclude />!}}authorlink2={{{authorlink2|}}}{{{author-link2|}}}{{{författarlänk2|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{authorlink3|}}}{{{author-link3|}}}{{{författarlänk3|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{authorlink3|}}}{{{author-link3|}}}{{{författarlänk3|}}}
   |{{SAFESUBST:<noinclude />!}}author-link3={{{authorlink3|}}}{{{author-link3|}}}{{{författarlänk3|}}}
+
   |{{SAFESUBST:<noinclude />!}}authorlink3={{{authorlink3|}}}{{{author-link3|}}}{{{författarlänk3|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{others|{{{other|}}}|}}}{{{övriga|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{others|{{{other|}}}|}}}{{{övriga|}}}
 
  |{{SAFESUBST:<noinclude />!}}others={{{others|{{{other|}}}|}}}{{{övriga|}}}
 
  |{{SAFESUBST:<noinclude />!}}others={{{others|{{{other|}}}|}}}{{{övriga|}}}
Line 172: Line 172:
 
  |{{SAFESUBST:<noinclude />!}}subscription={{{subscription|{{{suscripción|}}}|}}}
 
  |{{SAFESUBST:<noinclude />!}}subscription={{{subscription|{{{suscripción|}}}|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{archive-url|}}}{{{archiveurl|}}}{{{arkivurl|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{archive-url|}}}{{{archiveurl|}}}{{{arkivurl|}}}
   |{{SAFESUBST:<noinclude />!}}archive-url={{{archive-url|}}}{{{archiveurl|}}}{{{arkivurl|}}}
+
   |{{SAFESUBST:<noinclude />!}}archiveurl={{{archive-url|}}}{{{archiveurl|}}}{{{arkivurl|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{archivedate|}}}{{{archive-date|}}}{{{arkivdatum|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{archivedate|}}}{{{archive-date|}}}{{{arkivdatum|}}}
   |{{SAFESUBST:<noinclude />!}}archive-date={{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{archivedate|}}}{{{archive-date|}}}{{{arkivdatum|}}}}}
+
   |{{SAFESUBST:<noinclude />!}}archivedate={{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{archivedate|}}}{{{archive-date|}}}{{{arkivdatum|}}}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{date|{{{datum|}}}|}}}{{{publdatum|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{date|{{{datum|}}}|}}}{{{publdatum|}}}
 
  |{{SAFESUBST:<noinclude />!}}date={{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{date|{{{datum|}}}|}}}{{{publdatum|}}}}}
 
  |{{SAFESUBST:<noinclude />!}}date={{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{date|{{{datum|}}}|}}}{{{publdatum|}}}}}
Line 180: Line 180:
 
  |{{SAFESUBST:<noinclude />!}}year={{{month|}}}{{{månad|}}} {{{year|{{{år|{{{Year|}}}|}}}|}}}
 
  |{{SAFESUBST:<noinclude />!}}year={{{month|}}}{{{månad|}}} {{{year|{{{år|{{{Year|}}}|}}}|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{accessdate|{{{hämtdatum|}}}|}}}{{{access-date|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{accessdate|{{{hämtdatum|}}}|}}}{{{access-date|}}}
  |{{SAFESUBST:<noinclude />!}}access-date={{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{accessdate|{{{hämtdatum|}}}|}}}{{{access-date|}}}}}
+
  |{{SAFESUBST:<noinclude />!}}accessdate={{safesubst:<noinclude />#invoke:month translator|month_xlate|{{{accessdate|{{{hämtdatum|}}}|}}}{{{access-date|}}}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{lang|{{{språk|{{{language|}}}|}}}|}}}
 
}}{{SAFESUBST:<noinclude />#if:{{{lang|{{{språk|{{{language|}}}|}}}|}}}
 
   |{{SAFESUBST:<noinclude />!}}language={{{lang|{{{språk|{{{language|}}}|}}}|}}}
 
   |{{SAFESUBST:<noinclude />!}}language={{{lang|{{{språk|{{{language|}}}|}}}|}}}
Line 246: Line 246:
 
-06Jul18 Omitted HTML comments in wp:subst'ed section.
 
-06Jul18 Omitted HTML comments in wp:subst'ed section.
 
-->
 
-->
{{documentation}}</noinclude>
+
{{documentation|content=
 +
 
 +
{{Cs1 wrapper|base=Cite web}}
 +
{{Subst only|auto=yes}}
 +
 
 +
The '''[[Template:Webbref]]''' handles Swedish-language parameters for {{tl|cite web}}, as in the [[Swedish Wikipedia]] template [[:sv:Mall:Webbref]]. As of April 2013, {cite_web} would issue a red-error message for each unrecognized Swedish parameter as "{{color|#CC0000|Unknown parameter <code>&#124;xx{{{=|}}}</code> ignored...}}" and so {Webbref} here simply switches any Swedish parameter into the English equivalent,
 +
and translates any date/month names into English,
 +
until those cites can be hand-translated into English where needed.
 +
 
 +
Due to translation of dates/months, the runtime speed of the template is about 50-55 per second, and usage should be limited to about 300 {Webbref} per page, depending on performance needs.
 +
 
 +
== List of parameter names ==
 +
The major parameter keywords are listed below.
 +
:{{{!}} class=wikitable
 +
! colspan=3 {{!}} List of parameters
 +
{{!}}-
 +
! Swedish !! English
 +
{{!}}-
 +
{{!}} titel / rubrik {{!!}} title
 +
{{!}}-
 +
{{!}} efternamn {{!!}} last
 +
{{!}}-
 +
{{!}} förnamn {{!!}} first
 +
{{!}}-
 +
{{!}} författare {{!!}} author
 +
{{!}}-
 +
{{!}} författarlänk {{!!}} authorlin
 +
{{!}}-
 +
{{!}} övriga {{!!}} others
 +
{{!}}-
 +
{{!}} redaktör {{!!}} editor
 +
{{!}}-
 +
{{!}} redaktör-förnamn {{!!}} editor-first
 +
{{!}}-
 +
{{!}} redaktör-efternamn {{!!}} editor-last
 +
{{!}}-
 +
{{!}} verk {{!!}} work
 +
{{!}}-
 +
{{!}} upplaga / utgåva {{!!}} edition
 +
{{!}}-
 +
{{!}} volym {{!!}} volume
 +
{{!}}-
 +
{{!}} nummer {{!!}} number / issue
 +
{{!}}-
 +
{{!}} serie {{!!}} series
 +
{{!}}-
 +
{{!}} ? {{!!}} agency
 +
{{!}}-
 +
{{!}} utgivare {{!!}} publisher
 +
{{!}}-
 +
{{!}} ort {{!!}} location
 +
{{!}}-
 +
{{!}} utgivningsort {{!!}} publication-place
 +
{{!}}-
 +
{{!}} datum /<br> publdatum {{!!}} date
 +
{{!}}-
 +
{{!}} hämtdatum {{!!}} accessdate
 +
{{!}}-
 +
{{!}} origdatum / origår {{!!}} origyear
 +
{{!}}-
 +
{{!}} år {{!!}} year
 +
{{!}}-
 +
{{!}} månad {{!!}} month
 +
{{!}}-
 +
{{!}} sid {{!!}} page
 +
{{!}}-
 +
{{!}} sida / sidor {{!!}} pages
 +
{{!}}-
 +
{{!}} format {{!!}} format
 +
{{!}}-
 +
{{!}} språk {{!!}} language
 +
{{!}}-
 +
{{!}} id {{!!}} id
 +
{{!}}-
 +
{{!}} ref {{!!}} ref
 +
{{!}}-
 +
{{!}} url / URL {{!!}} url
 +
{{!}}-
 +
{{!}} arkivurl {{!!}} archiveurl
 +
{{!}}-
 +
{{!}} arkivdatum {{!!}} archivedate
 +
{{!}}-
 +
{{!}} citat {{!!}} quote
 +
{{!}}}
 +
Other parameters include: isbn, issn, doi, pmid, bibcode and oclc.
 +
The various Swedish parameters are listed on the [[Swedish Wikipedia]] in template
 +
[[:sv:Mall:Webbref]] from June 2018.
 +
 
 +
== Examples ==
 +
Below are some examples using {Webbref}.
 +
 
 +
:* <nowiki>{{Webbref |författare=Johnski Doe |titel=Titel |url=http://x.com |datum=7 Maj 2012 |språk=sv}}</nowiki><!--
 +
  --><br>&rarr; {{cite web|title=Titel|url=http://x.com|author=Johnsven Doe|date=7 Maj 2012|language=sv}}
 +
 
 +
:* <nowiki>{{Webbref |url=http://www.a.org |titel=CD |utgivare=ABC |hämtdatum= 27 februari 2010 }}</nowiki><!--
 +
  --><br>&rarr; {{cite web|title=CD|url=http://www.a.org|publisher=ABC|accessdate=27 februari 2010}}
 +
 
 +
:* <nowiki>{{Webbref |efternamn = Teresi |förnamn = Dick |titel = Lost Discoveries: The Ancient Roots of Modern Science |url = https://books.google.com/?id=pheL_ubbXD0C&dq |utgivare = Simon & Schuster |år = 2003 |sid = 213–214 |isbn = 074324379X}}</nowiki><!--
 +
  --><br>&mdash;> {{cite web|title=Lost Discoveries: The Ancient Roots of Modern Science|url=https://books.google.com/?id=pheL_ubbXD0C&dq|last=Teresi|first=Dick|publisher=Simon & Schuster|page=213–214|year= 2003|isbn=074324379X}}
 +
 
 +
:* <nowiki>{{Webbref | URL = http://www.vernonpratt.com/conceptu alisations/d06bl2_1mechanical.htm | titel = The Mechanical Philosophy |hämtdatum = 2009-06-28 |efternamn = Pratt |förnamn = Vernon | datum = 2007-09-28 |verk = Reason, nature and the human being in the West}}</nowiki><!--
 +
  --><br>&mdash;> {{cite web|title=The Mechanical Philosophy|url=http://www.vernonpratt.com/conceptualisations/d06bl2_1mechanical.htm|last=Pratt|first=Vernon|work=Reason, nature and the human being in the West|date=2007-09-28|accessdate=2009-06-28}}
 +
 
 +
:* <nowiki>{{Webbref |efternamn= Sobkowski |förnamn = Jerzy |författarlänk = Jerzy Sobkowski |titel = Chemia jądrowa | serie = Biblioteka Chemii Tom 5 |år = 1981 |agency = Państwowe Wydawnictwo Naukowe |månad = mars | isbn = 83-01-02060-1 |sid = 18-19}}</nowiki><!--
 +
  --><br>&mdash;> {{cite web|title=Chemia jądrowa|last=Sobkowski|first=Jerzy|authorlink=Jerzy Sobkowski|agency=Państwowe Wydawnictwo Naukowe|series=Biblioteka Chemii Tom 5|page=18-19|year=mars 1981|isbn=83-01-02060-1}}
 +
 
 +
== List of month names ==
 +
Below is a table of month names. Note how Swedish dates use the lowercase form of each month name.
 +
:{{{!}} class=wikitable <!--
 +
        --> style="text-align:center; text-size:82%"
 +
! colspan=3 {{!}} List of month names
 +
{{!}}-
 +
! Swedish month ([[nominative]]) !! Swedish date ([[genitive]]) !! English
 +
{{!}}-
 +
{{!}} (same) {{!!}} januari {{!!}} January
 +
{{!}}-
 +
{{!}} (same) {{!!}} februari {{!!}} February
 +
{{!}}-
 +
{{!}} (same) {{!!}} mars {{!!}} March
 +
{{!}}-
 +
{{!}} (same) {{!!}} april {{!!}} April
 +
{{!}}-
 +
{{!}} (same) {{!!}} maj {{!!}} May
 +
{{!}}-
 +
{{!}} (same) {{!!}} juni {{!!}} June
 +
{{!}}-
 +
{{!}} (same) {{!!}} juli {{!!}} July
 +
{{!}}-
 +
{{!}} (same) {{!!}} augusti {{!!}} August
 +
{{!}}-
 +
{{!}} (same) {{!!}} september {{!!}} September
 +
{{!}}-
 +
{{!}} (same) {{!!}} oktober {{!!}} October
 +
{{!}}-
 +
{{!}} (same) {{!!}} november {{!!}} November
 +
{{!}}-
 +
{{!}} (same) {{!!}} december {{!!}} December
 +
{{!}}-
 +
{{!}}}
 +
== Performance considerations ==
 +
The Template:Webbref runs 50-55 per second, but users should translate to {{tl|cite web}}, as time permits. The translations of {Webbref} would typically require expertise in Swedish, plus knowledge of the [[Swedish Wikipedia]] cites, plus knowledge of parameters of the enwiki [[Template:Cite_web]]. The parameter list and months, listed above, can be used to assist translation of parameter names and dates.
 +
 
 +
Care should be taken to correctly hand-translate cite data into English; otherwise, the auto-translation of parameters is likely to be more accurate.
 +
 
 +
== See also ==
 +
{{Non-English citation templates}}
 +
 
 +
== External links ==
 +
* [[:sv:Mall:Webbref]] - Swedish equivalent of {{tl|Webbref}}
 +
 
 +
}}
 +
 
 +
</noinclude>