Wikipedia talk:Substitution
| This is the talk page for discussing improvements to the Substitution page. | |||
|---|---|---|---|
|
|
||
| Archives: 1 | |||
Archives |
|---|
Contents |
[edit] Subst doesn't work within <ref>...</ref>
Trying {{subst:!}}
outside of <ref>...</ref>: |
inside <ref>...</ref>: [1]
- ^ {{subst:!}}
Does anyone know anything about this bug? Hgrosser (talk) 03:04, 29 April 2009 (UTC)
- It does seem to be a bug. See mw:Extension:Cite/Cite.php#Templates. — Martin (MSGJ · talk) 11:46, 29 April 2009 (UTC)
[edit] Requested move
I am requesting that this page be moved to Wikipedia:Substitution because substitution does not only apply to templates. -- IRP ☎ 20:11, 8 May 2009 (UTC)
- Sorry, can you elaborate? — Martin (MSGJ · talk) 20:57, 8 May 2009 (UTC)
- Substitution applies to all pages except for mainspace pages, just like transclusion does. If this page is not moved, then it is incorrect and inconsistent with Wikipedia:Transclusion. -- IRP ☎ 21:24, 8 May 2009 (UTC)
[edit] Substitution and REVISIONUSER
Pointer towards WP:Bot owners' noticeboard#Substitution and REVISIONUSER, concerning substitution of certain templates by bots. Amalthea 17:19, 3 May 2010 (UTC)
[edit] Templates or Pages
In cleaning up the intro, I noticed a lack of clarity regarding the target of substitution. Is it just templates that can be substituted, or can any page be substituted? It's clear the guideline's focus is on templates, but just for precision, it'd be good to make the intro fit. 69.142.154.10 (talk) 08:54, 12 July 2010 (UTC)
- Well yes, any page can be substituted OR transcluded. But usually there's no point in substituting any page other than a template. -- Ϫ 09:45, 12 July 2010 (UTC)
-
- Help:Substitution offers: '"Substitution is the replacement of a piece of wikicode with its value on saving the page. In particular: a template call is replaced by the template content (with substitution of any parameters); a variable is replaced with its value; a parser function is evaluated." So, for probably 99+% of practical purposes it's all templates. Ocaasi (talk) 12:02, 12 July 2010 (UTC)
[edit] Reflist
Just out of interest, what would happen if you subsituted a {{reflist}}? Rcsprinter (talk) 08:18, 3 June 2011 (UTC)
- I guess you'd just get some expanded text appearing in the wikitext, that has the same effect as a {{reflist}}. (But if you want to know for sure, try it and see.)--Kotniski (talk) 14:30, 3 June 2011 (UTC)
- I tried it in my sandbox, and that's just what happened. Rcsprinter (talk) 19:03, 3 June 2011 (UTC)
-
-
- Reflist is just a wrapper around
<references />, which is special-cased by MediaWiki. Parsing of the current footnotes system is always done at runtime. Chris Cunningham (user:thumperward) - talk 21:53, 14 July 2011 (UTC)
- Reflist is just a wrapper around
-
[edit] Full substitution
When I use {{subst:</nowiki<[[Template:Infobox|Infbox]]<nowiki> | name = Name | title = Title | image = [[File:example.png|thumb]] | caption = Caption | header1 = Header 1 | label2 = Label 2 | data2 = Data 2 | header3 = Header 3 | label3 = Label 3 | data3 = Data 3 | header4 = Header 4 | label4 = Label 4 | data4 = Data 4 | header5 = Header 5 | label5 = Label 5 | Data 5 | below = Below}}, it comes out as {{#ifeq:|yes||<table class="infobox " cellspacing="5" style="width:22em; "><!-- Caption -->{{#if:Title|<caption class="" style="">Title</caption>}}<!-- Header -->{{#if:|<tr><th colspan=2 class="" style="text-align:center; font-size:125%; font-weight:bold; ">{{{above}}}</th></tr>}} }}{{#ifeq:|yes|{{#if:Title|'''Title'''}}}}<!-- Subheader1 -->{{#if:|{{Infobox/row |data= |datastyle= |class= |rowclass= }} }}<!-- Subheader2 -->{{#if:|{{Infobox/row |data={{{subheader2}}} |datastyle= |class= |rowclass= }} }}<!-- Image1 -->{{#if:[[File:example.png|thumb]]|{{Infobox/row |data=[[File:example.png|thumb]]{{#if:Caption|<br /><span style="">Caption</span>}} |datastyle= |class= |rowclass= }} }}<!-- Image2 -->{{#if:|{{Infobox/row |data={{{image2}}}{{#if:|<br /><span style="">{{{caption2}}}</span>}} |datastyle= |class= |rowclass= }} }}<!-- -->{{Infobox/row |header=Header 1 |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label=Label 2 |labelstyle= |data=Data 2 |datastyle= |class= |rowclass= }}{{Infobox/row |header=Header 3 |headerstyle= |label=Label 3 |labelstyle= |data=Data 3 |datastyle= |class= |rowclass= }}{{Infobox/row |header=Header 4 |headerstyle= |label=Label 4 |labelstyle= |data=Data 4 |datastyle= |class= |rowclass= }}{{Infobox/row |header=Header 5 |headerstyle= |label=Label 5 |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}{{Infobox/row |header= |headerstyle= |label= |labelstyle= |data= |datastyle= |class= |rowclass= }}<!-- Below -->{{#if:Below|<tr><td colspan=2 class="" style="text-align:center; ">Below</td></tr>}}<!-- Navbar -->{{#if:Name|<tr><td colspan=2 style="text-align:right">{{navbar|Name|mini=1}}</td></tr>}} {{#ifeq:|yes||</table>}}{{#switch:{{lc:¬}} |¬|no = <!-- no italic title --> ||force|yes = {{italic title|force={{#ifeq:{{lc:}}|force|true}}}} }}{{#ifeq:|yes||{{#if:Data 2Data 3Data 4||{{namespace detect|main=[[category:articles which use infobox templates with no data rows]]}}}}}}, but why not have full substitution ({{fullsubst:Infobox | name = Name | title = Title | image = [[File:example.png|thumb]] | caption = Caption | header1 = Header 1 | label2 = Label 2 | data2 = Data 2 | header3 = Header 3 | label3 = Label 3 | data3 = Data 3 | header4 = Header 4 | label4 = Label 4 | data4 = Data 4 | header5 = Header 5 | label5 = Label 5 | Data 5 | below = Below}}), making it come out as {{#ifeq:|yes||<table class="infobox " cellspacing="5" style="width:22em; "><!-- Caption -->{{#if:Title|<caption class="" style="">Title</caption>}}<!-- Header -->{{#if:|<tr><th colspan=2 class="" style="text-align:center; font-size:125%; font-weight:bold; ">{{{above}}}</th></tr>}} }}{{#ifeq:|yes|{{#if:Title|'''Title'''}}}}<!-- Subheader1 -->{{#if:|{{#if: |<tr><th colspan="2" class="" style="text-align:center; ">{{{header}}}</th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; ">{{{label}}}</th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }} }}<!-- Subheader2 -->{{#if:|{{#if: |<tr><th colspan="2" class="" style="text-align:center; ">{{{header}}}</th></tr> |{{#if:{{{subheader2}}} |<tr class="">{{#if: |<th scope="row" style="text-align:left; ">{{{label}}}</th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} {{{subheader2}}}</td></tr> }} }} }}<!-- Image1 -->{{#if:[[File:example.png|thumb]]|{{#if: |<tr><th colspan="2" class="" style="text-align:center; ">{{{header}}}</th></tr> |{{#if:[[File:example.png|thumb]]{{#if:Caption|<br /><span style="">Caption</span>}} |<tr class="">{{#if: |<th scope="row" style="text-align:left; ">{{{label}}}</th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} [[File:example.png|thumb]]{{#if:Caption|<br /><span style="">Caption</span>}}</td></tr> }} }} }}<!-- Image2 -->{{#if:|{{#if: |<tr><th colspan="2" class="" style="text-align:center; ">{{{header}}}</th></tr> |{{#if:{{{image2}}}{{#if:|<br /><span style="">{{{caption2}}}</span>}} |<tr class="">{{#if: |<th scope="row" style="text-align:left; ">{{{label}}}</th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} {{{image2}}}{{#if:|<br /><span style="">{{{caption2}}}</span>}}</td></tr> }} }} }}<!-- -->{{#if:Header 1 |<tr><th colspan="2" class="" style="text-align:center; ">Header 1</th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if:Data 2 |<tr class="">{{#if:Label 2 |<th scope="row" style="text-align:left; ">Label 2</th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} Data 2</td></tr> }} }}{{#if:Header 3 |<tr><th colspan="2" class="" style="text-align:center; ">Header 3</th></tr> |{{#if:Data 3 |<tr class="">{{#if:Label 3 |<th scope="row" style="text-align:left; ">Label 3</th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} Data 3</td></tr> }} }}{{#if:Header 4 |<tr><th colspan="2" class="" style="text-align:center; ">Header 4</th></tr> |{{#if:Data 4 |<tr class="">{{#if:Label 4 |<th scope="row" style="text-align:left; ">Label 4</th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} Data 4</td></tr> }} }}{{#if:Header 5 |<tr><th colspan="2" class="" style="text-align:center; ">Header 5</th></tr> |{{#if: |<tr class="">{{#if:Label 5 |<th scope="row" style="text-align:left; ">Label 5</th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}{{#if: |<tr><th colspan="2" class="" style="text-align:center; "></th></tr> |{{#if: |<tr class="">{{#if: |<th scope="row" style="text-align:left; "></th> <td class="" style=""> |<td colspan="2" class="" style="text-align:center; "> }} </td></tr> }} }}<!-- Below -->{{#if:Below|<tr><td colspan=2 class="" style="text-align:center; ">Below</td></tr>}}<!-- Navbar -->{{#if:Name|<tr><td colspan=2 style="text-align:right"><span class="noprint plainlinks navbar" style=""><!-- -->{{#if:1|<!--nothing-->|<!--else: --><span style="">This box: </span>}}<!-- -->{{#if:|<span style="">[</span>}}<!-- --><span style="white-space:nowrap;word-spacing:-.12em;"><!-- -->[[{{#switch: {{NAMESPACE: Name }} |#default = {{FULLPAGENAME: Name }} <!-- eg "User:Foo" --> |{{ns:0}} = {{#ifeq: {{NAMESPACE: Name }} | {{NAMESPACE: TemplateName }} | Template:Name <!-- no leading colon, eg "Foo" --> | {{PAGENAME: Name }} <!-- leading colon, eg ":Foo", so we want the article --> }} }}|<span style="" title="View this template"><!-- -->{{#if:1|v|view}}</span>]]<!-- --><span style=""> <b>·</b> </span><!-- -->[[{{TALKPAGENAME:{{#switch: {{NAMESPACE: Name }} |#default = {{FULLPAGENAME: Name }} <!-- eg "User:Foo" --> |{{ns:0}} = {{#ifeq: {{NAMESPACE: Name }} | {{NAMESPACE: TemplateName }} | Template:Name <!-- no leading colon, eg "Foo" --> | {{PAGENAME: Name }} <!-- leading colon, eg ":Foo", so we want the article --> }} }}}}|<span style="" title="Discuss this template"><!-- -->{{#if:1|d|talk}}</span>]]<!-- -->{{#if:|<!--nothing-->|<!--else: --><span style=""> <b>·</b> </span><!-- -->[{{fullurl:{{#switch: {{NAMESPACE: Name }} |#default = {{FULLPAGENAME: Name }} <!-- eg "User:Foo" --> |{{ns:0}} = {{#ifeq: {{NAMESPACE: Name }} | {{NAMESPACE: TemplateName }} | Template:Name <!-- no leading colon, eg "Foo" --> | {{PAGENAME: Name }} <!-- leading colon, eg ":Foo", so we want the article --> }} }}|action=edit}} <span style="" title="Edit this template"><!-- -->{{#if:1|e|edit}}</span>]}}<!-- --></span><!-- -->{{#if:|<span style="">]</span>}}<!-- --></span></td></tr>}} {{#ifeq:|yes||</table>}}{{#switch:{{lc:¬}} |¬|no = <!-- no italic title --> ||force|yes = {{italic title|force={{#ifeq:{{lc:}}|force|true}}}} }}{{#ifeq:|yes||{{#if:Data 2Data 3Data 4||{{#switch: {{lc: <!--Lower case the result--> <!--If no or empty "demospace" parameter then detect namespace--> {{#if: | {{{demospace}}} | {{#if: | <!--Detect the namespace in the "page" parameter--> {{#ifeq:{{NAMESPACE:{{{page}}} }}|{{TALKSPACE:{{{page}}} }} | talk | {{SUBJECTSPACE:{{{page}}} }} }} | <!--No "demospace" or "page" parameters, so detect actual namespace--> {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}} | talk | {{SUBJECTSPACE}} }} }} }} }} <!-- Only one of the lines below will be executed --> <!-- Respecting empty parameters on purpose --> | main <!--"demospace=main" or {{SUBJECTSPACE}}={{ns:0}}=""--> | = [[category:articles which use infobox templates with no data rows]] | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | book = | other | #default = <!--"demospace=other" or a new namespace--> }}<!--End switch-->}}}} so it doesn't change at all even if the templates used by the template that was {{fullsubst:}}-ed change and so you can easily copy and paste the source code onto another wiki? (by the way, I showed an example of using it on another wiki at mw:Project:Sandbox) --X686 12:05, 10 December 2011 (UTC)
- It would indeed be nice to have a variant of subst: that was automatically fully recursive, but it seems we don't. However we do have Special:ExpandTemplates, which kind of allows you to do the same sort of thing, though with copying and pasting.--Kotniski (talk) 17:43, 10 December 2011 (UTC)