User:Mor

From OpenTTD
(Difference between revisions)
Jump to: navigation, search
m
m
Line 62: Line 62:
  
 
<onlyinclude>
 
<onlyinclude>
 +
<!--Picture Template-->
 +
 
{| style="background:#c0c0c0; border:1px solid #000000; -moz-border-radius:5px;"
 
{| style="background:#c0c0c0; border:1px solid #000000; -moz-border-radius:5px;"
 
|- align="center"
 
|- align="center"
Line 74: Line 76:
 
<div style="position: absolute; top: 0px; left: 0px; z-index: 2"><includeonly>[[Image:No_image.png|125x100px]]</includeonly><noinclude>image</noinclude></div>
 
<div style="position: absolute; top: 0px; left: 0px; z-index: 2"><includeonly>[[Image:No_image.png|125x100px]]</includeonly><noinclude>image</noinclude></div>
 
</div>
 
</div>
|}</onlyinclude>
+
|}
 +
 
 +
 
 +
<!--framework Template-->
 +
 
 +
{| style="margin-bottom:.5em; width:100%; font-size:95%; text-align:left; padding:-2px; background:none" cellpadding="0" cellspacing="0"
 +
| rowspan="2" width="100%" style="background:#F0F0F0; border:2px solid #ABCDEF; border-bottom:0; padding-right:1em; -moz-border-radius-topright:5em" |
 +
<div style="font-size:130%; margin-top:-33px; padding-left:43px"> '''{{{Title}}}'''</div><div style="font-size:130%; margin-top:-16px; padding-left:12px; cursor:default;">Placeholder</div>
 +
|-
 +
| style="border-bottom:2px solid #ABCDEF;" |
 +
|-
 +
| colspan="3" style="padding:4px; background:#F0F0F0; border:2px solid #; border-top:0; border-bottom:0" width="50%" valign="top" | {{{Text}}}
 +
---- 
 +
|-
 +
| colspan="3" style="padding:4px; background:#FFF; border:2px solid #ABCDEF; border-top:0; border-bottom:0" width="50%" valign="top" | <span style="float:right; font-family:Verdana, Arial, Helvetica, sans-serif; font-size: 80%; padding:0 .5em 0 2em">{{{Footer}}}</span>
 +
|-
 +
| colspan="3" | <div style="-moz-border-radius-bottomright:1em; -moz-border-radius-bottomleft:1em; background:#ABCDEF; height:10px; border:1px solid #ABCDEF; border-right:2px solid #ABCDEF; border-left:2px solid #ABCDEF;">
 +
</div>
 +
|}
 +
 
 +
 
 +
</onlyinclude>

Revision as of 11:40, 14 February 2010

This is My work/test space please ignore it.

Contents


Reminder TODO list

  1. Category:Templates
  2. Category:Editing Resources
  3. 32bpp stuff
  4. OpenTTD:Tutorial Editing
  5. NewGRF Sets


  1. waiting for an answer on the collapsible tables.


Templates:


links for Tutorial


links for style guide


temp stuff


FAQ

Templates

Are templates case sensitive? 
Yes, except usually the first letter.
Can I add parameters? 
Yes, see Help:Template for instructions.
How many templates can I use in a page? 
As many as you like.
I edited the template, so why didn't the page it is used on change? 
There are some caching bugs. One way to force refresh is to do edit on the page in which the template appears, and to then click on Save page without having changed anything — there is no need to fill in the Summary field since there will not be any history of this as a change generated. Alternatively, refreshing by pressing Ctrl and F5 often helps. Another way is add "&action=purge" to the address, like you would for "&action=edit" (e.g, :index.php?title=foo&action=purge).
Can I use a template within a template? 
Yes.
How do I add a new template?
You start a new template in the same way you would start a normal page. The only difference is that its title must start with Template:.
Can I move a template to a new name? 
Yes, this works in exactly the same way as normal page moves. When a page called for inclusion is a redirect page, the redirect target is included instead.
Where is the manual for the programming language used to write templates?
The language inside templates is the same language as regular wiki markup, but template writers tend to use the more complex available functions such as #if: statements. See ParserFunctions and see the other "advanced functioning" help pages listed below.



Text

image


{{{Title}}}
Placeholder
{{{Text}}}
{{{Footer}}}


Personal tools