แม่แบบ:Query web archive/doc

จากวิกิพีเดีย สารานุกรมเสรี

{{Query web archive}} automatically creates links to webpage archives at the Internet Archive's Wayback Machine, Bibalex Wayback, WebCite and Wikiwix (ฝรั่งเศส) from the given url= parameter. See examples below.

Usage[แก้]

All parameter names must be lower case.

Add {{Query web archive|url=http://www.wikipedia.org/}} after web page references and replace the URL with the one used in the reference.

When an archive service is unable to archive a webpage, or it is otherwise unavailable, it may be documented by using the (name of archive)=no parameter which will change the link color. Please note, this requires updating your css file, see Style sheets below.

Parameters[แก้]

Copy a blank version to use. Remember to use the "|" (pipe) character between each field.

Common form[แก้]

Basic
{{Query web archive|url= }}

All parameters[แก้]

All — delete parameters you don't need
{{Query web archive|url= |noarchive= |wayback= |webcite= |wikiwix= }}

Essential parameters[แก้]

  • url: Full url of the webpage from the citation template.

Optional parameters[แก้]

  • noarchive: This should only be set to yes if this template is transcluded into another template and it should not be used in a particular instance.
  • wayback: Wayback Machine — Set this to no if the Wayback Machine is unable to archive the web page.
  • webcite: WebCite — Set this to no if WebCite is unable to archive the web page.
  • wikiwix: Wikiwix — Set this to no if Wikiwix is unable to archive the web page.

Examples[แก้]

Using the basic form with Wikipedia's main page which has been archived by all the archiving services.
  • {{Query web archive|url=http://en.wikipedia.org/wiki/Main_Page}}

Query Wayback Bibalex Wayback WebCite Wikiwix.

Using the wikiwix= parameter when the Wayback Machine and WebCite are able to archive the web page but Wikiwix can not.
  • {{Query web archive|url=http://www.example.org/|wikiwix=no}}

Query Wayback Bibalex Wayback WebCite Wikiwix.

HTML classes[แก้]

You may use these to create your own style sheets.

Style sheets[แก้]

You may add one the following style sheets to your Special:MyPage/common.css file or your browser CSS file to see the effects.

Red external links
/* Template:Query web archive */
/* .qweryarchive { display: none; } */
.qweryarchive span.archive-noarchive a { color: red !important; }
.qweryarchive span.waybackmachine-noarchive a { color: red !important; }
.qweryarchive span.webcitation-noarchive a { color: red !important; }
.qweryarchive span.wikiwix-noarchive a { color: red !important; }
Black external links
/* Template:Query web archive */
/* .qweryarchive { display: none; } */
.qweryarchive span.archive-noarchive a { color: black !important; }
.qweryarchive span.waybackmachine-noarchive a { color: black !important; }
.qweryarchive span.webcitation-noarchive a { color: black !important; }
.qweryarchive span.wikiwix-noarchive a { color: black !important; }

See also[แก้]

Dead link tools[แก้]