قالب:أرشيف طوي/شرح

هذه هي النسخة الحالية من هذه الصفحة، وقام بتعديلها عبود السكاف (نقاش | مساهمات) في 19:23، 29 يونيو 2023 (بوت: إصلاح أخطاء فحص أرابيكا من 1 إلى 104). العنوان الحالي (URL) هو وصلة دائمة لهذه النسخة.

(فرق) → نسخة أقدم | نسخة حالية (فرق) | نسخة أحدث ← (فرق)

Documentation for Template:Archive box collapsible. The green text contains advanced tips which you may ignore or apply at your own leisure.

استعمال

قم بتضمين أرشيف الأرشيف القابل للطي في صفحة النقاش بإضافة

{{أرشيف طوي|[[/Archive]]}}

to where you want the archive box to appear. Substitute [[/Archive]] with the actual name(s) of the archive page(s) and make sure to add the forward slash '/'. How you present a list of archive pages is up to you. You can e.g. separate them with commas or format them as lists. You can also use [[WP:PIPE|piped links]]. See Automatic links and Examples below.

Placement

This template uses two different visual styles.

Standard style

The standard style makes the box float to the right. This means that where it appears in the page it will be aligned to the right edge of the page and all following content will flow around it.

Large style

Using large=yes as a parameter produces a center-aligned box at 80% page width, which is the standard for talk page templates. If you're using the archive box on an article or wikiproject talk page, you may want to use this to make the box blend in with the rest of the page. Using this parameter disables the box-width option.

{{أرشيف طوي|large=yes|[[/Archive]]}}

Box width

The box width can be set by using the box-width= parameter, with em or بكسل as the unit of measurement:

{{أرشيف طوي|box-width=13em|[[/Archive]]}}
{{أرشيف طوي|box-width=200px|[[/Archive]]}}

The standard width when this parameter is not used is 238px.

الروابط التلقائية

If all the archives of a talk page are named exactly /Archive 1, /Archive 2 etc. (it will not work with e.g. /Archive1 or /Archive 01), you can use the auto parameter to display links to them all automatically. The list will update itself when new archives are added. If there are also differently named archives, you can still manually add links to those. Note the root= option below in case the archive pages are not direct subpages of the talk page.

Using auto=yes

The links to the archive pages will appear as simple numbers, separated with commas (1, 2, 3, ...). Note: Archives numbered past 100 will be ignored.

{{أرشيف طوي|auto=yes|
*[[/manually added example link]]}}
  • The optional parameters root=, links=, and nobr= can be used with auto=yes (قالب:قائمة أرشيف).
    root= determines the archive root page. The root defaults to the page where the template is transcluded (the talk page itself); thus, where the archive pages are subpages of a different page, it can be specified using root=.
    links= determines the maximum number of links per line, while nobr=yes disables arbitrary linebreaks.
    The following example will look for a user's talk page archives named /Archives/Archive 1, /Archives/Archive 2, etc., and list up to 5 archives per line:
{{أرشيف طوي
|auto=yes
|root=User_Talk:{{اسم الصفحة}}/Archives
|links=5}}
Using auto=long

If there are no more than 36 archive pages, and you prefer a three-column output, set the auto parameter to "long". The links to the archive pages will appear as "Archive 1", "Archive 2", etc. The links will be put into lines with a line break after each third link, to create columns.

{{أرشيف طوي|auto=long|
*[[/manually added example link]]}}
  • Re-arranging the columns, e.g. from top to bottom, is not possible with auto=long. However, manually added links can be arranged in columns with {{multicol}}. See the multicol example below.
  • The optional parameter root= is available with auto=long (see above).

أمثلة

للحصول على أمثلة فعلية لاستخدام هذا القال، راجع الصفحات التي تربط هنا.

نص ويكي مظهر خارجي
{{أرشيف طوي|
[[/Archive 1]],
[[/Archive 2]],
[[/December 2005 - January 2006]] and
[[/Deletion discussion]]}}
{{أرشيف طوي|box-width=200px|{{قائمة بسيطة|indent=1|
*[[/Archive 1]]
*[[/Archive 2]]
*[[/December 2005 - January 2006]]
*[[/Deletion discussion]]
}}}}
{{أرشيف طوي|
: [[/Archive 1]]
: [[/Archive 2]]
: [[/December 2005 - January 2006]]
: [[/Deletion discussion]]}}
{{أرشيف طوي|
* [[/Archive 1|Archive 1]]
* [[/Archive 2]]
* [[/December 2005 - January 2006]]
* [[/Deletion discussion]]}}
{{أرشيف طوي|
# [[/Archive 1]]
# [[/Archive 2]]
# [[/December 2005 - January 2006]]
# [[/Deletion discussion]]}}
{{أرشيف طوي|box-width=10em|
* [[/Archive 1]]
* [[/Archive 2]]
* [[/December 2005 - January 2006]]
* [[/Deletion discussion]]}}
{{أرشيف طوي|
{{لائحة مسطحة|
;2006
:[[/Archive1|1]]
:[[/Archive2|2]]
:[[/Archive3|3]]
:[[/Archive4|4]]
:[[/Archive5|5]]
}}{{لائحة مسطحة|
;2007
:[[/Archive6|6]]
:[[/Archive7|7]]
:[[/Archive8|8]]
:[[/Archive9|9]]
:[[/Archive10|10]]
:[[/Archive11|11]]
}}{{لائحة مسطحة|
;2008
:[[/Archive12|12]]
:[[/Archive13|13]]
}}
}}

The below example combines the large=yes parameter with {{col-begin}}:

{{أرشيف طوي|large=yes|
{{Col-begin}}
{{عمو-3}}
;2006
:[[/Archive1|January - March]]
:[[/Archive2|April - May]]
:[[/Archive3|June - August]]
:[[/Archive4|September - October]]
:[[/Archive5|November - December]]
{{عمو-3}}
;2007
:[[/Archive6|January - February]]
:[[/Archive7|March - May]]
:[[/Archive8|June - July]]
:[[/Archive9|August]]
:[[/Archive10|September - October]]
:[[/Archive11|November - December]]
{{عمو-3}}
;2008
:[[/Archive12|January]]
:[[/Archive13|February - March]]
{{نهاية-عمو}}
}}

أنظر أيضا

قالب:Warchivenav