Difference between revisions of "Templates - Mediawiki"

From Help Wiki
m (subst applied to Template:TwoColumn)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
 +
<div class="container-fluid">
 +
<div class="row">
 +
<div class="col-md-8">
 +
<div class="lead">
 
'''Templates''' are segments of Wiki markup that are meant to be copied automatically ("transcluded") into a page.
 
'''Templates''' are segments of Wiki markup that are meant to be copied automatically ("transcluded") into a page.
 
You add them by putting the template's name in <nowiki>{{double braces}}</nowiki>.
 
You add them by putting the template's name in <nowiki>{{double braces}}</nowiki>.
 +
</div>
  
 
Some templates take ''parameters'', as well, which you separate with the pipe character.
 
Some templates take ''parameters'', as well, which you separate with the pipe character.
 
{| class="wikitable"
 
!width="1000"|What it looks like
 
!width="500"|What you type
 
|-
 
|
 
{{Transclusion demo}}
 
|<pre>
 
{{Transclusion demo}}
 
</pre>
 
|-
 
|
 
This template takes two parameters, and
 
creates underlined text with a hover box
 
for many modern browsers supporting CSS:
 
 
{{H:title|This is the hover text|
 
Hover your mouse over this text}}
 
 
 
|<pre>
 
This template takes two parameters, and
 
creates underlined text with a hover box
 
for many modern browsers supporting CSS:
 
 
{{H:title|This is the hover text|
 
Hover your mouse over this text}}
 
 
 
</pre>
 
|}
 
 
 
 
; Source: http://en.wikipedia.org/wiki/Help:Wikitext_examples
 
  
  
 +
Source: http://en.wikipedia.org/wiki/Help:Wikitext_examples
 
; See Also
 
; See Also
 
* http://meta.wikimedia.org/wiki/Help:Template
 
* http://meta.wikimedia.org/wiki/Help:Template
* [[Include Article - Mediawiki]]
 
  
  
 +
<!-- end col-md-8 -->
 +
</div>
 +
<div class="col-md-1"></div>
 +
<div class="col-md-3 sidebar">
 +
{{Mediawiki Help}}
 +
{{GetHelp}}
 +
 +
<!-- end col-md-3-->
 +
</div>
 +
<!-- end row-->
 +
</div>
 +
<!-- end container-->
 +
</div>
 +
<!-- Generator=Template:TwoColumn -->
 +
__NOTOC__
 +
__NOEDITSECTION__
  
 
  [[category:Mediawiki]]
 
  [[category:Mediawiki]]

Latest revision as of 17:01, 14 August 2017

Templates are segments of Wiki markup that are meant to be copied automatically ("transcluded") into a page. You add them by putting the template's name in {{double braces}}.

Some templates take parameters, as well, which you separate with the pipe character.


Source: http://en.wikipedia.org/wiki/Help:Wikitext_examples

See Also