Help talk:Substitution

Jump to navigation Jump to search

About this board

How to do a template that use the USEREDITOR as a signature ?

4
Summary by Dvorapa

Use <includeonly>

Orthophilos (talkcontribs)

I' m trying to create a seal of "notorious article" to be used for sysops that approve some article. I created a template called {{Template:NotoriousArticle}} the Idea is some thing like {{Approved by {{subst:{{REVISIONUSER}}}}}} , When the sysop call notoriousArticle the text have to be replaced just in the article and not in the template. Anyone could help me ?

Messerjokke79 (talkcontribs)

try <includeonly>.

2804:14C:65D3:4213:10E:10F3:A232:680C (talkcontribs)

thanks.

Orthophilos (talkcontribs)

thanks

Substitute with result of SMW ask / inline query

1
Coboluxx (talkcontribs)

After hours trying I could use some help ;) I am trying to substitute a template with an SMW inline query. This works fine but I have expected the substitution to contain the ask queries result and not the query itself. What I am trying to accomplish is a form which creates a new page that captures the result of an ask query as plain content. Anyone with an idea on how to do this?

Reply to "Substitute with result of SMW ask / inline query"
أحمد (talkcontribs)

I have been re-reading this for a year now and I must be very thick because I'm unable to answer a very basic question:

Is it possible to create a template T that, when included normally in page P, would substitute some of its output in page P?

alternatively:

Is it possible to create a template T1 that, when included normally in page P, would substitute the output of another template T2 in page P?

I.e is it possible to hide the mechanics of substitution of the layuser who would continue to use templates as they normally would?

RobinHood70 (talkcontribs)

While I'm no substitution expert, I'm reasonably sure the answer is "no" to both of these. The end user has to decide whether they're substituting or not; after that, however, a template can certainly control how it responds to a request to be substituted (or if it's not substituted but should be).

Reply to "A basic question"
There are no older topics