Difference between revisions of "Template:Cite web/Danish/sandbox"
< Template:Cite web | Danish
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: {{{ | + | #if: {{{etternavn|}}}{{{efternavn|}}}{{{last|}}} |
| − | | {{{ | + | | {{{etternavn|}}}{{{efternavn|}}}{{{last|}}}{{ |
#if: {{{fornavn|}}}{{{first|}}} | #if: {{{fornavn|}}}{{{first|}}} | ||
| , {{{fornavn|}}}{{{first}|}}} }} | | , {{{fornavn|}}}{{{first}|}}} }} | ||
| Line 21: | Line 21: | ||
}}]] | }}]] | ||
| {{ | | {{ | ||
| − | #if: {{{ | + | #if: {{{etternavn|}}}{{{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}}}|}}}|}}}'' |
}}{{#if: {{{sider|{{{page|{{{pages|}}}|}}}|}}} | }}{{#if: {{{sider|{{{page|{{{pages|}}}|}}}|}}} | ||
|  {{{sider|{{{page|{{{pages|}}}|}}}|}}} | |  {{{sider|{{{page|{{{pages|}}}|}}}|}}} | ||
| − | }}{{#if: {{{utgiver|}}}{{{udgiver|}}} | + | }}{{#if: {{{utgiver|}}}{{{udgiver|}}}{{{publisher|}}} |
| − | | . | + | | . {{#if: {{{location|}}}{{{place|}}} |
| − | + | | {{{location|}}}{{{place|}}}:  | |
| − | + | }}{{{utgiver|}}}{{{udgiver|}}}{{{publisher|}}} | |
| − | + | | {{#if: {{{location|}}}{{{place|}}} | |
| − | + | | . {{{location|}}}{{{place|}}} }} | |
| − | |||
}}{{#if: {{{forfatter|}}}{{{author|}}}<!-- | }}{{#if: {{{forfatter|}}}{{{author|}}}<!-- | ||
-->{{{etternavn|}}}{{{efternavn|}}}{{{last|}}} | -->{{{etternavn|}}}{{{efternavn|}}}{{{last|}}} | ||
| <!--date already above--> | | <!--date already above--> | ||
| − | | {{#if: <!-- | + | | {{#if: {{{date|<!-- |
| − | --> | + | -->{{{utgivelsesdato|{{{udgivelsesdato|{{{dato<!-- |
| − | + | -->|}}}|}}}|}}}|}}} | |
| − | |  (<!-- | + | |  ({{{date|<!-- |
| − | --> | + | -->{{{utgivelsesdato|{{{udgivelsesdato|{{{dato<!-- |
| − | + | -->|}}}|}}}|}}}|}}}) | |
| {{#if: {{{måned|}}}{{{month|}}} | | {{#if: {{{måned|}}}{{{month|}}} | ||
|  ({{ | |  ({{ | ||
| Line 116: | Line 115: | ||
}}{{#if: {{{doi|}}} | }}{{#if: {{{doi|}}} | ||
|  [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doitekst|}}}}}} {{{doi}}}]. | |  [[Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi|{{{doitekst|}}}}}} {{{doi}}}]. | ||
| − | }}{{#if: {{{besøksdato|}}} | + | }}{{#if: {{{besøksdato|}}}{{{accessdate|}}} |
| − | |  Retrieved {{date|{{{besøksdato}}} |n}}{{#if: {{{besøksår|}}} | , {{{besøksår}}} }}. | + | |  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|}}} | ||
|  Retrieved {{{besøkt_måned_dag}}}, {{{besøksår}}}. | |  Retrieved {{{besøkt_måned_dag}}}, {{{besøksår}}}. | ||
| − | }}{{#if: {{{besøkt_dag_måned|}}} | + | }}{{#if: {{{besøkt_dag_måned|}}}{{{accessmonth|}}} |
| − | |  Retrieved {{{besøkt_dag_måned}}} {{{besøksår}}}. | + | |  Retrieved {{{besøkt_dag_måned|}}}{{{accessmonth|}}} {{{besøksår|}}}{{{accessyear|}}}. |
| − | }}{{#if: {{{sitat|}}} | + | }}{{#if: {{{sitat|}}}{{{quote|}}} |
| − | |  "{{{sitat}}}" | + | |  "{{{sitat}}}{{{quote|}}}" |
| − | | {{#if: {{{kommentar|}}} | + | | {{#if: {{{kommentar|}}}{{{comment|}}} |
| − | |   | + | |  {{{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]".
| This is the template sandbox page for Template:Cite web/Danish (diff). |
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
| The above documentation is transcluded from Template:Cite web/Danish/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |