Template:Draft header: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
m (I set it to only work in the "Template:" namespace for testing; it should only work in the "Draft:" namespace.)
(Added link to see differences from the main article and categorization.)
Line 1: Line 1:
{{#ifeq:{{NAMESPACE}}|Draft|{{Ombox
{{#ifeq:{{NAMESPACE}}|Draft|{{Ombox
| image = [[File:Under_construction_icon-blue.svg|40px|alt=|link=]]
| image = [[File:Under_construction_icon-blue.svg|40px|alt=|link=]]
| text  = '''This is a {{wp|WP:Drafts|draft}}<!-- [[Help:Editing guide#Drafts|draft]] --> of [[{{PAGENAME}}]].''' It is a space to store, preview, and collaborate on {{#ifeq:{{{creation|yes}}}|yes|this work-in-progress article before it is finalized and published into the mainspace as an official article.|large edits to the existing article that are not yet ready to be incorporated into the main article for general viewing.}}
| text  = '''This is a {{wp|WP:Drafts|draft}}<!-- [[Help:Editing guide#Drafts|draft]] --> of [[{{PAGENAME}}]]{{#ifeq:{{{creation|yes}}}|yes||<nowiki /> ([{{fullurl:Special:ComparePages|page1={{urlencode:{{PAGENAME}}}}&page2={{urlencode:{{FULLPAGENAME}}}}}} see changes])}}.''' It is a space to store, preview, and collaborate on {{#ifeq:{{{creation|yes}}}|yes|this work-in-progress article before it is finalized and published into the mainspace as an official article.|large edits to the existing article that are not yet ready to be incorporated into the main article for general viewing.}}
----
----
{{#ifeq:{{{creation|yes}}}|yes|<div style="float:right;">Finished drafting? {{Clickable button|{{fullurl:Special:MovePage|wpOldTitle={{urlencode:{{FULLPAGENAME}}}}&wpNewTitle={{urlencode:{{PAGENAME}}}}&wpMovetalk=1&wpReason=Publishing%20draft%20article}}|Publish now|class=mw-ui-progressive}}</div>|{{#if:{{{created|}}}|<small>This draft was created at {{{created|}}}. Any edits made to [[{{PAGENAME}}]] since then should be accounted for before this draft is published.</small>}}}}
{{#ifeq:{{{creation|yes}}}|yes|<div style="float:right;">Finished drafting? {{Clickable button|{{fullurl:Special:MovePage|wpOldTitle={{urlencode:{{FULLPAGENAME}}}}&wpNewTitle={{urlencode:{{PAGENAME}}}}&wpMovetalk=1&wpReason=Publishing%20draft%20article}}|Publish now|class=mw-ui-progressive}}</div>|{{#if:{{{created|}}}|<small>This draft was created at {{{created|}}}. Any edits made to [[{{PAGENAME}}]] since then should be accounted for before this draft is published.</small>}}}}
}}
}}{{#ifeq:{{NAMESPACE}}|Draft|{{#ifeq:{{{creation|yes}}}|yes|[[Category:Drafts under creation]]|[[Category:Drafts of existing articles]]}}}}
|{{if preview|{{Error|{{tlx|Draft}} and {{tlx|Draft header}} should only be used in the "Draft:" namespace.}}|}}
|{{if preview|{{Error|{{tlx|Draft}} and {{tlx|Draft header}} should only be used in the "Draft:" namespace.}}|}}
}}<noinclude>
}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 17:21, 9 December 2024