Difference between revisions of "Template:ReplaceAsterisks"
From AtlasWiki
(Created page with "<noinclude> Replaces asterisks with heavy asterisks. We like heavy asterisks for writing things like 0..1➞✱, because it's centered better than an actual aster...") |
(Fix to prevent loss of leading/trailing asterisks.) |
||
Line 7: | Line 7: | ||
If we find there isn't wide browser support for heavy asterisks, we could change this template to replace asterisks with <nowiki><nowiki>*</nowiki></nowiki>, without breaking anything; the normal asterisk indicates a bulleted list on a wiki. | If we find there isn't wide browser support for heavy asterisks, we could change this template to replace asterisks with <nowiki><nowiki>*</nowiki></nowiki>, without breaking anything; the normal asterisk indicates a bulleted list on a wiki. | ||
− | </noinclude>{{#arraymap:{{{1|}}}|*|x|x|✱}} | + | Due to implementation details, if the string passed in starts with or ends with "$$GARBAGE$$", the results may not be as expected, $$GARBAGE$$ is used to prevent leading and trailing asterisks from being lost. |
+ | |||
+ | </noinclude>{{#arraymap:{{#arraymap:$$GARBAGE$${{{1|}}}$$GARBAGE$$|*|x|x|✱}}|$$GARBAGE$$|x|x|$$GARBAGE$$}} |
Latest revision as of 17:03, 24 March 2014
Replaces asterisks with heavy asterisks.
We like heavy asterisks for writing things like 0..1➞✱, because it's centered better than an actual asterisk.
If we find there isn't wide browser support for heavy asterisks, we could change this template to replace asterisks with <nowiki>*</nowiki>, without breaking anything; the normal asterisk indicates a bulleted list on a wiki.
Due to implementation details, if the string passed in starts with or ends with "$$GARBAGE$$", the results may not be as expected, $$GARBAGE$$ is used to prevent leading and trailing asterisks from being lost.