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 (Try link suffix support) |
m |
||
Line 1: | Line 1: | ||
− | {{#rreplace:{{#rreplace:{{{2|}}}|\[\[([^]{{!}}]+)\]\]|[[$1|$1]]}}|\[\[([^{{!}}]+)\{{!}}([^]]+)\]\]( | + | {{#rreplace:{{#rreplace:{{{2|}}}|\[\[([^]{{!}}]+)\]\]|[[$1|$1]]}}|\[\[([^{{!}}]+)\{{!}}([^]]+)\]\](\W*)|<span style="color:{{{1|#00f}}};">[[$1|<span style="color:{{{1|#00f}}};">$2</span>]]$3</span>}}<noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 17:41, 25 May 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