Welcome to Assassin's Creed Wiki! Log in and join the community.

Board Thread:Wiki discussion/@comment-126761-20150804170257/@comment-2240397-20151202181531: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>Shareif
No edit summary
imported>Shareif
No edit summary
 
Line 2: Line 2:
You can center the title by adding format field. It is used to well... format the property before it is displayed in infobox. Very useful for adding bold, links or centering text.
You can center the title by adding format field. It is used to well... format the property before it is displayed in infobox. Very useful for adding bold, links or centering text.
<pre><nowiki>
<pre><nowiki>
<title source="titre">
<title source="titre">
<default><center>{{PAGENAME}}</center></default>
<default><center>{{PAGENAME}}</center></default>
<format><center>{{{titre|}}}</center></format>
<format><center>{{{titre|}}}</center></format>
</title>
</title>
</nowiki></pre>
</nowiki></pre>
I've added the tag here: http://fr.assassinscreed.wikia.com/wiki/Mod%C3%A8le:Infobox_Mission/Version_de_travail
I've added the tag here: http://fr.assassinscreed.wikia.com/wiki/Mod%C3%A8le:Infobox_Mission/Version_de_travail

Latest revision as of 20:16, 2 December 2015

Thanks! You can center the title by adding format field. It is used to well... format the property before it is displayed in infobox. Very useful for adding bold, links or centering text.

<title source="titre">
	<default><center>{{PAGENAME}}</center></default>
	<format><center>{{{titre|}}}</center></format>
</title>

I've added the tag here: http://fr.assassinscreed.wikia.com/wiki/Mod%C3%A8le:Infobox_Mission/Version_de_travail

Or you can also add the following line to css:

.portable-infobox .pi-title {
	text-align:center;
}