Difference between revisions of "Template:Lessthan"
Jump to navigation
Jump to search
imported>RockMFR (moved to /doc) |
imported>Jo-Jo Eumerus m (Changed protection level for "Template:Lessthan": Allowing template editors on some templates with full protection dating back to pre-WP:TPROT times which aren't too often or too sensitively used. ([Edit=Require template editor access] (indefin...) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<<noinclude> | <<noinclude> | ||
| − | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:04, 25 March 2017
<
This template can be used in place of a literal "<" when the latter would be interpreted as a syntactic marker. In particular, it can be used inside templates meant for subst:ing, together with the <includeonly>subst:</includeonly> trick, to allow the subst:ed output to contain HTML comments that contain other subst:ed templates, parser functions or variables. This works even under the new parser, which doesn't otherwise allow code within comments to be evaluated.
For example, the code "{{<includeonly>subst:</includeonly>lessthan}}!-- {{<includeonly>subst:</includeonly>SITENAME}} -->" in a template produces "<!-- Wikipedia -->" when subst:ed.
See also
| The above documentation is transcluded from Template:Lessthan/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |