User:Bfdifan2006/code: Difference between revisions
From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
Bfdifan2006 (talk | contribs) mNo edit summary |
Bfdifan2006 (talk | contribs) (standardizing documentation) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{mainspace|template|status=complete}}<onlyinclude><{{ | {{mainspace|template|status=complete}}<onlyinclude><code style="{{{style|}}}">{{<includeonly>safesubst:</includeonly>#ifeq:{{{2|yes}}}|yes|{{<includeonly>safesubst:</includeonly>#tag:nowiki|{{{1}}}}}|{{{1}}}}}</code></onlyinclude> | ||
{{ | {{documentation}} |
Latest revision as of 11:21, 2 December 2023
This template is intended to be moved into one of Bulbapedia's main content spaces. Be mindful that it is still part of a personal userspace. Any content changes should be brought up on the talk page for this template. |
{{{1}}}
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Description
Use
This template serves as the replacement for the <code>
tag. It also disables all wiki markup of the first parameter if desired (<nowiki>
can still be freely inserted).
Syntax
{{User:Bfdifan2006/code|text|if yes, disable wiki formatting|style=additional CSS styling}}
Parameters
1
: The tag's content.2
:yes
if the wiki formatting is to be disabled in the entire tag. (HTML escape entities, e.g. < as < are still interpreted.) The simplest way to enable wiki formatting is to put a pipe|
before the closing braces}}
. (Default:yes
)style
: Additional styles to apply.
Sample output
{{User:Bfdifan2006/code|[[Main Page]]}}
[[Main Page]]
{{User:Bfdifan2006/code|[[Main Page]]|}}