Difference between revisions of "Template:DT Article Header"
From FollowTheScore
(New page: <includeonly>__NOEDITSECTION__{{#vardefine:page|{{#if:{{#var:page}}|{{#var:page}}|{{{2}}}}}}}<!-- -->{{#vardefine:nr|{{#if:{{#var:nr}}|{{#expr:{{#var:nr}}+1}}|1}}}}<!-- -->{{#vardefine:url...) |
|||
Line 1: | Line 1: | ||
− | <includeonly>__NOEDITSECTION__{{#vardefine:page|{{#if:{{#var:page}}|{{#var:page}}|{{{2}}}}}}}<!-- | + | <includeonly>__NOEDITSECTION__<!-- |
− | -->{{#vardefine:nr|{{#if:{{#var:nr}}|{{#expr:{{#var:nr}}+1}}|1}}}}<!-- | + | create headline for each object (except when used in text export); |
+ | assigns the calling article to the DocType Category | ||
+ | -->{{#vardefine:page|{{#if:{{#var:page}}|{{#var:page}}|{{{2}}}}}}}<!-- page name | ||
+ | -->{{#vardefine:nr|{{#if:{{#var:nr}}|{{#expr:{{#var:nr}}+1}}|1}}}}<!-- increment edit section sequence number | ||
-->{{#vardefine:url|{{#replace:{{#var:page}}| |_}}}}<!-- | -->{{#vardefine:url|{{#replace:{{#var:page}}| |_}}}}<!-- | ||
− | -->{{# | + | -->{{#if:{{{3|}}}|{{#if:{{#var:DtArticleSortKey}}|[[Category:{{{1}}}|{{#var:DtArticleSortKey}}]]|[[Category:{{{1}}}]]}}}}{{#ifeq:{{#var:header}}|no||<small> |
− | |{{# | + | {{(!}}style="margins:0px" width=100% cellspacing=0 cellpadding=0 |
− | + | {{#ifeq:{{{refs|}}}|no|| | |
− | + | {{!}}align=left{{!}}{{#if:{{#var:refs}}|[[{{#var:page}}|no_ref's]]|[[Special:Call/DT Article show Refs,page={{#var:page}},refs=yes|ref's]]}}}} | |
− | [[Special:Call/DT Articles list XML,type={{{1}}},title={{#var:page}}| | + | {{!}}align=right{{!}}{{#if:{{#var:DtArticleSortKey}}|''({{#var:DtArticleSortKey}})''}} [[:Category:{{{1}}}|list]] [[Template:{{{1}}}.help|help]] [[Special:Call/DT Article copy,cat={{{1}}},from={{#var:page}},namespace={{NAMESPACE}}|copy]] [[Special:Call/DT Articles list XML,type={{{1}}},title={{#var:page}},namespace={{NAMESPACE}}|as XML]] [{{SERVER}}{{SCRIPTPATH}}/index.php?title={{NAMESPACE}}:{{#var:url}}&action=edit§ion={{#var:nr}} edit] |
− | [{{SERVER}}{{SCRIPTPATH}}/index.php?title={{#var:url}}&action=edit§ion={{#var:nr}} edit]</small | + | {{!)}}</small>}}</includeonly><noinclude>[[Category:DocTypeScript]]</noinclude> |