←  Wiki Discussion

ComputerCraft | Programmable Computers for Minecraft

»

New Template (Info)

LewisTehMinerz's Photo LewisTehMinerz 22 Oct 2015

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 by LewisTehMinerz, 22 October 2015 - 04:12 PM.
Quote

Creator's Photo Creator 22 Oct 2015

What are these templates for in the wiki anyways?
Quote

LewisTehMinerz's Photo LewisTehMinerz 22 Oct 2015

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.
Quote

Bomb Bloke's Photo Bomb Bloke 22 Oct 2015

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 by Bomb Bloke, 22 October 2015 - 10:28 PM.
Quote

LewisTehMinerz's Photo LewisTehMinerz 23 Oct 2015

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.
Quote