Template:Code/doc

From blackwiki
Jump to navigation Jump to search

{{Documentation subpage bar, const std::vector<long double*>& baz);}} iscode |lang=javascript |code=var }}

Included templates

Embedded templates do not function as expected inside {{code}}; for longer, free-form blocks of code, whichwrapper instead of this template.

Templates used inside {{code}} expose the rendered HTML— this can be useful. For example:

Markup Renders as
{{code|
{{cite web |title=Title |url=http://example.org}}
}}

<cite class="citation web cs1">[http://example.org "Title"].</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=unknown&rft.btitle=Title&rft_id=http%3A%2F%2Fexample.org&rfr_id=info%3Asid%2Fblackwiki.org%3ATemplate%3ACode%2Fdoc" class="Z3988"></span>'"`UNIQ--templatestyles-00000001-QINU`"'

The above example shows the HTML rendered by the citation template, including the hidden metadata.

See also