Editing
Help:Editing
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== How do templates work? == When editing the source of the page, you might see text that's been placed between curly brackets, like so: <pre><nowiki>{{ItemLink|Copper Ore}}</nowiki></pre> This is what we call a template. Templates are pre-coded code snippets that will automatically replace the curly brackets section. The template syntax always starts with a double left curly bracket, ''<nowiki>{{</nowiki>'', followed by the template name, in this case ''ItemLink''. If the template has arguments that can change its content, they are added after the template name separated with vertical bar, like ''|Copper Ore''. At the end, we find the closing right curly brackets ''}}''. Arguments can be anonymous, like the previous example, where you only write the content that should be shown, or named, where you have to specify the name of the content to change, like in this example: <pre><nowiki>{{ItemFloat|name=Copper Ore|type=Ore|description=A raw copper nuget.|value=6}}</nowiki></pre> == What templates are available? == We have a handful of templates to make your work on the wiki easier. === Item Template === This is the template that you would see on a item's page. It looks like this: [[File:Item Template.png]] This template can be inserted into any page with this syntax: <pre><nowiki>{{Item|name=Copper Ore|type=Ore|description=A raw copper nuget.|value=6}}</nowiki></pre> When the Item template is used in an item's page, you might want it to float to the top right of the page. In this case, you can change the template name to ''ItemFloat'': <pre><nowiki>{{ItemFloat|name=Copper Ore|type=Ore|description=A raw copper nuget.|value=6}}</nowiki></pre> Which will look like this: [[File:Item Float Template.png|800px]] Here is the full list of arguments that those templates can take: {| class="wikitable" |- ! Argument Name !! Required |- | name || Yes |- | type || No (doesn't show if empty) |- | description || Yes |- | value || Yes |} === Item Link Template === Ever seen those cute little links with thumbnails? [[File:Item Link Template.png]] You guessed it, its a template! It can be added to any page with this syntax: <pre><nowiki>{{ItemLink|Copper Ore}}</nowiki></pre> By default, it will search the thumbnail in .webp format. If you want the image to be another format, like the skill links with their little GIF animations, you can pass the file extension as a second argument: <pre><nowiki>{{ItemLink|Mining|gif}}</nowiki></pre> Here is the list of arguments: {| class="wikitable" |- !Argument !! Required |- | 1 (name) || Yes |- | 2 (extension) || No (defaults to .webp) |}
Summary:
Please note that all contributions to TombstoneMMO Wiki are considered to be released under the Creative Commons Attribution (see
TombstoneMMO Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Help page
Discussion
English
Views
Read
Edit source
View history
More
Refresh
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information