Bước tới nội dung

Bản mẫu:Interwikitmp-grp1

Văn thư lưu trữ mở Wikisource

Interwikitmp-grp1 Phiên bản==(2) ngày 25-1-2007 (Pass 2E Upgrades Genesis).

Đơn giản hóa 25-1-2007.
Loại bỏ tổng thể sự đệ quy hiệu ứng phụ, và đơn giản hóa cả logic lẫn thể loại hóa.
Lưu file ngoại tuyến== Interwikitmp-grp1 9-05-06 (Pass 2a Upgrades Genesis).txt


Các liên kết dự án chị em sử dụng hệ thống đặt thẻ này (Mảng dưới đây được sinh ra từ trang này):

Các tiêu bản tương tự tại các dự án liên quan[sửa]
mta Meta-wiki Interwikitmp-grp1
wpd Wikipedia Interwikitmp-grp1
cms Commons Interwikitmp-grp1
wbk Wikibooks Interwikitmp-grp1
wsp Wikispecies Interwikitmp-grp1
wvy Wikiversity Interwikitmp-grp1

 

:Họ các tiêu bản Interwikitmp-grp thuyết trình này là chuyển tải từ w:Template:Interwikitmp-grp/doc [sửa trang cục bộ].

Sử dụng chung

[sửa]
This is usage for the nine+ 'interwiki template linking' and the various (8) interwikitmp-grpX 'auto-categorization' and template tagging and linking utilities.
  1. Each individual sister template ends with the suffix 'tmp' and start with the menemonic name of the sister, sometimes in abbreviated or CamelCase text form. (e.g. WikiPtmp, WikiNews, WikiSpecies are all CamelBack, whilst WikiPtmp is also an abbreviation.
  2. Each of the interwikitmp-grpX templates differ mainly in the categorization they perform and slight differences in usage text they present (interwikitmp-grpD, where 'D' is for documentation).
  3. Each number suffixed version differs in the mix of categories which they autotag for uniform categorization across the English language sister projects. This aids people by having common tools in common places that perform the same common way.
  4. Foreign language adaptations of this system are encouraged, but beyond the scope of this project. Copy the pages, and translate the usage, and you should be in good shape.


Which Interwikitmp-grp is what

[sửa]
This template documentation is transcluded from Template:Interwikitmp-grps see also [edit].
TABLE I — Iterwikitmp-grp## applications guide

Interwikitmp-grp Page Suffix ##'s Designatinations versus key associated autocategorizations


Bản mẫu:Interwikitmp-grp (sửa đổi thảo luận liên kết lịch sử) — Common template that does the display for most of the other templates below, AND the one to use to tag vanilla utilities with when in doubt.

Associated Autocategories:
   Bản mẫu:Lcs
.


Bản mẫu:Interwikitmp-grp0 (sửa đổi thảo luận liên kết lịch sử) — This template is used to tag all the other templates that make up this interconnection system—those used to tag templates with interwiki scope. These are currently also tagged under Category:Interwiki utility templates pipesorted by '!' (exclaimation point). [depreciated method]
  • note: The various individual template tagging templates Metatmp, commontmp, ..., Wikiversitytmp also autocategorze in this manner.

Associated Autocategory:
   Category:Interwiki template-links-tagging templates.


Bản mẫu:Interwikitmp-grp1 (sửa đổi thảo luận liên kết lịch sử) — Use to tag generic and special purpose templates that link externally
      as their primary service function.
Associated Autocategories:
   Bản mẫu:Lcs, Bản mẫu:Lcs and Category:Interwiki utility templates. (These templates for example.)


Bản mẫu:Interwikitmp-grp2 (sửa đổi thảo luận liên kết lịch sử) — Utility templates which create internal links used for analysis, discussion and tracking other system elements (Categories, Templates, User pages, et al.) by service function on the local (some are inter-sister) project site. (Lts, TL, Tlx, Cl, Cc, Lcs, CAT, etc.)


Associated Autocategories:
   Bản mẫu:Lcs and Category:Interwiki utility templates
.


Bản mẫu:Interwikitmp-grp3 (sửa đổi thảo luận liên kết lịch sử) — Utility templates that do other tasks besides linking. Some of these are typing or display aids for use within tables, etc.

Associated Autocategories:
   Bản mẫu:Lcs and Category:Interwiki utility templates Bản mẫu:I2Takes a perameter 'cat=alternate name' to override default 'Miscellaneous' with whatever is passed. (normally a sub-category of Miscellaneous. A blank perameter 'cat=|' inhibits that category altogether.)


Bản mẫu:Interwikitmp-grp4 (sửa đổi thảo luận liên kết lịch sử) — Combined '-1' and '-3' tagging of Miscellaneous class utility templates that also link externally.
Associated Autocategories:
   Additive by Interwikitmp-grp## suffixes per above key groups.

   Category:Interwiki link templates and Category:Miscellaneous templates
   Takes a perameter 'cat=alternate name' to override default 'Miscellaneous' with whatever is passed. (normally a sub-category of Miscellaneous. A blank perameter 'cat=|' inhibits that category altogether.)


Bản mẫu:Interwikitmp-grp5 (sửa đổi thảo luận liên kết lịch sử) — Combined '-2' and '-3' Interwikitmp-grp## suffixes,


for tagging of 'Miscellaneous class' utility templates that also link internally.


Associated Autocategories:
   Additive by Interwikitmp-grp## suffixes per above key groups.

   Category:Internal link templates and Category:Miscellaneous templates
   Takes a perameter 'cat=alternate name' to override default 'Miscellaneous' with whatever is passed. (normally a sub-category of Miscellaneous. A blank perameter 'cat=|' inhibits that category altogether.)Bản mẫu:I2Note: This does not auto-categorize to 'Interwiki templates on all sisterprojects'.

Bản mẫu:Interwikitmp-grp6 (sửa đổi thảo luận liên kết lịch sử) — Combined '-1' + '-2' + '-3' Interwikitmp-grp## suffixes, however rare in that possess linking both locally and interwiki; usually various category tagging templates (a series) with the commons, Wikipedia, or Metawiki back-linked articles fit this group.


Associated Autocategories:

Additive by Interwikitmp-grp## suffixes per above key groups.
  • (Such templates have both 'interwiki' and 'internal' (intra-wiki) links and map to both major link's categories.

Category:Interwiki link templates + Interwiki link templates + Category:Miscellaneous templates

  • However, tagging for Category:Miscellaneous templates should be local to enable maximum flexibility of the overall system. Such category tagging templates are NOT Miscellaneous.) Bản mẫu:I2Note: This does not auto-categorize to 'Interwiki templates on all sisterprojects'.
Interwikitmp-grp7 (provisional—not used)
Associated Autocategories: none, use not allocated.
Interwikitmp-grp8 (provisional—not used)
Associated Autocategories: none, use not allocated.
Interwikitmp-grp9 (provisional—not used)
Associated Autocategories: none, use not allocated.
Interwikitmp-grp10 (provisional—not used)
Associated Autocategories: none, use not allocated.

Exceptions table (Revised concept)

[sửa]
TABLE II - Exceptions handling... When a name is already used differently in a local sister project
Tag with Bản mẫu:TL— denotes and tags a This name in use conflict Exception— Thus this name is not available on all sister's for the same function as used for something else on another sister project.


:Autocategory: Category:Interwiki name difference other sister project

Procedure:

  1. It should not need said, but check to see how widely a 'deviant template' is used. If its use is slight, it may be easiest to 'cure the deviation' by substiuting another template name on the given sister project.
  2. Tag the generic (or 'common template', the one to be the most widespread as a name on most sister projects before porting it) with Bản mẫu:Interwikitmp-grp exception (sửa đổi thảo luận liên kết lịch sử) which compliments the below template and autocategorizes, plus asserts a status message box.
  3. Consider whether the incompatible template makes a good utility for export to other sister projects
         (Some may exist as minor or essentially identical variations of other universal template names. If so, don't alias such. One is enough!)
  4. Other tagging in the 'common template' must be manual inserting the array in Bản mẫu:TL and changing the appropriate arguments for the chosen aliased name in the sister(s) linking template with the name collision.
  5. Tag with the common category/(ies) extant in Bản mẫu:TL, or other such case as fits best to the groupings delineated in TABLE I above.
  6. Procede as below on that sister which has the template deviation, and any others with incompatible templates.
On the flip-side:
In general
Use Bản mẫu:Interwikitmp-grp ineligible (sửa đổi thảo luận liên kết lịch sử) to tag the local name exceptions.
Both the above exceptions templates take the 'work around' (Bản mẫu:WD) name for self documentation of the Bản mẫu:WD. That name should be provided the master template copy being aliased on the sister(s) with the name conflict in their normal template set.

Associated Autocategory:

Category:Interwiki templates varying on other sister projects, provided by the correct tagging.
The replacement template 'alias' (providing name-to-function mapping) must be universally available on all sister's, and tagged normally and copied to same with the appropriate Interwikitmp-grp##. If the Sister(s) with a template name conflict have that name as a useful general purpose utility or tool template, that name should also be aliased and distributed.
Examples of name remapping':
  1. e.g Tl-->TL, Cat-->CAT, etc., Using a case-of-name alternative.
  2. e.g. 'S'/'s' --> '{{SP}}', 'W'/'w' ---> '{{W2}}', etc., all examples of Suffix alternatives
  3. e.g. '{{C}}'/'c' --> '{{W2c}}', (the commons), a special case to maintain similar syntax with 'W2' for Wikipedia, and 'Wd' for Wiktionary (Wiki-Dictionary) and 'Wb' for Wikibooks, etc., all part of a family of user friendly utility templates that pipetrick and display nicely, yet allow an edit change of a one or two letter(s) to redirect the mnemonic link name to another sister project.
Any universal name 'alias' should either duplicate the original source template (preferred) or redirect to it on all sister's capable of having both name variations.

Bản mẫu:Interwikitmp-grpNN usage


Bản mẫu:Interwikitmp-grp usage (sửa đổi thảo luận liên kết lịch sử) -- Bản mẫu:Interwikitmp-grpNN usage (sửa đổi thảo luận liên kết lịch sử) -- Bản mẫu:Interwikitmp-grp/doc (sửa đổi thảo luận liên kết lịch sử)