แม่แบบ:Highest archive number

จากวิกิพีเดีย สารานุกรมเสรี
ไปยังการนำทาง ไปยังการค้นหา
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

This template finds the highest archive number for a given set of archive pages.

Usage[แก้]

{{highest archive number|prefix|start=start number}}

Prefix syntax[แก้]

When specifying the archive prefix, you need to use the exact whitespace. For example, the following does not work, as there is a new line after the prefix:

{{highest archive number
|prefix
}}

In addition, if your prefix contains any equals signs ("="), you will need to replace them with the code {{=}}, otherwise everything in front of the first equals sign will be interpreted as a parameter name.

Archive number limitations[แก้]

The module this template is based on uses an exponential search algorithm to find the highest archive number. Due to the way this algorithm works, there cannot be any gaps in the archive numbers. For example, if archives 1, 2, 3 and 5 exist, but not archive 4, then the algorithm makes no guarantees about whether the highest archive number will be 3 or 5.

Examples[แก้]

  • {{highest archive number|Wikipedia:Administrators' noticeboard/IncidentArchive}}
  • {{highest archive number|Talk:Byzantine Empire/Archive }}
  • {{highest archive number|Wikipedia talk:WikiProject Chemicals/Archive |start=2005}}