Template:Codenowiki: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
(create new formatting template)
 
m (add {{Documentation}})
 
Line 1: Line 1:
<big><code></noinclude><now<noinclude>i</noinclude><includeonly>i</includeonly>ki>{{{1}}}</now<noinclude>i</noinclude><includeonly>i</includeonly>ki><noinclude></code></big><noinclude>
<big><code></noinclude><now<noinclude>i</noinclude><includeonly>i</includeonly>ki>{{{1}}}</now<noinclude>i</noinclude><includeonly>i</includeonly>ki><noinclude></code></big><noinclude>
{{{{FULLPAGENAME}}/doc}}
{{Documentation}}
<!-- Add cats and interwikis to the /doc subpage, not here! -->
<!-- Add cats and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 14:57, 26 August 2020

<nowiki>{{{1}}}</nowiki>

[edit] [purge] Documentation

Documentation

{{codenowiki}} is a shorthand notation to enclose the single parameter text inside both the <code> and <nowiki> tags.

It is most useful when displaying wikisyntax to a user, say on a template documentation page, without actually evaluating the template code.

This template must always be entered with the subst: prefix

Usage

{{ subst:codenowiki | string to code-icize }}

Examples

Codenowiki Result
{{subst:codenowiki|[[Category:Archetypes]]}}
</noinclude>[[Category:Archetypes]]
{{subst:codenowiki|{{wip|date={{subst:Today}}}}}}
</noinclude>{{wip|date={{subst:Today}}}}

  • This template is a self-reference and so is part of the Homecoming Wiki project rather than the content itself.