(Translated by https://www.hiragana.jp/)
Wikipedia:Template substitution: Difference between revisions - Simple English Wikipedia, the free encyclopedia Jump to content

Wikipedia:Template substitution: Difference between revisions

From Simple English Wikipedia, the free encyclopedia
Content deleted Content added
Updated by Shanie
Tags: Reverted Mobile edit Mobile web edit
Shanie has updated
Tags: Reverted Mobile edit Mobile web edit
Line 2: Line 2:
The "'''subst:'''" keyword (short for "substitution") is used as a prefix inside [[Wikipedia:Template|template code]]. It changes the way the software expands the template. Ordinarily, a template will be expanded "on the fly"; that is, every time you edit a page where the template is used, the template calls a separate page for the text, and the text it shows is updated. Placing "subst:" inside the template code when using it on a page, tells the software to substitute the template with text of the template (that is, the text that is on the template's article page ''when the template is added to the page''), so the output of the template is saved when you save the page, and it does not change even if the template is edited.
The "'''subst:'''" keyword (short for "substitution") is used as a prefix inside [[Wikipedia:Template|template code]]. It changes the way the software expands the template. Ordinarily, a template will be expanded "on the fly"; that is, every time you edit a page where the template is used, the template calls a separate page for the text, and the text it shows is updated. Placing "subst:" inside the template code when using it on a page, tells the software to substitute the template with text of the template (that is, the text that is on the template's article page ''when the template is added to the page''), so the output of the template is saved when you save the page, and it does not change even if the template is edited.


From a review
== Usage ==
You can subst a template by adding '''subst:''' to the beginning of the template tag. For example, you can use <nowiki>{{subst:test5}}</nowiki> instead of <nowiki>{{test5}}</nowiki>.


When this is an important part of an edit, it is very good to mention the template in the [[Wikipedia:Edit summary|edit summary]] (for instance, put "<nowiki>{{subst:test}}</nowiki>" or "test1 applied" in your edit summary so other editors can easily see what you have done).


From a review
A stunning compilation album featuring big hitters and big tunes! One of my all time favs is Dom's 'Life' remix which starts with great emotion and drops with ferocious precision, an amen onslaught. His other remix is also a stunner with a great lengthy intro and great breaks. 

Dillinja comes with his trademark drums and heavy bass, Moving fusion smash and twist it up with their offerings and Ray Keith completes the lp with 2 great stompers.

Every track here is superb and most were championed by Andy C, DJ Hype, Jumping Jack Frost, Randall amongst others back in the day.
A stunning compilation album featuring big hitters and big tunes! One of my all time favs is Dom's 'Life' remix which starts with great emotion and drops with ferocious precision, an amen onslaught. His other remix is also a stunner with a great lengthy intro and great breaks. 

Dillinja comes with his trademark drums and heavy bass, Moving fusion smash and twist it up with their offerings and Ray Keith completes the lp with 2 great stompers.

Every track here is superb and most were championed by Andy C, DJ Hype, Jumping Jack Frost, Randall amongst others back in the day.



Revision as of 15:57, 26 December 2022

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, every time you edit a page where the template is used, the template calls a separate page for the text, and the text it shows is updated. Placing "subst:" inside the template code when using it on a page, tells the software to substitute the template with text of the template (that is, the text that is on the template's article page when the template is added to the page), so the output of the template is saved when you save the page, and it does not change even if the template is edited.

From a review

A stunning compilation album featuring big hitters and big tunes! One of my all time favs is Dom's 'Life' remix which starts with great emotion and drops with ferocious precision, an amen onslaught. His other remix is also a stunner with a great lengthy intro and great breaks. 

Dillinja comes with his trademark drums and heavy bass, Moving fusion smash and twist it up with their offerings and Ray Keith completes the lp with 2 great stompers.

Every track here is superb and most were championed by Andy C, DJ Hype, Jumping Jack Frost, Randall amongst others back in the day.

Drawbacks of substitution

  • When a template is substituted, the result is no longer linked to the template, so it will be hard to find all pages displaying that text. This problem can be solved by adding a link to the template in the template's code, or by using categories.
  • Substitution increases the size of articles.
  • A substituted template can add a lot of wiki-code or HTML to the article. This way, people who do not have enough skills may find it harder to edit the page.
  • Substituting templates prevents newcomers from learning to use templates.
  • If the template is just being used temporarily, it is usually better not to substitute. Substituted templates are much harder to remove or edit.
  • When a vandalised template is substituted, it is more difficult to repair because it will not fix when the vandalised template is fixed.

Further reading