Difference between revisions of "Template:Cite web/Danish/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(allow title or url with default "[no title]", allow Danish parameter names & autotranslate dates; put HISTORY & NOTES comments to explain template operation)
imported>Wikid77
(added parameters: publisher, location, place, quote, comment, month, year, accessdate, accessyear, etc.)
Line 14: Line 14:
 
   | {{#if: {{{forfatterlink|}}}{{{authorlink|}}}
 
   | {{#if: {{{forfatterlink|}}}{{{authorlink|}}}
 
     | [[{{{forfatterlink}}}{{{authorlink|}}}|{{
 
     | [[{{{forfatterlink}}}{{{authorlink|}}}|{{
       #if: {{{efternavn|}}}{{{efternavn|}}}{{{last|}}}
+
       #if: {{{etternavn|}}}{{{efternavn|}}}{{{last|}}}
       | {{{efternavn|}}}{{{efternavn|}}}{{{last|}}}{{
+
       | {{{etternavn|}}}{{{efternavn|}}}{{{last|}}}{{
 
         #if: {{{fornavn|}}}{{{first|}}}
 
         #if: {{{fornavn|}}}{{{first|}}}
 
         | , {{{fornavn|}}}{{{first}|}}} }}
 
         | , {{{fornavn|}}}{{{first}|}}} }}
Line 21: Line 21:
 
       }}]]
 
       }}]]
 
     | {{
 
     | {{
       #if: {{{efternavn|}}}{{{efternavn|}}}{{{last|}}}
+
       #if: {{{etternavn|}}}{{{efternavn|}}}{{{last|}}}
       | {{{efternavn|}}}{{{efternavn|}}}{{{last|}}}{{
+
       | {{{etternavn|}}}{{{efternavn|}}}{{{last|}}}{{
 
         #if: {{{fornavn|}}}{{{first|}}}
 
         #if: {{{fornavn|}}}{{{first|}}}
 
         | , {{{fornavn|}}}{{{first}|}}} }}
 
         | , {{{fornavn|}}}{{{first}|}}} }}
Line 74: Line 74:
 
   |  ({{{format|}}})
 
   |  ({{{format|}}})
 
}}{{#if: {{{verk|{{{arbejde|{{{work|}}}|}}}|}}}
 
}}{{#if: {{{verk|{{{arbejde|{{{work|}}}|}}}|}}}
   | . ''{{{verk|{{{arbejde|{{{work}}}|}}}|}}}''
+
   | . ''{{{verk|{{{arbejde|{{{work}}}|}}}|}}}''
 
}}{{#if: {{{sider|{{{page|{{{pages|}}}|}}}|}}}
 
}}{{#if: {{{sider|{{{page|{{{pages|}}}|}}}|}}}
 
   |  {{{sider|{{{page|{{{pages|}}}|}}}|}}}
 
   |  {{{sider|{{{page|{{{pages|}}}|}}}|}}}
}}{{#if: {{{utgiver|}}}{{{udgiver|}}}
+
}}{{#if: {{{utgiver|}}}{{{udgiver|}}}{{{publisher|}}}
   | . {{{utgiver|}}}{{{udgiver|}}}{{
+
   | . {{#if: {{{location|}}}{{{place|}}}
     #if: {{{forfatter|}}}{{{author|}}}<!--
+
     | {{{location|}}}{{{place|}}}:&#32;
    -->{{{etternavn|}}}{{{efternavn|}}}{{{last|}}}
+
  }}{{{utgiver|}}}{{{udgiver|}}}{{{publisher|}}}
    |
+
  | {{#if: {{{location|}}}{{{place|}}}
    | {{#if: {{{utgivelsesdato|{{{dato|}}}}}}{{{år|}}}{{{måned|}}} || }}
+
    | . {{{location|}}}{{{place|}}} }}
  }}
 
 
}}{{#if: {{{forfatter|}}}{{{author|}}}<!--
 
}}{{#if: {{{forfatter|}}}{{{author|}}}<!--
 
     -->{{{etternavn|}}}{{{efternavn|}}}{{{last|}}}
 
     -->{{{etternavn|}}}{{{efternavn|}}}{{{last|}}}
 
   | <!--date already above-->
 
   | <!--date already above-->
   | {{#if: <!--
+
   | {{#if: {{{date|<!--
     -->{{{date|{{{utgivelsesdato|{{{udgivelsesdato|{{{dato<!--
+
     -->{{{utgivelsesdato|{{{udgivelsesdato|{{{dato<!--
      -->|}}}|}}}|}}}|}}}
+
    -->|}}}|}}}|}}}|}}}
     | &#32;(<!--
+
     | &#32;({{{date|<!--
     -->{{{date|{{{utgivelsesdato|{{{udgivelsesdato|{{{dato<!--
+
     -->{{{utgivelsesdato|{{{udgivelsesdato|{{{dato<!--
      -->|}}}|}}}|}}}|}}})
+
    -->|}}}|}}}|}}}|}}})
 
     | {{#if: {{{måned|}}}{{{month|}}}
 
     | {{#if: {{{måned|}}}{{{month|}}}
 
       | &#32;({{
 
       | &#32;({{
Line 116: Line 115:
 
}}{{#if: {{{doi|}}}  
 
}}{{#if: {{{doi|}}}  
 
   | &#32;[[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doitekst|}}}}}} {{{doi}}}].
 
   | &#32;[[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doitekst|}}}}}} {{{doi}}}].
}}{{#if: {{{besøksdato|}}}
+
}}{{#if: {{{besøksdato|}}}{{{accessdate|}}}
   | &#32;Retrieved {{date|{{{besøksdato}}} |n}}{{#if: {{{besøksår|}}} | , {{{besøksår}}} }}.
+
   | &#32;Retrieved {{date|{{{besøksdato|}}}{{{accessdate|}}} |n}}{{#if: {{{besøksår|}}}{{{accessyear|}}}
 +
  | , {{{besøksår|}}}{{{accessyear|}}} }}.
 
}}{{#if: {{{besøkt_måned_dag|}}}
 
}}{{#if: {{{besøkt_måned_dag|}}}
 
   | &#32;Retrieved {{{besøkt_måned_dag}}}, {{{besøksår}}}.
 
   | &#32;Retrieved {{{besøkt_måned_dag}}}, {{{besøksår}}}.
}}{{#if: {{{besøkt_dag_måned|}}}
+
}}{{#if: {{{besøkt_dag_måned|}}}{{{accessmonth|}}}
   | &#32;Retrieved {{{besøkt_dag_måned}}} {{{besøksår}}}.
+
   | &#32;Retrieved {{{besøkt_dag_måned|}}}{{{accessmonth|}}} {{{besøksår|}}}{{{accessyear|}}}.
}}{{#if: {{{sitat|}}}  
+
}}{{#if: {{{sitat|}}}{{{quote|}}}
   | &#32;"{{{sitat}}}"
+
   | &#32;"{{{sitat}}}{{{quote|}}}"
   | {{#if: {{{kommentar|}}}
+
   | {{#if: {{{kommentar|}}}{{{comment|}}}
     | &#32;''{{{kommentar}}}'' }}
+
     | &#32;{{{kommentar|}}}{{{comment|}}} }}
 
}}
 
}}
 
|{{cite web{{{{{|safesubst:}}}#if:{{{url|}}}|{{{{{|safesubst:}}}!}}url={{{url}}}}}{{{{{|safesubst:}}}#if:{{{tittel|}}}|{{{{{|safesubst:}}}!}}title={{{tittel}}}}}{{{{{|safesubst:}}}#if:{{{etternavn|}}}|{{{{{|safesubst:}}}!}}last={{{etternavn}}}}}{{{{{|safesubst:}}}#if:{{{fornavn|}}}|{{{{{|safesubst:}}}!}}first={{{fornavn}}}}}{{{{{|safesubst:}}}#if:{{{forfatter|}}}|{{{{{|safesubst:}}}!}}author={{{forfatter}}}}}{{{{{|safesubst:}}}#if:{{{forfatter_url|}}}|{{{{{|safesubst:}}}!}}authorlink={{{forfatter_url}}}}}{{{{{|safesubst:}}}#if:{{{medforfattere|}}}{{{editor|}}}|{{{{{|safesubst:}}}!}}author2={{{medforfattere|}}} {{{editor|}}}}}{{{{{|safesubst:}}}#if:{{{verk|}}}|{{{{{|safesubst:}}}!}}work={{{verk|}}}}}{{{{{|safesubst:}}}#if:{{{utgiver|}}}|{{{{{|safesubst:}}}!}}publisher={{{utgiver|}}}}}{{{{{|safesubst:}}}#if:{{{sider|}}}|{{{{{|safesubst:}}}!}}page={{{sider|}}}}}{{{{{|safesubst:}}}#if:{{{språk|}}}|{{{{{|safesubst:}}}!}}language={{{språk|}}}}}{{{{{|safesubst:}}}#if:{{{format|}}}|{{{{{|safesubst:}}}!}}format={{{format|}}}}}{{{{{|safesubst:}}}#if:{{{doi|}}}|{{{{{|safesubst:}}}!}}doi={{{doi|}}}}}{{{{{|safesubst:}}}#if:{{{doitekst|}}}|{{{{{|safesubst:}}}!}}doibroken={{{doitekst|}}}}}{{{{{|safesubst:}}}#if:{{{arkiv_url|}}}{{{arkivurl|}}}|{{{{{|safesubst:}}}!}}archiveurl={{{arkiv_url|}}}{{{arkivurl|}}} }}{{{{{|safesubst:}}}#if:{{{sitat|}}}|{{{{{|safesubst:}}}!}}quote={{{sitat|}}}}}{{{{{|safesubst:}}}#if:{{{kommentar|}}}|{{{{{|safesubst:}}}!}}postscript={{{kommentar|}}}}}{{{{{|safesubst:}}}#if:{{{date|{{{utgivelsesdato|{{{udgivelsesdato|{{{dato|{{{måned|}}} {{{år|}}}|}}}|}}}|}}}|}}} |{{{{{|safesubst:}}}!}}date={{{{{|safesubst:}}}#time:{{{{{|safesubst:}}}#ifeq:{{{mf|}}}|y|F j, Y|j F Y}}|{{{date|{{{utgivelsesdato|{{{udgivelsesdato|{{{dato|{{{måned|}}} {{{år|}}}|}}}|}}}|}}}|}}} }} }}{{{{{|safesubst:}}}#if:{{{arkivdato|}}}|{{{{{|safesubst:}}}!}}archivedate={{{{{|safesubst:}}}#time:{{{{{|safesubst:}}}#ifeq:{{{mf|}}}|y|F j, Y|j F Y}}|{{{arkivdato|}}}}}}}{{{{{|safesubst:}}}#if:{{{besøksdato|{{{besøkt_dag_måned|}}} {{{besøksår|}}}}}}|{{{{{|safesubst:}}}!}}accessdate={{{{{|safesubst:}}}#time:{{{{{|safesubst:}}}#ifeq:{{{mf|}}}|y|F j, Y|j F Y}}|{{{besøksdato|{{{besøkt_dag_måned|}}} {{{besøksår|}}}}}}}}}}}}}}<noinclude><!--
 
|{{cite web{{{{{|safesubst:}}}#if:{{{url|}}}|{{{{{|safesubst:}}}!}}url={{{url}}}}}{{{{{|safesubst:}}}#if:{{{tittel|}}}|{{{{{|safesubst:}}}!}}title={{{tittel}}}}}{{{{{|safesubst:}}}#if:{{{etternavn|}}}|{{{{{|safesubst:}}}!}}last={{{etternavn}}}}}{{{{{|safesubst:}}}#if:{{{fornavn|}}}|{{{{{|safesubst:}}}!}}first={{{fornavn}}}}}{{{{{|safesubst:}}}#if:{{{forfatter|}}}|{{{{{|safesubst:}}}!}}author={{{forfatter}}}}}{{{{{|safesubst:}}}#if:{{{forfatter_url|}}}|{{{{{|safesubst:}}}!}}authorlink={{{forfatter_url}}}}}{{{{{|safesubst:}}}#if:{{{medforfattere|}}}{{{editor|}}}|{{{{{|safesubst:}}}!}}author2={{{medforfattere|}}} {{{editor|}}}}}{{{{{|safesubst:}}}#if:{{{verk|}}}|{{{{{|safesubst:}}}!}}work={{{verk|}}}}}{{{{{|safesubst:}}}#if:{{{utgiver|}}}|{{{{{|safesubst:}}}!}}publisher={{{utgiver|}}}}}{{{{{|safesubst:}}}#if:{{{sider|}}}|{{{{{|safesubst:}}}!}}page={{{sider|}}}}}{{{{{|safesubst:}}}#if:{{{språk|}}}|{{{{{|safesubst:}}}!}}language={{{språk|}}}}}{{{{{|safesubst:}}}#if:{{{format|}}}|{{{{{|safesubst:}}}!}}format={{{format|}}}}}{{{{{|safesubst:}}}#if:{{{doi|}}}|{{{{{|safesubst:}}}!}}doi={{{doi|}}}}}{{{{{|safesubst:}}}#if:{{{doitekst|}}}|{{{{{|safesubst:}}}!}}doibroken={{{doitekst|}}}}}{{{{{|safesubst:}}}#if:{{{arkiv_url|}}}{{{arkivurl|}}}|{{{{{|safesubst:}}}!}}archiveurl={{{arkiv_url|}}}{{{arkivurl|}}} }}{{{{{|safesubst:}}}#if:{{{sitat|}}}|{{{{{|safesubst:}}}!}}quote={{{sitat|}}}}}{{{{{|safesubst:}}}#if:{{{kommentar|}}}|{{{{{|safesubst:}}}!}}postscript={{{kommentar|}}}}}{{{{{|safesubst:}}}#if:{{{date|{{{utgivelsesdato|{{{udgivelsesdato|{{{dato|{{{måned|}}} {{{år|}}}|}}}|}}}|}}}|}}} |{{{{{|safesubst:}}}!}}date={{{{{|safesubst:}}}#time:{{{{{|safesubst:}}}#ifeq:{{{mf|}}}|y|F j, Y|j F Y}}|{{{date|{{{utgivelsesdato|{{{udgivelsesdato|{{{dato|{{{måned|}}} {{{år|}}}|}}}|}}}|}}}|}}} }} }}{{{{{|safesubst:}}}#if:{{{arkivdato|}}}|{{{{{|safesubst:}}}!}}archivedate={{{{{|safesubst:}}}#time:{{{{{|safesubst:}}}#ifeq:{{{mf|}}}|y|F j, Y|j F Y}}|{{{arkivdato|}}}}}}}{{{{{|safesubst:}}}#if:{{{besøksdato|{{{besøkt_dag_måned|}}} {{{besøksår|}}}}}}|{{{{{|safesubst:}}}!}}accessdate={{{{{|safesubst:}}}#time:{{{{{|safesubst:}}}#ifeq:{{{mf|}}}|y|F j, Y|j F Y}}|{{{besøksdato|{{{besøkt_dag_måned|}}} {{{besøksår|}}}}}}}}}}}}}}<noinclude><!--
Line 146: Line 146:
 
-10May2014 Allow Danish parameter names & autotranslate dates.
 
-10May2014 Allow Danish parameter names & autotranslate dates.
 
-10May2014 Remove "includeonly" to allow show-preview of format.
 
-10May2014 Remove "includeonly" to allow show-preview of format.
 +
-10May2014 Added: quote, comment, month, year, accessdate, etc.
 +
-10May2014 Added: publisher, location, place.
 
-10May2014 Put NOTES comments to explain template operation.
 
-10May2014 Put NOTES comments to explain template operation.
 
-10May2014 Put HISTORY comments to log major changes, not typos.
 
-10May2014 Put HISTORY comments to log major changes, not typos.

Revision as of 19:16, 10 May 2014

"[no title]".

Template documentation[view] [edit] [history] [purge]

Usage

This template mimics the Norwegian or Danish version of {{cite web}}, plus allows a mix with any parameter names in English. Date formats or month names are translated to English. It can be replaced by the standard template by substitution (use {{subst:Cite web/Danish| ... }}). Note, however, that substitution doesn't work inside <ref></ref> tags (remove them first then replace them). When substituting add |md=y if mdy dates are desired.

Template:Non-English citation templates