Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Codenowiki/doc: Difference between revisions

Template page
Created page with '{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{...'
 
No edit summary
Line 4: Line 4:
<includeonly>{{Notice |Ignore the code appearing above; it is not how the final result will display}}</includeonly>
<includeonly>{{Notice |Ignore the code appearing above; it is not how the final result will display}}</includeonly>
{{Subst only}}
{{Subst only}}
 
:''This has been copied from the English Wikipedia's Codenowiki template. Some features may be missing.''
This template provides a speedy way to wrap template source code in {{tag|code|content={{tag|nowiki}}}} markup. To work correctly, '''it must be [[WP:SUBST|substituted]]'''.
This template provides a speedy way to wrap template source code in {{tag|code|content={{tag|nowiki}}}} markup. To work correctly, '''it must be [[WP:SUBST|substituted]]'''.



Revision as of 23:40, 2 December 2019

Template:Subst only

This has been copied from the English Wikipedia's Codenowiki template. Some features may be missing.

This template provides a speedy way to wrap template source code in ‎<code>‎<nowiki>...‎</nowiki>‎</code> markup. To work correctly, it must be substituted.

Example

{{subst:codenowiki |1=Here be code}} ... outputs: ...  Here be code

The code produced by the template for this output is:

<code><nowiki>Here be code</nowiki></code>

Embedded substitution

If 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:

Here be code

Limitations

This template does not work with signatures. Typing {{subst:codenowiki|~~~~}} results in displaying your full signature's code.

See also

Template:Semantic markup templates


Cookies help us deliver our services. By using our services, you agree to our use of cookies.