Template:Cw: Difference between revisions
Jump to navigation
Jump to search
work in progress |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
code><nowiki>{{{1}}}</nowiki></code><noinclude> | |||
==Documentation== | ==Documentation== | ||
Work in progress. | {{note|'''Work in progress.''' - this template does not work.}} | ||
{{grey-start}} | |||
'''C'''ode, no '''w'''iki - turns inserts tags <nowiki><code><nowiki></nowiki> and <nowiki></nowiki></code></nowiki> around wikitext. Useful for when describing code that has template [[Wikipedia:Transclusion|transclusion]] or other wiki code. | '''C'''ode, no '''w'''iki - turns inserts tags <nowiki><code><nowiki></nowiki> and <nowiki></nowiki></code></nowiki> around wikitext. Useful for when describing code that has template [[Wikipedia:Transclusion|transclusion]] or other wiki code. | ||
Line 8: | Line 9: | ||
===Example=== | ===Example=== | ||
: <nowiki>{{subst:</nowiki>{{lc:{{BASEPAGENAME}}}}<nowiki> |Here be code with '''wikicode'''.}}</nowiki> ... outputs: ... <code><nowiki>Here be code with '''wikicode'''.</nowiki></code> | : <<nowiki>{{subst:</nowiki>{{lc:{{BASEPAGENAME}}}}<nowiki> |Here be code with '''wikicode'''.}}</nowiki> ... outputs: ... <code><nowiki>Here be code with '''wikicode'''.</nowiki></code> | ||
===Embedded substitution=== | ===Embedded substitution=== | ||
Line 22: | Line 23: | ||
===Source=== | ===Source=== | ||
<s>Taken from [[Wikipedia:Template:Codenowiki]].</s> - sub template dependency hell - try different approach | <s>Taken from [[Wikipedia:Template:Codenowiki]].</s> - sub template dependency hell - try different approach | ||
{{grey-end}} | |||
[[Category:Utility | [[Category:Utility Templates]] | ||
[[Category:Templates (broken)]] | |||
</noinclude> | </noinclude> |
Latest revision as of 09:12, 17 February 2019
code>{{{1}}}
Documentation
Note: Work in progress. - this template does not work.
Code, no wiki - turns inserts tags <code><nowiki> and </nowiki> around wikitext. Useful for when describing code that has template transclusion or other wiki code. To work correctly, it must be substituted. Example
Embedded substitutionIf the template is transcluded rather than substituted on a page, its output can be corrected by re-saving the page, triggering the substitution embedded within it:
LimitationsThis template does not work with signatures. Typing ~~~~ results in displaying your full signature's code. ArgumentsNo arguments. Source
|