v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Difference between revisions of "Template:Colorlinks"
Jump to navigation
Jump to search
m (\S is non-whitespace, not \W) |
m (maybe this will fix the prefix issue) |
||
Line 1: | Line 1: | ||
− | {{#rreplace:{{#rreplace:{{{2|}}}|\[\[([^]{{!}}]+)\]\]|[[$1|$1]]}}|\[\[([^{{!}}]+)\{{!}}([^]]+)\]\](\S*)|<span style="color:{{{1|#00f}}};">[[$1|<span style="color:{{{1|#00f}}};">$2</span>]] | + | {{#rreplace:{{#rreplace:{{{2|}}}|\[\[([^]{{!}}]+)\]\]|[[$1|$1]]}}|\[\[([^{{!}}]+)\{{!}}([^]]+)\]\](\S*)|<span style="color:{{{1|#00f}}};">[[$1|<span style="color:{{{1|#00f}}};">$2$3</span>]]</span>}}<noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 21:00, 15 June 2013
(view - edit - history - purge) Documentation
This template changes the color of all links in {{{2}}} to {{{1}}}.
Examples
{{colorlinks|red|[[DF2012:Cat]]}}
{{colorlinks|blue|[[Main Page|Link to Main Page]]}}
Suffixes are colored too:
{{colorlinks|#f60|[[Cat]]s are in [[DF2012:cat|v0.34]] and [[23a:cat|the 23a version]]}}
Cats are in v0.34 and the 23a version