Substitution is the one-time, permanent copying of any content on Wiki ಕನ್ನಡ.
This page documents an English Wikipedia editing guideline. It is a generally accepted standard that editors should attempt to follow, though it is best treated with common sense, and occasional exceptions may apply. Any substantive edit to this page should reflect consensus. When in doubt, discuss first on the talk page. |
It differs from transclusion, which continually updates as the linked-to content changes.
To substitute, add subst:
after the opening braces, as in {{subst:page name}}
. For example: substitution {{subst:Medicine}}
in contrast to transclusion {{Medicine}}
. The contents of page "Medicine" will be expanded (for any templates) and stored at each point where "{{subst:Medicine}}" is placed in a page. Note how ref-tags refuse to run "subst:" unless temporarily renamed as "
This page also lists templates that should either always or never be substituted except in the Wikipedia namespace. Automated tools (bots) that do such replacements will never be used on the original template. If you are going to use a bot to substitute templates, please read through the talk page first, as many are under dispute or change status over time, and substitution is permanent.
The subst: keyword (short for "substitution") is used as a prefix inside template code. It changes the way the software expands the template. Ordinarily, a template will be expanded "on the fly"; that is, the template code on a page calls a separate page every time it is rendered. Although most page views are served from the cache, pages need to be rendered for previews, and rendered again when the page changes. When someone is editing a page with a normal template call, they see the template call. Placing "subst:" inside the curly brackets tells the software to permanently replace the template with the text of the template (i.e., the text that is on the template's article page when the template is added to the page). Therefore {{template}} becomes {{subst:template}}, until you save the page. The next editor sees not the template call, but the text of the template when you saved; it does not change even if the template is edited.
You can subst a template tag by adding "subst:" to a template tag. For example, use {{subst:test5}} instead of {{test5}}.
When this is a major component of an edit, it is strongly suggested that the template be mentioned in the edit summary (for instance, put "{{subst:test}}", "subst:test" or "test1 applied" in your edit summary) so other editors can easily see what you have done.
Additionally, when creating or editing templates that are commonly substituted, adding an HTML comment to the template page helps article editors to see how templates are being used (e.g. ).
{{Welcome}}
template. The archives of a user's talk page should show the actual welcome message they received, not the current welcome message.{{Help me}}
) limits the damage that can be caused by editing them. See high-risk templates.{{((}}
, do not work if they are substituted.This is a list of templates that should always be substituted, organized by namespace. Each list is ordered alphabetically with grouped series. This is not a comprehensive list, other less-used templates may also need to be substituted, see the template's documentation for details.
{{No more links}}
—substituting this inserts a commentary only visible in edit mode, with a short explanation to discourage spamming links{{Sub}}
, {{Sup}}
– but suggest these not subst:ed if used many times on one page, otherwise code likely to become cluttered.{{Tmfrom}}
, {{Tmto}}
All of the templates listed in ವರ್ಗ:User warning templates and ವರ್ಗ:Welcome templates, as well as the user talk page component of Template:Shoutbox sidebar (and its predecessor Template:Shoutbox), should be substituted. This does not apply to templates on the user page.
(none listed)
{{Archive top}}
, {{Archive bottom}}
—similar boilerplate message as for the deletion related messages, but for regular discussions instead.These templates have a purpose and/or syntax that require them to be substituted.
{{Afd}}
—or else the link to "this article's entry" does not work.{{Cfd}}
, {{Cfr}}
, {{Cfm}}
, which insert comments which serve as queues for Cydebot, which is used to rename or merge categories.{{Copyvio}}
—For articles to be listed at copyright problems, will result in an error message if transcluded.{{Nld}}
—For images with no info on copyright status, adds {{No license}}
with today's date automatically filled in.{{Nrd}}
—For images with no fair use rationale, adds {{No rationale}}
with today's date automatically filled in.{{Nsd}}
—For images with no source info, adds {{No source}}
with today's date automatically filled in.{{Orfud}}
—For "generic" orphaned fair use images, adds {{Di-orphaned fair use}}
with today's date automatically filled in.{{Or-fu-re}}
—For fair use images that have been orphaned in favour of another image, adds {{Di-orphaned fair use}}
with today's date automatically filled in (takes the name of the replacement image as parameter).{{Proposed deletion}}
—Proposed deletion, adds {{Proposed deletion/dated}}
with today's date automatically filled in.{{Rfd}}
-Redirects for Deletion{{Rfu}}
—For fair use images that it should be possible to replace with a free licensed image, adds {{Replaceable fair use}}
, with today's date automatically filled in.{{Refu-c}}
—Used in captions of images flagged as replaceable fair use, adds {{Rfu-c}}
with the "due date" (today + 7 days) automatically calculated and filled in.{{OnProd}}
—which inserts today's-date-dependent name of the category page to which the article was added when nominated for deletion.Technically, templates shall not be substituted that
This is a list of templates that should not be substituted. This is because they contain formatting standard code, contain complex code, or contain code that breaks if substituted.
{{Citation needed}}
—contains complex code.{{Cleanup}}
, {{Merge}}
, {{Trivia}}
and other cleanup templates—bots rely on them, substitution makes a mess of the article text and breaks the cleanup by month date categorization.{{Dmoz}}
, {{Yahoo}}
—URL queries external web directories.{{Javadoc:EE}}
, {{Javadoc:SE}}
, {{Javadoc:SE-guide}}
—conditional templates whose purpose is to update the links when the master template is updated.{{ISP}}
, {{Openproxy}}
, {{Repeat vandal}}
, {{SharedIP}}
, {{SharedIPEDU}}
, {{S/wnote}}
—not messages to the users (so it is no problem if they change from their original form), so no reason to subst, but the standard reasons not to subst apply.{{Ln}}
, {{Lnt}}
—complex code.{{Main}}
—maintains formatting standard.{{Switch}}
—also conditional templates; substituting breaks usage.{{See also}}
—standard formatting for see also list.{{Selfref}}
—does not work when substed, as it is meant to contain different code in mirrors.{{Signpost-subscription}}
—must be updated weekly.{{Stub}}
templates—various ones for simplified usage and removal.{{Talkarchive}}
, {{Archive}}
{{Tl}}
, {{Tlp}}
, {{Ttl}}
, {{Ti}}
, {{Tic}}
, {{Tls}}
, {{Cl}}
, {{Ccl}}
—Many very widely used ({{Tl}}
with over 600,000 transclusions at last count). Quicker to type than their substitutions, and non-substing them allows new Wikipedians to learn about them and be able to use them.{{Number of portals}}
— Requires extremely frequent updating.{{Sockpuppet}}
and similar templates intended to placed on the top level page in user space. (Note: warnings and notices in the user talk space should be substituted)These templates—used in the main-space—add a comment about why an article is misnamed. They may be removed as the Mediawiki titling facilities improve, and the wording/layout may change.
{{Correct title}}
{{Lowercase}}
See ವರ್ಗ:Chemical element symbol templates. These are used to simplify the entry of chemical formulae.
{{Actinium}}
, {{Aluminium}}
, {{Americium}}
, {{Antimony}}
, {{Argon}}
, {{Arsenic}}
, {{Astatine}}
{{Barium}}
, {{Berkelium}}
, {{Beryllium}}
, {{Bismuth}}
, {{Bohrium}}
, {{Boron}}
, {{Bromine}}
{{Cadmium}}
, {{Caesium}}
, {{Calcium}}
, {{Californium}}
, {{Carbon}}
, {{Cerium}}
, {{Chlorine}}
, {{Chromium}}
, {{Cobalt}}
, {{Copper}}
, {{Curium}}
{{Darmstadtium}}
, {{Dubnium}}
, {{Dysprosium}}
{{Einsteinium}}
, {{Erbium}}
, {{Europium}}
{{Fermium}}
, {{Flerovium}}
, {{Fluorine}}
, {{Francium}}
{{Gadolinium}}
, {{Gallium}}
, {{Germanium}}
, {{Gold}}
{{Hafnium}}
, {{Hassium}}
, {{Helium}}
, {{Holmium}}
, {{Hydrogen}}
{{Indium}}
, {{Iodine}}
, {{Iridium}}
, {{Iron}}
{{Lanthanum}}
, {{Lawrencium}}
, {{Lead}}
, {{Lithium}}
, {{Livermorium}}
, {{Lutetium}}
{{Magnesium}}
, {{Manganese}}
, {{Meitnerium}}
, {{Mendelevium}}
, {{Mercury}}
, {{Molybdenum}}
{{Neodymium}}
, {{Neon}}
, {{Neptunium}}
, {{Niobium}}
, {{Nitrogen}}
, {{Nobelium}}
{{Osmium}}
, {{Oxygen}}
{{Palladium}}
, {{Phosphorus}}
, {{Platinum}}
, {{Plutonium}}
, {{Polonium}}
, {{Potassium}}
, {{Praseodymium}}
, {{Promethium}}
, {{Protactinium}}
{{Radium}}
, {{Radon}}
, {{Rhenium}}
, {{Rhodium}}
, {{Roentgenium}}
, {{Rubidium}}
, {{Ruthenium}}
, {{Rutherfordium}}
{{Samarium}}
, {{Scandium}}
, {{Seaborgium}}
, {{Selenium}}
, {{Silicon}}
, {{Silver}}
, {{Sodium}}
, {{Strontium}}
, {{Sulfur}}
{{Tantalum}}
, {{Technetium}}
, {{Tellurium}}
, {{Terbium}}
, {{Thallium}}
, {{Thorium}}
, {{Thulium}}
, {{Tin}}
, {{Titanium}}
, {{Tungsten}}
{{Ununbium}}
, {{Ununoctium}}
, {{Ununpentium}}
, {{Ununseptium}}
, {{Ununtrium}}
, {{Uranium}}
{{Vanadium}}
{{Xenon}}
{{Ytterbium}}
, {{Yttrium}}
{{Zinc}}
, {{Zirconium}}
Most templates related to renaming or deleting pages are used temporarily, and thus do not need to be substituted (it just makes more work to delete them).
{{Catfd}}
{{Ifd}}
{{Ifd2}}
{{Idw}}
{{Idw-uo}}
{{Idw-pui}}
{{Idw-cp}}
{{Cfdnotice}}
{{Sfd-t}}
{{Sfd-r}}
{{Sfr-t}}
{{Prod-2}}
{{Editprotected}}
not deletion related, but also temporaryExceptions: The following templates must be substituted in order to work correctly:
{{Afd}}
{{Afd2}}
{{Afd3}}
{{Cfd}}
{{Cfm}}
{{Cfr}}
{{Cfr-speedy}}
{{Nld}}
{{Nsd}}
{{Prod}}
{{Rfd}}
{{Tfd2}}
{{Tfdnotice}}
In addition, those templates which document a finished deletion process ({{Afd top}}
, etc.) should be substituted.
{{Col-begin}}
{{Col-2}}
{{Col-3}}
{{Col-4}}
{{Col-end}}
—alleged by some to simplify usage.{{Clear}}
, {{Clearleft}}
{{Clearright}}
{{Ed}}
{{Ed2}}
{{Ed right}}
{{Edit}}
—simplify addition of edit link to templates{{Unsigned}}
, {{Unsigned2}}
should be substed for the same reasons. However, the latter are all protected and will change much more infrequently than most signature templates; also, they are significantly longer.{{Subst only}}
(placed on the documentation subpages, not the template pages, of templates that need to be substituted rather than transcluded){{Uw-subst}}
(talkpage template that reminds users to subst)This article uses material from the Wikipedia ಕನ್ನಡ article ವಿಕಿಪೀಡಿಯ:Substitution, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). ವಿಶೇಷವಾಗಿ ಟಿಪ್ಪಣಿ ಮಾಡದಿದ್ದ ಹೊರತು ಪಠ್ಯ "CC BY-SA 4.0" ರಡಿ ಲಭ್ಯವಿದೆ. Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki ಕನ್ನಡ (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.