Jump to content

Template:Style P-Title level: Difference between revisions

m
no edit summary
m (+level 0)
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Text for paragraph styles
<noinclude>{{Text for paragraph styles
  | description = '''Title of certain level'''. This style is used to design titles and subtitles of levels 1 trough 9 and add them to table of contents. Uses tag '''<nowiki><h></nowiki>'''. See also {{t|Style P-Title}}.
  | description = '''Title of certain level'''. This style is used to design titles and subtitles of levels 1 trough 6 and add them to table of contents. Uses tag '''<nowiki><h></nowiki>'''. If level=0 then use tag '''<nowiki><div></nowiki>''' instead, so it does not reflect in table of contents. See also {{t|Style P-Title}}.
  | modifications = text-align: center; font-weight: bold; border-bottom: 0px solid grey; font-family: 'Droid Sans', Arial, sans-serif;
  | modifications = text-align: center; font-weight: bold; font-family: 'Droid Sans', Arial, sans-serif; border-bottom: 0px solid grey; margin-top: 2em; margin-bottom: 1em; small capitals for level 0
  | to copy = Style P-Title level{{!}}{{!}}{{!}}
  | to copy = Style P-Title level{{!}}{{!}}{{!}}
}}
}}
Line 11: Line 11:


где
где
* '''Level''' - number from 0 up to 6, for 1-6 uses tag <nowiki><h></nowiki>; for 0 – <nowiki><div></nowiki>, so it does not reflect in table of contents; default = 1, optional
* '''Level''' - number from 0 (for tag <nowiki><div></nowiki> and no TOC) up to 6; default = 1, optional
* '''Title''' - text of a title, '''mandatory'''
* '''Title''' - text of a title, '''mandatory'''
* '''Anchor''' -  aditional anchor, wich could be used in references, f.e.: '''Article name#anchor_name''', optional. Note that headers of any level set by equal sign already have full text anchors. This parameter allows to give an additional short version.
* '''Anchor''' -  aditional anchor, wich could be used in references, f.e.: '''Article name#anchor_name''', optional. Note that headers of any level set by equal sign already have full text anchors. This parameter allows to give an additional short version.
Line 30: Line 30:


</noinclude><includeonly>{{#if: {{{3|}}}| <span id="{{{3|}}}"></span>|}}
</noinclude><includeonly>{{#if: {{{3|}}}| <span id="{{{3|}}}"></span>|}}
<{{#ifeq: {{{1|}}}|0|div|h{{{1|1}}}}} style="text-align: center; font-weight: bold; border-bottom: 0px solid grey; font-family: 'Droid Sans', Arial, sans-serif;">{{{2|}}}</{{#ifeq: {{{1|}}}|0|div|h{{{1|1}}}}}>
<{{#ifeq: {{{1|}}}|0|p|h{{{1|1}}}}} style="text-align: center; margin-top: 1em; margin-bottom: 0.5em; text-indent: 0px; font-weight: bold; font-family: 'Droid Sans', Arial, sans-serif; {{#ifeq: {{{1|}}}|0|font-size: 150%; font-variant: small-caps;|}} border-bottom: 0px solid grey; ">{{{2|}}}</{{#ifeq: {{{1|}}}|0|p|h{{{1|1}}}}}></includeonly>
</includeonly>