This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
LewisTehMinerz's profile picture

New Template (Info)

Started by LewisTehMinerz, 22 October 2015 - 02:38 PM
LewisTehMinerz #1
Posted 22 October 2015 - 04:38 PM
Hey there guys! I just made a quick template here based off the 'Marked for deletion' template. I call it the Info template.

Syntax is as follows:


{{info|Type your message here}}

Easy right? If you don't type a message it will say 'No information provided. Contact the author of this page.' as it should not be blank!

-LewisTehMinerz

(More information can be found here)
Edited on 22 October 2015 - 03:12 PM
Creator #2
Posted 22 October 2015 - 04:56 PM
What are these templates for in the wiki anyways?
LewisTehMinerz #3
Posted 22 October 2015 - 05:11 PM
MediaWiki allows you to create templates (which are pre-defined code) to put into your wiki pages so you don't have to retype that text over and over.
Bomb Bloke #4
Posted 22 October 2015 - 11:23 PM
For example, the changelog is written as a template. This allows the one single copy to appear within multiple pages, and updating the one template applies the changes to both.

That said, I'm not sure what this template is for. All pages should contain "info" anyway; that's what they're there for, no? It strikes me that Lua Resource Pack Making (Tutorial) would be better off making use of the pre-existing stub or msgbox templates.
Edited on 22 October 2015 - 09:28 PM
LewisTehMinerz #5
Posted 23 October 2015 - 03:57 PM
1. The stub message box doesn't allow custom text.
2. I don't like the MsgBox template which is basically stub.

All I wanted to make was a better looking template for important info.