Difference between revisions of "Template:GridImage/doc"

From TerraFirmaCraft Wiki
Jump to: navigation, search
(Created page with "{{doc/start}} The gridimage template is a singular grid image, that is uploaded as Grid <Name>.png. == Usage == All inputs are optional (howeverLink and Title won't do anythi...")
 
m
 
Line 1: Line 1:
 
{{doc/start}}
 
{{doc/start}}
The gridimage template is a singular grid image, that is uploaded as Grid <Name>.png.
+
The gridimage template is a singular grid image, that is uploaded as Grid <Name>.png, which will have no links or titles.
  
== Usage ==
+
<code><nowiki>{{GridImage|Raw Porkchop}}</nowiki></code>
All inputs are optional (howeverLink and Title won't do anything without Name):<br>
+
<pre style="max-width: 484px">{{Grid
+
|link=Link override
+
|title=Title, removes link
+
}}</pre>
+
 
+
 
+
To change the link from the image name put: <code><nowiki>{{GridImage|Charcoal|link=Coal#Charcoal}}</nowiki></code>
+
 
;shows
 
;shows
{{GridImage|Charcoal|link=Coal#Charcoal}}
+
{{GridImage|Raw Porkchop}}
 
+
 
+
To remove the link, set link to none: <code><nowiki>{{GridImage|Charcoal|link=none}}</nowiki></code>
+
;shows
+
{{GridImage|Charcoal|link=none}}
+
 
+
Note that this retains the title.
+
 
+
 
+
To add a different title, put: <code><nowiki>{{GridImage|Raw Porkchop|title=Smelly Pork}}</nowiki></code>
+
;shows
+
{{GridImage|Raw Porkchop|title=Smelly Porkchop}}
+
 
+
 
+
To remove the title, set title to none: <code><nowiki>{{GridImage|Raw Porkchop|title=none}}</nowiki></code>
+
;shows
+
{{GridImage|Raw Porkchop|title=none}}
+
 
+
Note that setting title will remove the link, due to a limitation in the software.
+
 
{{doc/end}}
 
{{doc/end}}

Latest revision as of 00:55, 13 May 2014

The gridimage template is a singular grid image, that is uploaded as Grid <Name>.png, which will have no links or titles.

{{GridImage|Raw Porkchop}}

shows

Grid Raw Porkchop.png