Difference between revisions of "Template:Hack"

From Nottinghack Wiki
Jump to navigation Jump to search
(tidy)
(no icon option)
Line 1: Line 1:
::'''''[[Image:guide.png|18px]]  [{{{1| {{{url|}}} }}} {{{2| {{{name|}}} }}}]'''''
+
::'''''{{#ifeq:noicon|"yes"||[[Image:guide.png|18px]]}}  [{{{1| {{{url|}}} }}} {{{2| {{{name|}}} }}}]'''''
 
<noinclude>
 
<noinclude>
 
==Documentation==
 
==Documentation==
Line 17: Line 17:
 
;name
 
;name
 
Title to give to link. Also works as second parameter unnamed.
 
Title to give to link. Also works as second parameter unnamed.
 +
 +
;noicon
 +
If noicon=yes then icon is not shown.
  
 
[[Category:Templates highlighting]]
 
[[Category:Templates highlighting]]
 
</noinclude>
 
</noinclude>

Revision as of 09:02, 9 March 2019

Guide.png  [ ]

Documentation

Template for a hatnote linking to Nottinghack rules or guide.

Examples

{{Hack|https://rules.nottinghack.org.uk/en/latest/do-not-be-on-fire.html|Rule 0: Do Not Be On Fire}}
Guide.png  Rule 0: Do Not Be On Fire


Parameters

url

Url to link to. Also works as first parameter unnamed.

name

Title to give to link. Also works as second parameter unnamed.

noicon

If noicon=yes then icon is not shown.