सामग्री पर जाएँ

साँचा:Z45

मुक्त ज्ञानकोश विकिपीडिया से
Template documentation

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: <!-- Template:Name -->.

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 {{z1}} and ascending ({{z2}}, {{z3}}, {{z4}} 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.

To begin using a z number template to track a substituted template's usage, you must:

  1. 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 create a new template at the next higher number, e.g., if z1 through z83 have already been created, you would create Template:z84. 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: <noinclude>{{Z number doc}}</noinclude> (yes, that's it);
  2. 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;
  3. 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., {{z84}}<!-- Template:Name -->;
  4. 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;
  5. Finally, if the template to which you want to add a z number template is semi- or fully-protected, make an {{editprotected}} request on the template's talk page, requesting that the z number template you have created be added.

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, and all pages shown (but for other z number templates) are those in which the assigned template appears.

List of assigned z number templates

[संपादित करें]

{{z1}}{{talkbacktiny}}
{{z2}}{{declinedsd}}
{{z3}}{{refref}}
{{z4}}{{sdd}}
{{z5}}{{sdd2}}
{{z6}}{{sdd3}}
{{z7}}{{uw-lblock}}
{{z8}}{{uw-hblock}}
{{z9}}{{uw-ewblock}}
{{z10}}{{uw-3block}}
{{z11}}{{uw-botblock}}
{{z12}}{{uw-ublock}}
{{z13}}{{uw-uhblock}}
{{z14}}{{uw-npblock}}
{{z15}}{{uw-softerblock}}
{{z16}}{{uw-botublock}}
{{z17}}{{uw-spamublock}}
{{z18}}{{uw-vaublock}}
{{z19}}{{SD warn-needed‎}}
{{z20}}{{helpme-nq‎}}
{{z21}}{{wb}}
{{z22}}{{U.S. state jurisdictions}}
{{z23}}{{U.S. federal jurisdictions}}
{{z24}}{{Articledeleted}}
{{z25}}{{Astray}}
{{z26}}{{Creation}}
{{z27}}{{Hits}}
{{z28}}{{Linking}}
{{z29}}{{Lostpassword}}
{{z30}}{{Notwiki}}

{{z31}}{{Otherwiki}}
{{z32}}{{Otherwiki-sister}}
{{z34}}{{Refref2}}
{{z35}}{{Renaming}}
{{z36}}{{Reportvandal}}
{{z37}}{{RD1}}
{{z38}}{{RD2}}
{{z39}}{{RD3}}
{{z40}}{{UPIMG}}
{{z41}}{{Vanish}}}
{{z42}}{{User CVU7-en}}}
{{z43}}{{Uw-create1}}}
{{z44}}{{Uw-create2}}}
{{z45}}{{Uw-create3}}}
{{z46}}{{Uw-create4}}}
{{z47}}{{Uw-create4im}}}
{{z48}}{{Please see}}}
{{z49}}{{Uw-vandal-rand1}} case 0
{{z50}}{{Uw-vandal-rand1}} case 1
{{z51}}{{Uw-vandal-rand1}} case 2
{{z52}}{{Uw-vandal-rand1}} case 3
{{z53}}{{Uw-vandal-rand1}} case 4
{{z54}}{{Uw-vandal-rand1}} case 5
{{z55}}{{Uw-vandal-rand1}} case 6
{{z56}}{{Uw-vandal-rand1}} case 7