Wikipedia:Subst
From Wikipedia, the free encyclopedia.
This page is considered a guideline on Wikipedia. It illustrates standards of conduct, which many editors agree with in principle. However, it is not policy. Feel free to update the page as needed, but please use the discussion page to propose major changes. |
This page lists templates that should always be subst'd when used in the article or user namespaces. Note that such bots will never be used on the original template pages.
Contents |
[edit]
About subst
Definition
- The subst: keyword (short for "substitution") is used as a prefix inside a template code. It changes the way the software expands the template. Ordinarily, a template is expanded "on the fly"; that is, the template code calls a seperate page for the text every time a user views a page it's used on. Placing "subst:" inside the curly brackets tells the software to expand the template immediately upon being saved.
Advantages
- Every a viewer browses a page, the server must get text from a seperate page for every template code used. Although each individual template has little effect, the vast number of template codes used on Wikipedia is causing heavy loading times and a great deal of server load. This problem is solved by subst'ing templates on pages where they don't need to be kept up-to-date or simple. This is particularly true on talk pages.
- Templates are also a prime target for vandalism. Changes made to a single template are instantly propagated to many different pages. In this way, a single edit can vandalise thousands of individual pages. Subst'ing prevents this type of attack, since the template is converted into text and will no longer be updated.
- See Wikipedia:Transclusion costs and benefits for further details.
Usage
- You can subst a template tag by simply adding "subst:" to a template tag. For example, use {{subst:test5}} instead of {{test5}}.
[edit]
Templates that should be subst'd
This is a list of templates that should always be subst'd on the article or talk namespaces. The list is ordered alphabetically with grouped series.
[edit]
On user_talk pages
- {{3RR}} {{3RR2}} {{3RR3}}
- {{nn-warn}}
- {{nothanks}} {{nothanks-sd}}
- {{obscene}}
- {{selftest}}
- {{test-n}} {{test2-n}} {{test2a}} {{test2a-n}} {{test2b}} {{test3-n}} {{test4a}} {{test4-n}}
- {{test}} {{test0}} {{test1}} {{test2}} {{test2a}} {{test3}} {{test4}} {{test5}} {{test6}}
- {{welcome}} {{welcome2}} {{welcomeip}} {{anon}} - and all its variants
- {{blatantvandal}}
- {{attack}}
- {{blanking}} {{blanking2}} {{blanking3}} {{blanking4}}
- {{drmafd}} {{drmafd2}} {{drmafd3}} {{drmafd4}} {{drmafd5}}
- {{MIPblock}}
- {{multipleIPs}}
- {{spam}} {{spam2}} {{spam2a}} {{spam3}} {{spam4}}
- {{vanity}}
- {{vblock}}
- {{verror}} {{verror2}} {{verror3}} {{verror4}}
- {{Edit summary personal}} {{Editsummarynew}}
- {{sofixit}}
- {{Summary}} {{Edit summary}}
- {{name your images}} {{image source}} {{image copyright}}
- {{newvoter}}
- {{subst}}
[edit]
On deletion-related pages
- {{afd}} {{afd2}} {{afd3}} {{afd bottom}} {{afd top}}
{{tfd}}{{tfd2}} {{tfdnotice}}- {{ifd}} {{ifd2}} {{idw}} {{idw-uo}} {{idw-pui}} {{idw-cp}}
- {{cfd}} {{cfd2}}
{{cfdu}} {{cfr}} {{cfru}} {{cfm}}{{cfd-article}}{{cfr-speedy}}
[edit]
In articles
- {{clear}} {{clearleft}} {{clearright}} - The expanded code is simple.
- {{lived}} - The expanded code is simple.
- {{Lifetime}} - Same as {{lived}}, when they are empty they should be merged.
[edit]
Uncategorised suggestions
[edit]
Templates that should NOT be subst'd
- {{main}} - It contributes a certain appearance to part of an article. If the appearance of the template changes again, updates to an article may produce inconsistent appearance for such article links.
- {{tl}} {{tlp}} {{ttl}} {{ti}} {{tic}} {{tls}} {{cl}} - still opposed because they can be lengthy
- Stub templates
- User signature templates - Not be subst'ed without the user's permission. People will just keep adding them as tags instead of subst'ing them.
[edit]
See also
- User:Bluebot - A bot that is actively subst'ing according to this page.
- User:SubstBot - A dedicated subst bot.