Difference between revisions of "Mediawiki Templates"

From Wikicliki
Jump to: navigation, search
(Sandbox)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Sandbox ==
 
== Sandbox ==
 
+
This is the sandbox and list of working templates installed on 21 Nov to make this wiki more awesome. At first I didn't know what I was doing.
===TIP ===
 
{{Tip
 
|heading=Practice
 
|tip=Practice your speech timing and mouse movements.
 
}}
 
  
 
===Note ===
 
===Note ===
{{Note|Foo}}
+
{{Note|Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.}}
 +
===Reminder ===
 +
{{Note|Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.|reminder}}
 +
===Error ===
 +
{{Note|Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.|error}}
  
 +
=== Kbd ===
 +
{{kbd|hello}}
 +
=== key press ===
 +
{{key press|Ctrl}} {{key press|Shift}} {{key press|,}} {{key press|Esc}} {{key press|Cmd}} {{key press|Enter}}
  
 
== Templates ==
 
== Templates ==
Line 19: Line 22:
 
After it has been imported open the template for editing, check the list below the edit box "Pages transcluded onto the current version of this page:". If there are any red links repeat the above steps for these templates as well. You might also need to copy styles in MediaWiki:Common.css page and Javascript in MediaWiki:Common.js before everything works. Finally edit the templates to customize for your wiki.
 
After it has been imported open the template for editing, check the list below the edit box "Pages transcluded onto the current version of this page:". If there are any red links repeat the above steps for these templates as well. You might also need to copy styles in MediaWiki:Common.css page and Javascript in MediaWiki:Common.js before everything works. Finally edit the templates to customize for your wiki.
  
If it still doesn't work and you have messy pages of braces and if statements, then you need to install the ParserFunctions extension.
+
* If it still doesn't work and you have messy pages of braces and if statements, then you need to install the ParserFunctions extension.
 
 
 
* https://www.mediawiki.org/wiki/Extension:Scribunto#Installation
 
* https://www.mediawiki.org/wiki/Extension:Scribunto#Installation
  
+
* edit the css in MediaWiki:Common.css
== I broke it ==
 
* http://dbbd.sg/wiki/index.php?title=Template:Kbd
 
 
 
<kbd>esc</kbd>
 
doulbe curly bracket key press|key1
 
 
 
{{kbd|hello}}
 
 
 
this is obviously a work in progress
 

Latest revision as of 16:28, 20 November 2016

Sandbox

This is the sandbox and list of working templates installed on 21 Nov to make this wiki more awesome. At first I didn't know what I was doing.

Note

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Reminder

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Error

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

Kbd

hello

key press

Ctrl ⇧ Shift , Esc ⌘ Cmd ↵ Enter

Templates

Go to Wikipedia and copy the name of the template you're after, go to Special:Export and paste the name of the template in the big text box, e.g. Template:Infobox. Check "Include templates" and uncheck "Include only the current revision, not the full history". Click Export to dump a .xml file of the template. Then import this into the destination wiki.

After it has been imported open the template for editing, check the list below the edit box "Pages transcluded onto the current version of this page:". If there are any red links repeat the above steps for these templates as well. You might also need to copy styles in MediaWiki:Common.css page and Javascript in MediaWiki:Common.js before everything works. Finally edit the templates to customize for your wiki.

  • edit the css in MediaWiki:Common.css