Difference between revisions of "VDR Wiki:Templates"

From VDR Wiki
Jump to: navigation, search
(Template list)
(Examples)
Line 49: Line 49:
 
</pre>
 
</pre>
 
and save it. The resulting page show noch a Box with the text ''This is a hint'' in it. Edit it again. Again the call of the template is there, not the content.
 
and save it. The resulting page show noch a Box with the text ''This is a hint'' in it. Edit it again. Again the call of the template is there, not the content.
 +
 +
[[de:VDR Wiki:Vorlagen]]
 +
[[es:VDR Wiki:Plantillas]]
 +
[[fr:VDR Wiki:Modèles]]
 +
<!-- Link zum russischen Wiki [[ru:]] -->
 +
<!-- Link zum finnischen Wiki [[fi:]] -->

Revision as of 17:34, 20 March 2006

Description

Templates are ready to use constructs of wiki syntax. They are useful for frequently used text or other unchanging things that are used more often.

One can use a template by inserting {{template_name|option1|option2}} in the text. It is then replace by the template content together with the option in the generated text. That means, changing a template changes the text in all articles the template is used in.

If this is not intended prepend a subst: to the template name as in {{subst:template_name}}.

Template list

Here are the templates listed, that exist for VDR Wiki.


These are article skeletons. Create an empty article, place the appropiate template in it (with a prepended subst: before the template name, save the article and edit it again. The basic structure is now in place.


These are some info boxes. They get the info text as parameter.


Standard elements

Examples

Create empty article and place

{{subst:Article (plugin)}}

save, and edit again, the content is now in place.

Place this somewhere in an article

{{Box Hint|
This is a hint.
}}

and save it. The resulting page show noch a Box with the text This is a hint in it. Edit it again. Again the call of the template is there, not the content.
http://www.linuxtv.org/vdrwiki/index.php?title=VDR_Wiki:Templates&diff=4054&oldid=3799
www.linuxtv.org
crawl=CC-MAIN-2015-14
22022
application/http; msgtype=response
sha1:7H5AAGEGNLWQTJRTB7A2DTHGI63SEF4Z
<urn:uuid:a12ccaec-3d45-4bcb-9e76-519925444ff0>
2015-03-28T00:43:49Z
130.149.80.248
sha1:VCZWKD5ZBCSHXFOEEOH3IJE7XM5657YD
<urn:uuid:17c743d3-5fe4-4b66-b2ed-3f9dddb99424>
http://www.linuxtv.org/vdrwiki/index.php?title=VDR_Wiki:Templates&diff=4054&oldid=3799
response
<urn:uuid:c2897637-61e5-45dc-b40d-b90eb27478d8>
robots: classic
hostname: ip-10-168-14-71.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-14
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for March 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf