Difference between revisions of "Help:Template"

From LDraw.org Wiki
Jump to navigation Jump to search
 
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
There are templates made to make editing the LDraw.org Wiki easier. More templates are made as they're come up with, so keep an eye on this page.
+
There are templates made to make editing the LDraw.org Wiki easier. More templates are made as they are come up with, so keep an eye on this page.
 +
__TOC__
  
 +
==General use==
 +
{| style="background-color: #eee; border: 1px #08A dashed;" cellpadding="10"
 +
|-
 +
!Template
 +
!Example
 +
|-
 +
|'''c'''<br /><small>c as in '''c'''oloured</small>
 +
|<nowiki>{{c|green|This is green text}}</nowiki>
 +
|-
 +
|colspan="2"| {{c|green|This is green text}}
 +
|-
 +
|}
 +
 +
==Message boxes==
 
{| style="background-color: #eee; border: 1px #08A dashed;" cellpadding="10"
 
{| style="background-color: #eee; border: 1px #08A dashed;" cellpadding="10"
 
|-
 
|-
Line 12: Line 27:
 
|textcolor=black
 
|textcolor=black
 
|caption=Hello there!
 
|caption=Hello there!
|text=This is a message.}}</pre>
+
|text=This is a message.
 +
}}</pre>
 
|-
 
|-
 
|colspan="2"| {{MessageBox|bgcolor=darkgreen|ltbgcolor=lime|textcolor=black|caption=Hello there!|text=This is a message.}}<br /><br /><hr />
 
|colspan="2"| {{MessageBox|bgcolor=darkgreen|ltbgcolor=lime|textcolor=black|caption=Hello there!|text=This is a message.}}<br /><br /><hr />
Line 21: Line 37:
 
|colspan="2"| {{NoticeBox|Please do not eat all the doughnuts.}}<br /><br /><hr />
 
|colspan="2"| {{NoticeBox|Please do not eat all the doughnuts.}}<br /><br /><hr />
 
|-
 
|-
|'''NoticeBox'''
+
|'''ImportantNoticeBox'''
 
|<pre>{{ImportantNoticeBox|Do not even think about vandalizing this Wiki!}}</pre>
 
|<pre>{{ImportantNoticeBox|Do not even think about vandalizing this Wiki!}}</pre>
 
|-
 
|-
|colspan="2"| {{ImportantNoticeBox|Do not even think about vandalizing this Wiki!}}
+
|colspan="2"| {{ImportantNoticeBox|Do not even think about vandalizing this Wiki!}}<br /><br /><hr />
 +
|-
 +
|'''ImageMessageBox'''
 +
|<pre>{{ImageMessageBox
 +
|bgcolor=darkgreen
 +
|ltbgcolor=lime
 +
|textcolor=black
 +
|image=[[Image:ImageMessageBox.png|64px]]
 +
|caption=Hello there!
 +
|text=This is a message.
 +
}}</pre>
 +
|-
 +
|colspan="2"| {{ImageMessageBox|bgcolor=darkgreen|ltbgcolor=lime|textcolor=black|caption=Hello there!|image=[[Image:ImageMessageBox.png|64px]]|text=This is a message.}}<br /><br /><hr />
 +
|-
 +
|'''Stub'''
 +
|<Pre>{{Stub}}</pre>
 +
|-
 +
|colspan="2"| {{Stub}}<br /><br /><hr />
 +
|-
 +
|'''NeedsWork'''
 +
|<pre>{{NeedsWork|T}}</pre><small>Note that the parameter is the first letter of the article. It is T here because T is the first letter of Templates.<br />Note also that this template is typically placed on a talk page and a '''NeedsWorkNotifier''' is placed on the page instead.</small>
 +
|-
 +
|colspan="2"| {{NeedsWork|T}}<br /><br /><hr />
 +
|-
 +
|'''NeedsWorkNotifier'''
 +
|<Pre>{{NeedsWorkNotifier}}</pre>
 +
|-
 +
|colspan="2"| {{NeedsWorkNotifier}}
 +
|-
 
|}
 
|}
 +
 +
==Infoboxes==
 +
{| style="background-color: #eee; border: 1px #08A dashed;" cellpadding="10"
 +
|-
 +
!Template
 +
!Example
 +
|-
 +
|'''Software'''
 +
|<pre>{{Software
 +
|developer=Mr. X
 +
|function=CAD
 +
|version=1.3.37
 +
|platform=Windows, Linux, Mac
 +
|website=[http://example.com/ example.com]
 +
}}</pre>
 +
|-
 +
|colspan="2"| {{Software|developer=Mr. X|function=CAD|version=1.3.37|platform=Windows, Linux, Mac|website=[http://example.com/ example.com]}}
 +
|-
 +
|colspan="2"|<hr />
 +
|-
 +
|}
 +
 +
==See also==
 +
Wikipedia's {{wp|Help:Template|Help:Template}}
 +
 +
[[category:help]]
 +
[[category:templates| ]]

Latest revision as of 01:05, 23 February 2019

There are templates made to make editing the LDraw.org Wiki easier. More templates are made as they are come up with, so keep an eye on this page.

General use

Template Example
c
c as in coloured
{{c|green|This is green text}}
This is green text

Message boxes

Template Example
MessageBox
{{MessageBox
|bgcolor=darkgreen
|ltbgcolor=lime
|textcolor=black
|caption=Hello there!
|text=This is a message.
}}
Hello there!
  This is a message.



NoticeBox
{{NoticeBox|Please do not eat all the doughnuts.}}
Notice
  Please do not eat all the doughnuts.



ImportantNoticeBox
{{ImportantNoticeBox|Do not even think about vandalizing this Wiki!}}
Important Notice
  Do not even think about vandalizing this Wiki!



ImageMessageBox
{{ImageMessageBox
|bgcolor=darkgreen
|ltbgcolor=lime
|textcolor=black
|image=[[Image:ImageMessageBox.png|64px]]
|caption=Hello there!
|text=This is a message.
}}
ImageMessageBox.png Hello there!
This is a message.



Stub
{{Stub}}
Stub.png Stub
This article is a stub. You can help the LDraw.org Wiki Wiki by expanding it.




NeedsWork
{{NeedsWork|T}}
Note that the parameter is the first letter of the article. It is T here because T is the first letter of Templates.
Note also that this template is typically placed on a talk page and a NeedsWorkNotifier is placed on the page instead.
Toolbox.png Needs Work
This page needs work in order to be high quality. You can help LDraw.org Wiki by improving it.



NeedsWorkNotifier
{{NeedsWorkNotifier}}
Construction worker.png This page needs work.
Please see the discussion page for details.

Infoboxes

Template Example
Software
{{Software
|developer=Mr. X
|function=CAD
|version=1.3.37
|platform=Windows, Linux, Mac
|website=[http://example.com/ example.com]
}}
Template
Software icon.png
Developer(s) Mr. X
Initial release unknown
Current version 1.3.37
Development status unknown
Operating system Windows, Linux, Mac
Available in unknown
Type CAD
License unknown
Website example.com
Software infobox

See also

Wikipedia's Help:Template