Welcome to Assassin's Creed Wiki! Log in and join the community.
Board Thread:Wiki discussion/@comment-126761-20150804170257/@comment-2240397-20151202191400: Difference between revisions
Jump to navigation
Jump to search
imported>Shareif Created page with "Hey, that's exactly what 'format' is for. Let me explain: When template is used on a page an the 'titre' is empty or not defined at all the <nowiki><default></nowiki> will be..." |
imported>Shareif No edit summary |
||
| Line 3: | Line 3: | ||
When template is used on a page an the 'titre' is empty or not defined at all the <nowiki><default></nowiki> will be used. | When template is used on a page an the 'titre' is empty or not defined at all the <nowiki><default></nowiki> will be used. | ||
When template is used on a page and the 'titre' has value infobox will look for <nowiki><format></nowiki> and will use it to extend the value of 'titre'. In the example above it will wrap it with '<center>' tag. | When template is used on a page and the 'titre' has value infobox will look for <nowiki><format></nowiki> and will use it to extend the value of 'titre'. In the example above it will wrap it with <nowiki>'<center>' tag.</nowiki> | ||
If both default and format tags are used and with center tags we have guarantee that any text provided by users, or pulled from the article title, will be centered :) | If both default and format tags are used and with center tags we have guarantee that any text provided by users, or pulled from the article title, will be centered :) | ||
The CSS class will also work in both cases :) | The CSS class will also work in both cases :) | ||
Latest revision as of 21:49, 2 December 2015
Hey, that's exactly what 'format' is for. Let me explain:
When template is used on a page an the 'titre' is empty or not defined at all the <default> will be used.
When template is used on a page and the 'titre' has value infobox will look for <format> and will use it to extend the value of 'titre'. In the example above it will wrap it with '<center>' tag.
If both default and format tags are used and with center tags we have guarantee that any text provided by users, or pulled from the article title, will be centered :)
The CSS class will also work in both cases :)