Bản mẫu:Z number documentation/Inner

This template is the "base" of Z number doc, which is transcluded at the various Z number templates.

**Purpose**
There are numerous templates on Wikipedia that should be – and in almost all cases are – substituted when used, as opposed to being transcluded; that is, when they are placed, the code is called from the existing template and placed on the page as if you had typed it there. When templates are substituted there is no longer any direct connection with the template page the text was called from other than, often, a commented out note placed by the template indicating its origin, in the form: .
Such commented out text is not searchable. For this reason it is impossible in most cases to track in any consistent and easy way the use of a template that is normally substituted. By contrast, since transcluded templates are always connected with their source template pages, all one needs to do to track usage of such templates is to check "what links here".
The z number templates, starting at  and ascending ( etc.) are blank, never substituted templates, whose only purpose is to provide a tracking mechanism in other templates that are substituted. Each z number template is assigned to (and placed in) one specific, normally-substituted template, where usage tracking is expected to be useful. This allows the outside template to be tracked by what links to the z number template assigned to it, without changing the template or its function in any way. The small footprint z number template is simply added to the existing template's code and thereafter remains invisible in the assigned template except when viewed in "edit mode", transcluding into its assigned template no material whatsoever as it has no text or code of its own.

**Creation and usage**
To begin using a z number template to track a substituted template's usage, you must:  
#Create a specific z number template to be used on a one-to-one basis inside an existing template. To do so, peruse the list of assigned z number templates below; find the highest numerically assigned number in the ascending list; and then create a new template at the next higher number. For example, if z1 through z142 have already been created, you would create Template:z143. All z number templates take the same simple block of text. Copy the following text into the z number template you create, click save and you are done with creation:  (yes, that's it)
#Add to the list of assigned z number templates below the z number template you have created, associating it in the list with the existing template you will be using it in for tracking purposes
#Go to the normally substituted template you wish to track and add the z number template to its syntax. We suggest placing it at the end of the template syntax, just prior to the commented out text providing the template name, e.g., 
#Be sure the z number template is not added inside of a conditional part of the template you wish to track, such as an #if function or another type of conditional parser function
#Finally, if the template to which you want to add a z number template is semi- or fully-protected, make an Edit protected request on the template's talk page, requesting that the z number template you have created be added.

**How to track**
Once you have completed creation and assignment of a z number template to a normally substituted template, simply navigate to the z number template, click what links here, then click "Hide links" and all pages shown are those in which the assigned template appears. For convenience, //en.wikipedia.org/w/index.php?title=Special%3AWhatLinksHere&hidelinks=1 this is the WLH tool with "hide links" option selected: just fill in the template's name in the field next to Page: and click Go.

**List of assigned z number templates**
→ Talkbacktiny
→ Declinedsd
→ Refref
→ Sdd
→ Sdd2
→ Sdd3
→ Uw-lblock
→ Uw-hblock
→ Uw-ewblock
→ Uw-3block
→ Uw-botblock
→ Uw-ublock
→ Uw-uhblock
→ Uw-npblock
→ Uw-softerblock
→ Uw-botublock
→ Uw-spamublock
→ Uw-vaublock
→ SD warn-needed
→ Helpme-nq
→ Wb
→ Uw-afcaddition
→ Uw-articletodraft
→ Articledeleted
→ Astray
→ Creation
→ Ping fix
→ Linking
→ Lostpassword
→ deprecated
→ Otherwiki
→ Otherwiki-sister
→ Ds/alert
→ Refref2
→ Renaming
→ Reportvandal
→ RD1
→ RD2
→ RD3
→ UPIMG
→ Vanish
→ unused
→ Uw-create1
→ Uw-create2
→ Uw-create3
→ Uw-create4
→ Uw-create4im
→ Please see
→ Uw-vandal-rand1 case 0
→ Uw-vandal-rand1 case 1
→ Uw-vandal-rand1 case 2
→ Uw-vandal-rand1 case 3
→ Uw-vandal-rand1 case 4
→ Uw-vandal-rand1 case 5
→ Uw-vandal-rand1 case 6
→ Uw-vandal-rand1 case 7
→ Uw-vandal-rand1 case 0 (exp. #2)
→ Uw-vandal-rand1 case 1 (exp. #2)
→ Uw-vandal-rand1 case 2 (exp. #2)
→ Uw-test1-rand case 1 (exp. #3)
→ Uw-test1-rand case 2 (exp. #3)
→ Uw-spam1-rand case 1 (exp. #3)
→ Uw-spam1-rand case 2 (exp. #3)
→ Uw-error1-rand case 1 (exp. #3)
→ Uw-error1-rand case 2 (exp. #3)
→ Uw-unsor1-rand case 1 (exp. #3)
→ Uw-unsor1-rand case 2 (exp. #3)
→ Uw-npov1-rand case 1 (exp. #3)
→ Uw-npov1-rand case 2 (exp. #3)
→ Uw-bio1-rand case 1 (exp. #3)
→ Uw-bio1-rand case 2 (exp. #3)
→ Uw-attack1-rand case 1 (exp. #3)
→ Uw-attack1-rand case 2 (exp. #3)
→ Uw-blank1-rand case 1 (exp. #3)
→ Uw-blank1-rand case 2 (exp. #3)
→ Uw-delete1-rand case 1 (exp. #3)
→ Uw-delete1-rand case 2 (exp. #3)
→ Proposed deletion notify-rand case 1
→ Proposed deletion notify-rand case 2
→ unrelated purpose
→ AfD-notice-rand case 1
→ AfD-notice-rand case 2
→ ArbCom 2019 special circular correction
→ Uw-vandal-rand1 case 1 (exp. #4)
→ Uw-vandal-rand1 case 2 (exp. #4)
→ Uw-vandal-rand1 case 3 (exp. #4)
→ Uw-spam1-bot case 1
→ Uw-spam1-bot case 2
→ Uw-spam2-bot case 1
→ Uw-spam2-bot case 2
→ Uw-spam3-bot case 1
→ Uw-spam3-bot case 2
→ Uw-spam4-bot case 1
→ Uw-spam4-bot case 2
→ Welcomeanon-rand case 1
→ Welcomeanon-rand case 2
→ Welcomeg-rand case 1
→ Welcomeg-rand case 2
→ Uw-test1-rand case 1 (exp. #4)
→ Uw-test1-rand case 2 (exp. #4)
→ Uw-spam1-rand case 1 (exp. #4)
→ Uw-spam1-rand case 2 (exp. #4)
→ Uw-error1-rand case 1 (exp. #4)
→ Uw-error1-rand case 2 (exp. #4)
→ Uw-unsor1-rand case 1 (exp. #4)
→ Uw-unsor1-rand case 2 (exp. #4)
→ Uw-npov1-rand case 1 (exp. #4)
→ Uw-npov1-rand case 2 (exp. #4)
→ Uw-bio1-rand case 1 (exp. #4)
→ Uw-bio1-rand case 2 (exp. #4)
→ Uw-attack1-rand case 1 (exp. #4)
→ Uw-attack1-rand case 2 (exp. #4)
→ Uw-blank1-rand case 1 (exp. #4)
→ Uw-blank1-rand case 2 (exp. #4)
→ Uw-delete1-rand case 1 (exp. #4)
→ Uw-delete1-rand case 2 (exp. #4)
→ Csb-notice-pageincludes-rand case 1
→ Csb-notice-pageincludes-rand case 2
→ Csb-notice-pageincludes-exp-rand case 3
→ Csb-notice-pageincludes-exp-rand case 4
→ Csb-notice-pageincluded-rand case 1
→ Csb-notice-pageincluded-rand case 2
→ Csb-notice-pageincluded-exp-rand case 3
→ Csb-notice-pageincluded-exp-rand case 4
→ Csb-notice-wikipage-rand case 1
→ Csb-notice-wikipage-rand case 2
→ Csb-notice-wikipage-exp-rand case 3
→ Csb-notice-wikipage-exp-rand case 4
→ Welcomelaws-rand case 1
→ Welcomelaws-rand case 2
→ User:OrphanBot/nosource nolicense-rand case 1
→ User:OrphanBot/nosource nolicense-rand case 2
→ User:OrphanBot/nosource nolicense-rand case 3
→ User:OrphanBot/untagged-rand case 1
→ User:OrphanBot/untagged-rand case 2
→ User:OrphanBot/untagged-rand case 3
→ User:OrphanBot/nosource-rand case 1
→ User:OrphanBot/nosource-rand case 2
→ User:OrphanBot/nosource-rand case 3
→ User:OrphanBot/nolicense-rand case 1
→ User:OrphanBot/nolicense-rand case 2
→ User:OrphanBot/nolicense-rand case 3
- Z146 → deprecated
→ The Defender of the Wiki Barnstar
→ No more links
→ Uw-hasty
→ Astray astray
→ Uw-softestblock
→ ArbCom 2019 special circular
→ bio-warn-deletion
→ Contrib-ro1
→ Ds/editnotice case 1
→ Ds/editnotice case 2
→ deprecated
→ Sdd4
→ Uw-paid1
→ Uw-paid2
→ Uw-paid3
→ Uw-paid4
→ helpmessage
→ Welcome to Wikipedia
→ deprecated
→ Nothanks-sd-NPF
→ Stop NPP
→ Stop NPP 2
→ Stop NPP 3
→ Stop NPP 4
→ Uw-NPR-1
→ Uw-NPR-2
→ Uw-NPR-3
→ Uw-NPR-4
→ Uw-joke1
→ Uw-joke2
→ Uw-joke3
→ Uw-joke4
→ Uw-joke4im
→ Uw-ecgaming
→ Tlx parameters
→ UAA-no edits
→ unused
→ Under review
→ Afc-warn-NPF
→ uw-vandalism1
→ uw-vandalism2
→ uw-vandalism3
→ uw-vandalism4
→ uw-vandalism4im
→ uw-test1
→ uw-test2
→ uw-test3
→ test
→ test2
→ test3
→ test4
→ test5i

**Deprecated uses**
The following z number templates are in use, but their corresponding templates have been deleted.
→ Notwiki
→ User:28bot/templates/registered case 1
→ User:28bot/templates/registered-new case 2
→ User:28bot/templates/unregistered case 1
→ User:28bot/templates/unregistered-new case 2
→ Delay archiving
→ Uw-patrolled