Jump to content

MediaWiki talk:Citethispage-content: Difference between revisions

Dat Hack3r (talk | contribs)
m New content for this page: Forgot to sign.
Dat Hack3r (talk | contribs)
m Improved BibTeX whitespace formatting.
Line 50: Line 50:


{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
  @misc{ enwiki:{{REVISIONID}},
@misc{owotwiki:{{REVISIONID}},
    author = "{{(}}{{SITENAME}} contributors{{)}}",
  author = "{{(}}{{SITENAME}} contributors{{)}}",
    title = "{{FULLPAGENAME}} --- {{(}}{{SITENAME}}{{)}}{{#ifexist:MediaWiki:Sitesubtitle|{,} {{MediaWiki:Sitesubtitle}}}}",
  title = "{{FULLPAGENAME}} --- {{(}}{{SITENAME}}{{)}}{{#ifexist:MediaWiki:Sitesubtitle|{,} {{MediaWiki:Sitesubtitle}}}}",
    year = "{{CURRENTYEAR}}",
  year   = "{{CURRENTYEAR}}",
    url = "{{canonicalurl:{{FULLPAGENAME}}|oldid={{REVISIONID}}}}",
  url   = "{{canonicalurl:{{FULLPAGENAME}}|oldid={{REVISIONID}}}}",
    note = "[Online; accessed <citation>{{#time:j-F-Y}}</citation>]"
  note   = "[Online; accessed <citation>{{#time:j-F-Y}}</citation>]"
  }
}
|lang=bibtex}}
|lang=bibtex}}


When using the {{wp|LaTeX}} package <code>url</code> (<code>\usepackage{url}</code> somewhere in the preamble), which tends to give much more nicely formatted web addresses, the following may be preferred:
When using the {{wp|LaTeX}} package <code>url</code> (<code>\usepackage{url}</code> somewhere in the preamble), which tends to give much more nicely formatted web addresses, the following may be preferred:
{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
  @misc{ enwiki:{{REVISIONID}},
@misc{owotwiki:{{REVISIONID}},
    author = "{{(}}{{SITENAME}} contributors{{)}}",
  author       = "{{(}}{{SITENAME}} contributors{{)}}",
    title = "{{FULLPAGENAME}} --- {{(}}{{SITENAME}}{{)}}{{#ifexist:MediaWiki:Sitesubtitle|{,} {{MediaWiki:Sitesubtitle}}}}",
  title       = "{{FULLPAGENAME}} --- {{(}}{{SITENAME}}{{)}}{{#ifexist:MediaWiki:Sitesubtitle|{,} {{MediaWiki:Sitesubtitle}}}}",
    year = "{{CURRENTYEAR}}",
  year         = "{{CURRENTYEAR}}",
    howpublished = "\url{{(}}{{canonicalurl:{{FULLPAGENAME}}|oldid={{REVISIONID}}}}{{)}}",
  howpublished = "\url{{(}}{{canonicalurl:{{FULLPAGENAME}}|oldid={{REVISIONID}}}}{{)}}",
    note = "[Online; accessed <citation>{{#time:j-F-Y}}</citation>]"
  note         = "[Online; accessed <citation>{{#time:j-F-Y}}</citation>]"
  }
}
|lang=bibtex}}
|lang=bibtex}}