Malline:Laatikon otsikko

Antsawikistä
Siirry navigaatioon Siirry hakuun
muokkaa  

{{{otsikko}}}

Template-info.jpg
Mallineen ohje [näytä] [

Käyttö

A template standardizing the portal templates and for other purposes.

Syntaksi

The template is not a stand-alone template and so once the box header is typed or pasted the template laatikon alateksti must immediately follow it.

This example assumes that you have a separate page containing the content, and transclude it onto the page.

{{laatikon otsikko
| otsikko= 
| editpage=  <!-- This data must be the same  -->
| titleforeground=
| titlebackground=
| background=
| viewpage= <!-- This data must be the same  -->
}}

{{ <!-- This data must be the same --> }}

{{laatikon alateksti | text }}

This example assumes that the content is entered between the header and footer. Notice that viewpage is not in there. It will not work because it links to the page you are on, and therefore Antsawiki does not link it.

{{laatikon otsikko
| title= 
| editpage=  <!-- This field must be the same as the name of the page it is on. -->
| titleforeground=
| titlebackground=
| background=
}}

Box Content

{{laatikon alateksti | text }}

Sample

{{laatikon otsikko
| title= The Quotes of Quotes
| editpage= laatikon otsikko/sample
| titleforeground= white
| titlebackground= red
| background= white
}}

{{laatikon otsikko/sample}}

{{laatikon alateksti| [[William Shakespeare]] }}
muokkaa  

{{{otsikko}}}