Jump to content

Template talk:Markup renders as

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Another example (just curious)

[edit]

This:

{{subst:mra|

Article text.{{sfn|Smith|2021}}

== Citations ==
{{reflist}}

== References ==
* {{cite book|last = Smith|year=2021|title=Smith's book}}

}}


Produces this:

{{markup|


Article text.{{sfn|Smith|2021}}

== Citations ==
{{reflist}}

== References ==
* {{cite book|last = Smith|year=2021|title=Smith's book}}

|

Article text.{{sfn|Smith|2021}}

== Citations ==
{{reflist}}

== References ==
* {{cite book|last = Smith|year=2021|title=Smith's book}}}}<!-- Template:Mra -->

Which renders as:

Markup Renders as

Article text.{{sfn|Smith|2021}}

== Citations ==
{{reflist}}

== References ==
* {{cite book|last = Smith|year=2021|title=Smith's book}}

Article text.[1]

Citations

References

  • Smith (2021). Smith's book.

References has showed up in the table of contents, which we don't want, so one has to post-edit to replace these with "Fake heading" and so on. But this is still very useful as a typing aid. Nice work. ---- CharlesGillingham (talk) 04:58, 22 September 2021 (UTC)[reply]

subst templates are still parsed in safesubst

[edit]

Not sure how to fix this, so it should be put in the documentation as a bug if it's not fixed soon, but use of subst: in templates that are arguments in {{mra}} causes them to be parsed prior to being transferred to nowiki code. Ex: {{mra|In {{subst:#invoke:String|len|hello}} out.}} produces:

{{markup| <nowiki>In 5 out.</nowiki>|In 5 out.}}

PS: Also mra has interesting behavior in the new live preview feature on Talk pages -- in general the in-text form:

{{mra|contents}}

is displayed in the preview as:

{{markup| <nowiki>contents</nowiki> }}

I still love this template btw. SamuelRiv (talk) 18:42, 16 August 2022 (UTC)[reply]

Pass parameters to Template:Markup

[edit]

I wish this template would pass-through parameters to Template:Markup, especially |tag=. Daask (talk) 18:52, 29 April 2024 (UTC)[reply]