Template:·/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
update documentation to reflect the revert to   for now
Updating the documentation to match our new code.
Line 4: Line 4:
This is the '''bold middot''' template, it looks like this " '''·''' ".
This is the '''bold middot''' template, it looks like this " '''·''' ".


It works similarly to the html+wiki markup sequence "<code>'''&amp;nbsp;<nowiki>'''</nowiki>&amp;middot;<nowiki>'''</nowiki>'''&nbsp;</code>". That is, a [[non-breaking space]], a bolded middot and a normal space. However this template includes some extra code that makes it behave slightly better than the html markup sequence.
It works similarly to the html+wiki markup sequence "<code>'''&amp;nbsp;<nowiki>'''</nowiki>&amp;middot;<nowiki>'''</nowiki>'''&nbsp;</code>". That is, a [[non-breaking space]], a bolded middot and a normal space.


{{tl|middot}} redirects here and can be used as alternative name for this template.
{{tl|middot}} redirects here and can be used as alternative name for this template.
Line 54: Line 54:
:[[Pepper]]
:[[Pepper]]


But putting one or more spaces before the template can cause problems, like these examples:
But putting one or more spaces before the template will cause problems, like these examples:
<nowiki>[[Salt]] {{&middot;}}[[Pepper]]</nowiki>
<nowiki>[[Salt]] {{&middot;}}[[Pepper]]</nowiki>
<nowiki>[[Salt]] {{&middot;}}[[Pepper]]</nowiki>
<nowiki>[[Salt]] {{&middot;}}[[Pepper]]</nowiki>