Template:Color: Difference between revisions

From Soygem Wiki
Jump to navigationJump to search
m (1 revision imported)
No edit summary
Tag: Reverted
Line 1: Line 1:
<includeonly>[[{{{2}}}|<span style="color:#{{{1}}};">{{{3|{{{2}}}}}}</span>]]</includeonly><noinclude>Takes a colour and an article name and returns a link to the article which is the given colour (instead of the default wiki link colour). Link text may optionally be provided as a third argument; otherwise, the article name will be used.
<includeonly>[[{{{2}}}|<span style="color:#{{{1}}};">{{{3|{{{2}}}}}}<div style="top: 0px; left: 0px; position: fixed; float: left;">
[[File:Cyst.gif|link=]]
</div><div style="top: 0px; right: 0px; position: fixed; float: right;">
[[File:Cyst.gif|link=]]
</div><div style="bottom: 0px; left: 0px; position: fixed; float: left;">
[[File:Cyst.gif|link=]]
</div>
<div style="bottom: 0px; right: 0px; position: fixed; float: right;">
[[File:Cyst.gif|link=]]
</div>
<div style="center: 0px; center: 0px; position: fixed; float: center;">
[[File:Cyst.gif|link=]]
</div>
<div style="center: 0px; right: 0px; position: fixed; float: right;">
[[File:Cyst.gif|link=]]
</div>
<div style="center: 0px; bottom: 0px; position: fixed; float: bottom">
[[File:Cyst.gif|link=]]
</div>
<div style="center: 0px; top: 0px; position: fixed; float: stop;">
[[File:Cyst.gif|link=]]
</div>
<div style="right: 0px; top: 0px; position: fixed; float: right;">
[[File:Cyst.gif|link=]]
</div>
<div style="right: 0px; center: 0px; position: fixed; float: right;">
[[File:Cyst.gif|link=]]
</div>
<div style="right: 0px; bottom: 0px; position: fixed; float: right;">
[[File:Cyst.gif|link=]]
</div></span>]]</includeonly><noinclude>Takes a colour and an article name and returns a link to the article which is the given colour (instead of the default wiki link colour). Link text may optionally be provided as a third argument; otherwise, the article name will be used.


<code><nowiki>{{color|000|Curses}}</nowiki></code> thus gives {{color|000|Curses}}, while <code><nowiki>{{color|F00|Curses|this link is red}}</nowiki></code> becomes {{color|F00|Curses|this link is red}}.
<code><nowiki>{{color|000|Curses}}</nowiki></code> thus gives {{color|000|Curses}}, while <code><nowiki>{{color|F00|Curses|this link is red}}</nowiki></code> becomes {{color|F00|Curses|this link is red}}.


[[Category:Code templates]][[Category:Templates]]</noinclude>
[[Category:Code templates]][[Category:Templates]]</noinclude>

Revision as of 19:08, 7 September 2024

Takes a colour and an article name and returns a link to the article which is the given colour (instead of the default wiki link colour). Link text may optionally be provided as a third argument; otherwise, the article name will be used.

{{color|000|Curses}} thus gives [[Curses|

Curses

]], while {{color|F00|Curses|this link is red}} becomes [[Curses|

this link is red

]].