MediaWiki talk:Common.js

From BIONICLEsector01

Facebook and Twitter Links

Can they be moved over so they line up with the start of the bullets above them? Maybe make the background color match as well. Shine 05:58, 7 November 2014 (CET)

DISPLAYTITE implemention

Hey User:Dorek I think we should implement this code into the Common.js:

importArticles({

   type: 'script',
   articles: [
       //...
       'w:c:dev:DISPLAYTITLE/code.js',
       //...
   ]

});

It allows the magic word DISPLAYTITLE to work on the wiki, allowing us to give any article an italic title, even without using an infobox, which is how I assume book pages get their italic headings, right? Anyway, how it works is, you put { { DISPLAYTITLE: } } on a page. After the colons you for example type ' ' The Lord of the Rings ' ' without the spaces between the apostrophes, which changes the title of the article to The Lord of the Rings, but also makes it italic. This would be useful on our story serial pages. For example, at the top of the article for Destiny War, you write { { DISPLAYTITLE: ' ' Destiny War ' ' } } Without the spaces obviously. And it can be used on articles that has paranthesis too, like (Book) or (Serial); just simply put the apostrophes around the title of the story, but not the paranthesis. --Lukas Exemplar (talk) 17:49, 12 August 2016 (CET) EDIT: Never mind! I added a template for it. Hope it's okay :) --Lukas Exemplar (talk) 18:04, 12 August 2016 (CET)

Made a template for DISPLAYTITLE instead

The above template is Template:DISPLAYTITLE if anyone is interested. Read the talk page to see how to use it. Maybe someone could create some documenation for it? --Lukas Exemplar (talk) 18:27, 12 August 2016 (CET)